Uses of Class
dev.langchain4j.model.input.PromptTemplate
Package
Description
-
Uses of PromptTemplate in dev.langchain4j.chain
Modifier and TypeMethodDescriptionConversationalRetrievalChain.Builder.promptTemplate
(PromptTemplate promptTemplate) Deprecated, for removal: This API element is subject to removal in a future version.Use this instead:ModifierConstructorDescriptionConversationalRetrievalChain
(ChatLanguageModel chatLanguageModel, ChatMemory chatMemory, PromptTemplate promptTemplate, Retriever<TextSegment> retriever) Deprecated, for removal: This API element is subject to removal in a future version.Please use another constructor with a newContentRetriever
instead. -
Uses of PromptTemplate in dev.langchain4j.experimental.rag.content.retriever.sql
ModifierConstructorDescriptionSqlDatabaseContentRetriever
(DataSource dataSource, String sqlDialect, String databaseStructure, PromptTemplate promptTemplate, ChatLanguageModel chatLanguageModel, Integer maxRetries) Creates an instance of aSqlDatabaseContentRetriever
. -
Uses of PromptTemplate in dev.langchain4j.model.input
-
Uses of PromptTemplate in dev.langchain4j.rag.content.injector
Modifier and TypeFieldDescriptionstatic final PromptTemplate
DefaultContentInjector.DEFAULT_PROMPT_TEMPLATE
Modifier and TypeMethodDescriptionDefaultContentInjector.DefaultContentInjectorBuilder.promptTemplate
(PromptTemplate promptTemplate) ModifierConstructorDescriptionDefaultContentInjector
(PromptTemplate promptTemplate) DefaultContentInjector
(PromptTemplate promptTemplate, List<String> metadataKeysToInclude) -
Uses of PromptTemplate in dev.langchain4j.rag.content.retriever.neo4j
ModifierConstructorDescriptionNeo4jContentRetriever
(Neo4jGraph graph, ChatLanguageModel chatLanguageModel, PromptTemplate promptTemplate) -
Uses of PromptTemplate in dev.langchain4j.rag.query.router
Modifier and TypeFieldDescriptionstatic final PromptTemplate
LanguageModelQueryRouter.DEFAULT_PROMPT_TEMPLATE
protected final PromptTemplate
LanguageModelQueryRouter.promptTemplate
Modifier and TypeMethodDescriptionLanguageModelQueryRouter.LanguageModelQueryRouterBuilder.promptTemplate
(PromptTemplate promptTemplate) ModifierConstructorDescriptionLanguageModelQueryRouter
(ChatLanguageModel chatLanguageModel, Map<ContentRetriever, String> retrieverToDescription, PromptTemplate promptTemplate, LanguageModelQueryRouter.FallbackStrategy fallbackStrategy) -
Uses of PromptTemplate in dev.langchain4j.rag.query.transformer
Modifier and TypeFieldDescriptionstatic final PromptTemplate
CompressingQueryTransformer.DEFAULT_PROMPT_TEMPLATE
static final PromptTemplate
ExpandingQueryTransformer.DEFAULT_PROMPT_TEMPLATE
protected final PromptTemplate
CompressingQueryTransformer.promptTemplate
protected final PromptTemplate
ExpandingQueryTransformer.promptTemplate
Modifier and TypeMethodDescriptionCompressingQueryTransformer.CompressingQueryTransformerBuilder.promptTemplate
(PromptTemplate promptTemplate) ExpandingQueryTransformer.ExpandingQueryTransformerBuilder.promptTemplate
(PromptTemplate promptTemplate) ModifierConstructorDescriptionCompressingQueryTransformer
(ChatLanguageModel chatLanguageModel, PromptTemplate promptTemplate) ExpandingQueryTransformer
(ChatLanguageModel chatLanguageModel, PromptTemplate promptTemplate) ExpandingQueryTransformer
(ChatLanguageModel chatLanguageModel, PromptTemplate promptTemplate, Integer n) -
Uses of PromptTemplate in dev.langchain4j.store.embedding.filter.builder.sql
Modifier and TypeFieldDescriptionprotected final PromptTemplate
LanguageModelSqlFilterBuilder.promptTemplate