Uses of Class
dev.langchain4j.model.input.PromptTemplate
Packages that use PromptTemplate
Package
Description
-
Uses of PromptTemplate in dev.langchain4j.experimental.rag.content.retriever.sql
Methods in dev.langchain4j.experimental.rag.content.retriever.sql with parameters of type PromptTemplateModifier and TypeMethodDescriptionSqlDatabaseContentRetriever.SqlDatabaseContentRetrieverBuilder.promptTemplate(PromptTemplate promptTemplate) Constructors in dev.langchain4j.experimental.rag.content.retriever.sql with parameters of type PromptTemplateModifierConstructorDescriptionSqlDatabaseContentRetriever(DataSource dataSource, String sqlDialect, String databaseStructure, PromptTemplate promptTemplate, ChatModel chatModel, Integer maxRetries) Creates an instance of aSqlDatabaseContentRetriever. -
Uses of PromptTemplate in dev.langchain4j.model.input
Methods in dev.langchain4j.model.input that return PromptTemplateModifier and TypeMethodDescriptionstatic PromptTemplateCreate a new PromptTemplate.static PromptTemplateCreate a new PromptTemplate.static PromptTemplateCreate a new PromptTemplate.static PromptTemplateCreate a new PromptTemplate. -
Uses of PromptTemplate in dev.langchain4j.model.scoring
Fields in dev.langchain4j.model.scoring declared as PromptTemplateModifier and TypeFieldDescriptionstatic final PromptTemplateDecisionScoringModel.DEFAULT_QUESTION_TEMPLATEThe default template of the question asked for each segment:"Does the document help answer the query?\nDocument: {{document}}".Methods in dev.langchain4j.model.scoring with parameters of type PromptTemplateModifier and TypeMethodDescriptionDecisionScoringModel.Builder.questionTemplate(PromptTemplate questionTemplate) Sets the template of the yes/no question asked for each segment, which must contain the{{document}}variable (the text of the segment). -
Uses of PromptTemplate in dev.langchain4j.rag.content.injector
Fields in dev.langchain4j.rag.content.injector declared as PromptTemplateModifier and TypeFieldDescriptionstatic final PromptTemplateDefaultContentInjector.DEFAULT_PROMPT_TEMPLATEMethods in dev.langchain4j.rag.content.injector with parameters of type PromptTemplateModifier and TypeMethodDescriptionDefaultContentInjector.DefaultContentInjectorBuilder.promptTemplate(PromptTemplate promptTemplate) Constructors in dev.langchain4j.rag.content.injector with parameters of type PromptTemplateModifierConstructorDescriptionDefaultContentInjector(PromptTemplate promptTemplate) DefaultContentInjector(PromptTemplate promptTemplate, List<String> metadataKeysToInclude) -
Uses of PromptTemplate in dev.langchain4j.rag.content.retriever.hibernate
Methods in dev.langchain4j.rag.content.retriever.hibernate with parameters of type PromptTemplateModifier and TypeMethodDescriptionHibernateContentRetriever.HibernateContentRetrieverBuilder.promptTemplate(PromptTemplate promptTemplate) Sets thePromptTemplateto be used for creating the system message.Constructors in dev.langchain4j.rag.content.retriever.hibernate with parameters of type PromptTemplateModifierConstructorDescriptionHibernateContentRetriever(org.hibernate.SessionFactory sessionFactory, ChatModel chatModel, String databaseStructure, PromptTemplate promptTemplate, Integer maxRetries) Creates an instance of aHibernateContentRetriever. -
Uses of PromptTemplate in dev.langchain4j.rag.query.router
Fields in dev.langchain4j.rag.query.router declared as PromptTemplateModifier and TypeFieldDescriptionstatic final PromptTemplateLanguageModelQueryRouter.DEFAULT_PROMPT_TEMPLATEstatic final PromptTemplateDecisionModelQueryRouter.DEFAULT_QUESTION_TEMPLATEThe default template of the question asked for each retriever:"Could the following data source contain information that helps answer the query?\n{{description}}".protected final PromptTemplateLanguageModelQueryRouter.promptTemplateMethods in dev.langchain4j.rag.query.router with parameters of type PromptTemplateModifier and TypeMethodDescriptionLanguageModelQueryRouter.LanguageModelQueryRouterBuilder.promptTemplate(PromptTemplate promptTemplate) DecisionModelQueryRouter.Builder.questionTemplate(PromptTemplate questionTemplate) Sets the template of the yes/no question asked for each retriever, which must contain the{{description}}variable (the description of the retriever).Constructors in dev.langchain4j.rag.query.router with parameters of type PromptTemplateModifierConstructorDescriptionLanguageModelQueryRouter(ChatModel chatModel, Map<ContentRetriever, String> retrieverToDescription, PromptTemplate promptTemplate, LanguageModelQueryRouter.FallbackStrategy fallbackStrategy) -
Uses of PromptTemplate in dev.langchain4j.rag.query.transformer
Fields in dev.langchain4j.rag.query.transformer declared as PromptTemplateModifier and TypeFieldDescriptionstatic final PromptTemplateCompressingQueryTransformer.DEFAULT_PROMPT_TEMPLATEstatic final PromptTemplateExpandingQueryTransformer.DEFAULT_PROMPT_TEMPLATEprotected final PromptTemplateCompressingQueryTransformer.promptTemplateprotected final PromptTemplateExpandingQueryTransformer.promptTemplateMethods in dev.langchain4j.rag.query.transformer with parameters of type PromptTemplateModifier and TypeMethodDescriptionCompressingQueryTransformer.CompressingQueryTransformerBuilder.promptTemplate(PromptTemplate promptTemplate) ExpandingQueryTransformer.ExpandingQueryTransformerBuilder.promptTemplate(PromptTemplate promptTemplate) Constructors in dev.langchain4j.rag.query.transformer with parameters of type PromptTemplateModifierConstructorDescriptionCompressingQueryTransformer(ChatModel chatModel, PromptTemplate promptTemplate) ExpandingQueryTransformer(ChatModel chatModel, PromptTemplate promptTemplate) ExpandingQueryTransformer(ChatModel chatModel, PromptTemplate promptTemplate, Integer n) -
Uses of PromptTemplate in dev.langchain4j.service.tool
Fields in dev.langchain4j.service.tool declared as PromptTemplateModifier and TypeFieldDescriptionstatic final PromptTemplateDecisionModelFilteringToolProvider.DEFAULT_QUESTION_TEMPLATEThe default template of the question asked for each tool:"Would this tool help to handle the request?\nTool: {{name}}\nDescription: {{description}}".Methods in dev.langchain4j.service.tool with parameters of type PromptTemplateModifier and TypeMethodDescriptionDecisionModelFilteringToolProvider.Builder.questionTemplate(PromptTemplate questionTemplate) Sets the template of the yes/no question asked for each tool, which must contain the{{name}}variable (the name of the tool) and can contain{{description}}(its description, empty if it has none). -
Uses of PromptTemplate in dev.langchain4j.service.tool.search.decision
Fields in dev.langchain4j.service.tool.search.decision declared as PromptTemplateModifier and TypeFieldDescriptionstatic final PromptTemplateDecisionModelToolSearchStrategy.DEFAULT_QUESTION_TEMPLATEThe default template of the question asked for each tool:"Would this tool help to handle the request?\nTool: {{name}}\nDescription: {{description}}".static final PromptTemplateDecisionModelToolSelector.DEFAULT_QUESTION_TEMPLATEMethods in dev.langchain4j.service.tool.search.decision with parameters of type PromptTemplateModifier and TypeMethodDescriptionDecisionModelToolSearchStrategy.Builder.questionTemplate(PromptTemplate questionTemplate) Sets the template of the yes/no question asked for each tool, which must contain the{{name}}variable (the name of the tool) and can contain{{description}}(its description, empty if it has none).Constructors in dev.langchain4j.service.tool.search.decision with parameters of type PromptTemplateModifierConstructorDescriptionDecisionModelToolSelector(DecisionModel decisionModel, PromptTemplate questionTemplate, Integer maxResults, Double minProbability, Integer maxToolsPerDecisionRequest) -
Uses of PromptTemplate in dev.langchain4j.store.embedding.filter.builder.sql
Fields in dev.langchain4j.store.embedding.filter.builder.sql declared as PromptTemplateModifier and TypeFieldDescriptionprotected final PromptTemplateLanguageModelSqlFilterBuilder.promptTemplateMethods in dev.langchain4j.store.embedding.filter.builder.sql with parameters of type PromptTemplateModifier and TypeMethodDescriptionLanguageModelSqlFilterBuilder.LanguageModelSqlFilterBuilderBuilder.promptTemplate(PromptTemplate promptTemplate)