Package org.springframework.ai.rag.preretrieval.query.expansion


@NonNullApi @NonNullFields package org.springframework.ai.rag.preretrieval.query.expansion
RAG Sub-Module: Query Expansion.
  • Class
    Description
    Uses a large language model to expand a query into multiple semantically diverse variations to capture different perspectives, useful for retrieving additional contextual information and increasing the chances of finding relevant results.
     
    A component for expanding the input query into a list of queries, addressing challenges such as poorly formed queries by providing alternative query formulations, or by breaking down complex problems into simpler sub-queries,