Package org.springframework.ai.rag.preretrieval.query.transformation
@NonNullApi
@NonNullFields
package org.springframework.ai.rag.preretrieval.query.transformation
RAG Sub-Module: Query Transformation.
-
ClassDescriptionUses a large language model to compress a conversation history and a follow-up query into a standalone query that captures the essence of the conversation.A component for transforming the input query to make it more effective for retrieval tasks, addressing challenges such as poorly formed queries, ambiguous terms, complex vocabulary, or unsupported languages.Uses a large language model to rewrite a user query to provide better results when querying a target system, such as a vector store or a web search engine.Uses a large language model to translate a query to a target language that is supported by the embedding model used to generate the document embeddings.