import { ... } from "@langchain/core/vectorstores";Abstract class extending VectorStore that defines a contract for saving
and loading vector store instances.
The SaveableVectorStore class allows vector store implementations to
persist their data and retrieve it when needed.The format for saving and
loading data is left to the implementing subclass.
Subclasses must implement the save method to handle their custom
serialization logic, while the load method enables reconstruction of a
vector store from saved data, requiring compatible embeddings through the
EmbeddingsInterface.
Abstract class representing a vector storage system for performing similarity searches on embedded documents.
VectorStore provides methods for adding precomputed vectors or documents,
removing documents based on criteria, and performing similarity searches
with optional scoring. Subclasses are responsible for implementing specific
storage mechanisms and the exact behavior of certain abstract methods.
Class for retrieving documents from a VectorStore based on vector similarity
or maximal marginal relevance (MMR).
VectorStoreRetriever extends BaseRetriever, implementing methods for
adding documents to the underlying vector store and performing document
retrieval with optional configurations.
VectorStoreRetriever
Interface defining the structure and operations of a vector store, which facilitates the storage, retrieval, and similarity search of document vectors.
VectorStoreInterface provides methods for adding, deleting, and searching
documents based on vector embeddings, including support for similarity
search with optional filtering and relevance-based retrieval.
Interface for a retriever that uses a vector store to store and retrieve document embeddings. This retriever interface allows for adding documents to the underlying vector store and conducting retrieval operations.
VectorStoreRetrieverInterface extends BaseRetrieverInterface to provide
document retrieval capabilities based on vector similarity.
VectorStoreRetrieverInterface