Class DashScopeCloudStore
java.lang.Object
com.alibaba.cloud.ai.dashscope.rag.DashScopeCloudStore
- All Implemented Interfaces:
Consumer<List<org.springframework.ai.document.Document>>,org.springframework.ai.document.DocumentWriter,org.springframework.ai.vectorstore.VectorStore,org.springframework.ai.vectorstore.VectorStoreRetriever
public class DashScopeCloudStore
extends Object
implements org.springframework.ai.vectorstore.VectorStore
- Since:
- 2024/8/6 15:42
- Author:
- nuocheng.lxm
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.ai.vectorstore.VectorStore
org.springframework.ai.vectorstore.VectorStore.Builder<T extends org.springframework.ai.vectorstore.VectorStore.Builder<T>> -
Constructor Summary
ConstructorsConstructorDescriptionDashScopeCloudStore(DashScopeApi dashScopeApi, DashScopeStoreOptions options) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoiddelete(org.springframework.ai.vectorstore.filter.Filter.Expression filterExpression) getName()<T> Optional<T>List<org.springframework.ai.document.Document>similaritySearch(String query) List<org.springframework.ai.document.Document>similaritySearch(org.springframework.ai.vectorstore.SearchRequest request) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ai.document.DocumentWriter
writeMethods inherited from interface org.springframework.ai.vectorstore.VectorStore
accept, delete
-
Constructor Details
-
DashScopeCloudStore
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.springframework.ai.vectorstore.VectorStore
-
add
- Specified by:
addin interfaceorg.springframework.ai.vectorstore.VectorStore- Parameters:
documents- the list of documents to store. Current document must be DashScopeDocumentReader's Result
-
delete
- Specified by:
deletein interfaceorg.springframework.ai.vectorstore.VectorStore
-
delete
public void delete(org.springframework.ai.vectorstore.filter.Filter.Expression filterExpression) - Specified by:
deletein interfaceorg.springframework.ai.vectorstore.VectorStore
-
similaritySearch
- Specified by:
similaritySearchin interfaceorg.springframework.ai.vectorstore.VectorStoreRetriever
-
getNativeClient
- Specified by:
getNativeClientin interfaceorg.springframework.ai.vectorstore.VectorStore
-
similaritySearch
public List<org.springframework.ai.document.Document> similaritySearch(org.springframework.ai.vectorstore.SearchRequest request) - Specified by:
similaritySearchin interfaceorg.springframework.ai.vectorstore.VectorStoreRetriever
-