Class DashScopeDocumentRetriever
java.lang.Object
com.alibaba.cloud.ai.dashscope.rag.DashScopeDocumentRetriever
- All Implemented Interfaces:
Function<org.springframework.ai.rag.Query,,List<org.springframework.ai.document.Document>> org.springframework.ai.rag.retrieval.search.DocumentRetriever
public class DashScopeDocumentRetriever
extends Object
implements org.springframework.ai.rag.retrieval.search.DocumentRetriever
- Since:
- 2024/8/5 14:42
- Author:
- nuocheng.lxm
-
Constructor Summary
ConstructorsConstructorDescriptionDashScopeDocumentRetriever(DashScopeApi dashScopeApi, DashScopeDocumentRetrieverOptions options) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ai.rag.retrieval.search.DocumentRetriever
apply
-
Constructor Details
-
DashScopeDocumentRetriever
public DashScopeDocumentRetriever(DashScopeApi dashScopeApi, DashScopeDocumentRetrieverOptions options)
-
-
Method Details
-
retrieve
public List<org.springframework.ai.document.Document> retrieve(org.springframework.ai.rag.Query query) - Specified by:
retrievein interfaceorg.springframework.ai.rag.retrieval.search.DocumentRetriever
-