Uses of Class
org.springframework.ai.chat.prompt.PromptTemplate
Packages that use PromptTemplate
Package
Description
Provides classes for advising chat clients.
Spring AI chat client advisors package.
RAG Sub-Module: Query Augmentation.
RAG Sub-Module: Query Expansion.
RAG Sub-Module: Query Transformation.
-
Uses of PromptTemplate in org.springframework.ai.chat.client.advisor
Methods in org.springframework.ai.chat.client.advisor with parameters of type PromptTemplateModifier and TypeMethodDescriptionPromptChatMemoryAdvisor.Builder.systemPromptTemplate
(PromptTemplate systemPromptTemplate) Set the system prompt template. -
Uses of PromptTemplate in org.springframework.ai.chat.client.advisor.vectorstore
Methods in org.springframework.ai.chat.client.advisor.vectorstore with parameters of type PromptTemplateModifier and TypeMethodDescriptionQuestionAnswerAdvisor.Builder.promptTemplate
(PromptTemplate promptTemplate) VectorStoreChatMemoryAdvisor.Builder.systemPromptTemplate
(PromptTemplate systemPromptTemplate) Set the system prompt template. -
Uses of PromptTemplate in org.springframework.ai.chat.evaluation
Methods in org.springframework.ai.chat.evaluation with parameters of type PromptTemplateModifier and TypeMethodDescriptionRelevancyEvaluator.Builder.promptTemplate
(PromptTemplate promptTemplate) -
Uses of PromptTemplate in org.springframework.ai.chat.prompt
Subclasses of PromptTemplate in org.springframework.ai.chat.promptModifier and TypeClassDescriptionclass
class
class
Methods in org.springframework.ai.chat.prompt that return PromptTemplateConstructor parameters in org.springframework.ai.chat.prompt with type arguments of type PromptTemplate -
Uses of PromptTemplate in org.springframework.ai.model.transformer
Methods in org.springframework.ai.model.transformer with parameters of type PromptTemplateModifier and TypeMethodDescriptionKeywordMetadataEnricher.Builder.keywordsTemplate
(PromptTemplate keywordsTemplate) Constructors in org.springframework.ai.model.transformer with parameters of type PromptTemplateModifierConstructorDescriptionKeywordMetadataEnricher
(ChatModel chatModel, PromptTemplate keywordsTemplate) Create a newKeywordMetadataEnricher
instance. -
Uses of PromptTemplate in org.springframework.ai.rag.generation.augmentation
Methods in org.springframework.ai.rag.generation.augmentation with parameters of type PromptTemplateModifier and TypeMethodDescriptionContextualQueryAugmenter.Builder.emptyContextPromptTemplate
(PromptTemplate emptyContextPromptTemplate) ContextualQueryAugmenter.Builder.promptTemplate
(PromptTemplate promptTemplate) Constructors in org.springframework.ai.rag.generation.augmentation with parameters of type PromptTemplateModifierConstructorDescriptionContextualQueryAugmenter
(PromptTemplate promptTemplate, PromptTemplate emptyContextPromptTemplate, Boolean allowEmptyContext, Function<List<Document>, String> documentFormatter) -
Uses of PromptTemplate in org.springframework.ai.rag.preretrieval.query.expansion
Methods in org.springframework.ai.rag.preretrieval.query.expansion with parameters of type PromptTemplateModifier and TypeMethodDescriptionMultiQueryExpander.Builder.promptTemplate
(PromptTemplate promptTemplate) Constructors in org.springframework.ai.rag.preretrieval.query.expansion with parameters of type PromptTemplateModifierConstructorDescriptionMultiQueryExpander
(ChatClient.Builder chatClientBuilder, PromptTemplate promptTemplate, Boolean includeOriginal, Integer numberOfQueries) -
Uses of PromptTemplate in org.springframework.ai.rag.preretrieval.query.transformation
Methods in org.springframework.ai.rag.preretrieval.query.transformation with parameters of type PromptTemplateModifier and TypeMethodDescriptionCompressionQueryTransformer.Builder.promptTemplate
(PromptTemplate promptTemplate) RewriteQueryTransformer.Builder.promptTemplate
(PromptTemplate promptTemplate) TranslationQueryTransformer.Builder.promptTemplate
(PromptTemplate promptTemplate) Constructors in org.springframework.ai.rag.preretrieval.query.transformation with parameters of type PromptTemplateModifierConstructorDescriptionCompressionQueryTransformer
(ChatClient.Builder chatClientBuilder, PromptTemplate promptTemplate) RewriteQueryTransformer
(ChatClient.Builder chatClientBuilder, PromptTemplate promptTemplate, String targetSearchSystem) TranslationQueryTransformer
(ChatClient.Builder chatClientBuilder, PromptTemplate promptTemplate, String targetLanguage) -
Uses of PromptTemplate in org.springframework.ai.rag.util
Methods in org.springframework.ai.rag.util with parameters of type PromptTemplateModifier and TypeMethodDescriptionstatic void
PromptAssert.templateHasRequiredPlaceholders
(PromptTemplate promptTemplate, String... placeholders) Assert that the given prompt template contains the required placeholders.