Package com.bytedesk.ai.springai.rag
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
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.ai.rag.preretrieval.query.expansion.QueryExpander
apply
-
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 interfaceorg.springframework.ai.rag.preretrieval.query.expansion.QueryExpander
-