Class DocumentRetrieverServiceImpl

java.lang.Object
kimaira.rag.retriever.DocumentRetrieverServiceImpl
All Implemented Interfaces:
DocumentRetrieverService

@Service("documentRetrieverService") public class DocumentRetrieverServiceImpl extends Object implements DocumentRetrieverService
  • Constructor Summary

    Constructors
    Constructor
    Description
    DocumentRetrieverServiceImpl(org.springframework.ai.vectorstore.VectorStore vectorStore)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.springframework.ai.document.Document>
    retrieve(org.springframework.ai.rag.Query query)
     
    List<org.springframework.ai.document.Document>
    retrieve(org.springframework.ai.rag.Query query, double similarityThreshold, int topK)
     
    List<org.springframework.ai.document.Document>
    retrieve(org.springframework.ai.rag.Query query, org.springframework.ai.vectorstore.filter.Filter.Expression expression)
     
    List<org.springframework.ai.document.Document>
    retrieve(org.springframework.ai.rag.Query query, org.springframework.ai.vectorstore.filter.Filter.Expression expression, double similarityThreshold, int topK)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DocumentRetrieverServiceImpl

      public DocumentRetrieverServiceImpl(org.springframework.ai.vectorstore.VectorStore vectorStore)
  • Method Details

    • retrieve

      public List<org.springframework.ai.document.Document> retrieve(org.springframework.ai.rag.Query query)
      Specified by:
      retrieve in interface DocumentRetrieverService
    • retrieve

      public List<org.springframework.ai.document.Document> retrieve(org.springframework.ai.rag.Query query, double similarityThreshold, int topK)
      Specified by:
      retrieve in interface DocumentRetrieverService
    • retrieve

      public List<org.springframework.ai.document.Document> retrieve(org.springframework.ai.rag.Query query, org.springframework.ai.vectorstore.filter.Filter.Expression expression)
      Specified by:
      retrieve in interface DocumentRetrieverService
    • retrieve

      public List<org.springframework.ai.document.Document> retrieve(org.springframework.ai.rag.Query query, org.springframework.ai.vectorstore.filter.Filter.Expression expression, double similarityThreshold, int topK)
      Specified by:
      retrieve in interface DocumentRetrieverService