Uses of Class
org.springframework.ai.chat.prompt.PromptTemplate
Packages that use PromptTemplate
Package
Description
Spring AI chat client advisors package.
The org.sf.ai.chat package represents the bounded context for the Chat Model within the
AI generative model domain.
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.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.promptMethods 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 newKeywordMetadataEnricherinstance. -
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(@Nullable PromptTemplate promptTemplate, @Nullable PromptTemplate emptyContextPromptTemplate, @Nullable Boolean allowEmptyContext, @Nullable 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, @Nullable PromptTemplate promptTemplate, @Nullable Boolean includeOriginal, @Nullable 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, @Nullable PromptTemplate promptTemplate) RewriteQueryTransformer(ChatClient.Builder chatClientBuilder, @Nullable PromptTemplate promptTemplate, @Nullable String targetSearchSystem) TranslationQueryTransformer(ChatClient.Builder chatClientBuilder, @Nullable 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 voidPromptAssert.templateHasRequiredPlaceholders(PromptTemplate promptTemplate, String... placeholders) Assert that the given prompt template contains the required placeholders.