Package com.bytedesk.ai.springai.rag
Class WebSearchRetriever
java.lang.Object
com.bytedesk.ai.springai.rag.WebSearchRetriever
- All Implemented Interfaces:
Function<org.springframework.ai.rag.Query,
,List<org.springframework.ai.document.Document>> org.springframework.ai.rag.retrieval.search.DocumentRetriever
public class WebSearchRetriever
extends Object
implements org.springframework.ai.rag.retrieval.search.DocumentRetriever
DocumentRetriever
Pre-Retrieval: DocumentRetriever 用于在检索之前对查询进行预处理,例如通过自定义逻辑过滤或修改查询。
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.retrieval.search.DocumentRetriever
apply
-
Constructor Details
-
WebSearchRetriever
public WebSearchRetriever()
-
-
Method Details
-
retrieve
public List<org.springframework.ai.document.Document> retrieve(org.springframework.ai.rag.Query query) - Specified by:
retrieve
in interfaceorg.springframework.ai.rag.retrieval.search.DocumentRetriever
-