Interface VectorStore
- All Known Implementing Classes:
InMemoryVectorStore,MilvusVectorStore,Neo4jVectorStore,PgVectorStore,SimplePersistentVectorStore
public interface VectorStore
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds Documents to the vector store.similaritySearch(String query) similaritySearch(String query, int k) similaritySearch(String query, int k, double threshold)
-
Method Details
-
add
Adds Documents to the vector store.- Parameters:
documents- the list of documents to store Will throw an exception if the underlying provider checks for duplicate IDs on add
-
delete
-
similaritySearch
-
similaritySearch
-
similaritySearch
- Parameters:
query- The query to send, it will be converted to an embedding based on the configuration of the vector store.k- the top 'k' similar resultsthreshold- the lower bound of the similarity score- Returns:
- similar documents
-