Class MultiQueryExpander

java.lang.Object
com.bytedesk.ai.springai.rag.MultiQueryExpander
All Implemented Interfaces:
Function<org.springframework.ai.rag.Query,List<org.springframework.ai.rag.Query>>, org.springframework.ai.rag.preretrieval.query.expansion.QueryExpander

public class MultiQueryExpander extends Object implements org.springframework.ai.rag.preretrieval.query.expansion.QueryExpander
QueryExpander Pre-Retrieval: QueryExpander https://java2ai.com/blog/spring-ai-alibaba-module-rag/?spm=0.29160081.0.0.75c73b5blqQmqQ
  • Constructor Details

    • MultiQueryExpander

      public MultiQueryExpander()
  • Method Details

    • expand

      @NotNull public @NotNull List<org.springframework.ai.rag.Query> expand(@Nullable org.springframework.ai.rag.Query query)
      Specified by:
      expand in interface org.springframework.ai.rag.preretrieval.query.expansion.QueryExpander