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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(List<org.springframework.ai.document.Document> documents)
     
    void
    delete(List<String> idList)
     
    void
    delete(org.springframework.ai.vectorstore.filter.Filter.Expression filterExpression)
     
     
    <T> Optional<T>
     
    List<org.springframework.ai.document.Document>
     
    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, wait

    Methods inherited from interface java.util.function.Consumer

    andThen

    Methods inherited from interface org.springframework.ai.document.DocumentWriter

    write

    Methods inherited from interface org.springframework.ai.vectorstore.VectorStore

    accept, delete
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.springframework.ai.vectorstore.VectorStore
    • add

      public void add(List<org.springframework.ai.document.Document> documents)
      Specified by:
      add in interface org.springframework.ai.vectorstore.VectorStore
      Parameters:
      documents - the list of documents to store. Current document must be DashScopeDocumentReader's Result
    • delete

      public void delete(List<String> idList)
      Specified by:
      delete in interface org.springframework.ai.vectorstore.VectorStore
    • delete

      public void delete(org.springframework.ai.vectorstore.filter.Filter.Expression filterExpression)
      Specified by:
      delete in interface org.springframework.ai.vectorstore.VectorStore
    • similaritySearch

      public List<org.springframework.ai.document.Document> similaritySearch(String query)
      Specified by:
      similaritySearch in interface org.springframework.ai.vectorstore.VectorStoreRetriever
    • getNativeClient

      public <T> Optional<T> getNativeClient()
      Specified by:
      getNativeClient in interface org.springframework.ai.vectorstore.VectorStore
    • similaritySearch

      public List<org.springframework.ai.document.Document> similaritySearch(org.springframework.ai.vectorstore.SearchRequest request)
      Specified by:
      similaritySearch in interface org.springframework.ai.vectorstore.VectorStoreRetriever