OptionalcolumnTypes?: ColumnTypeConfigOptionalfilter?: TFilterModelOptionaluseInsert?: booleanWhen true, addDocuments uses INSERT statements to create new records. When false (default), addDocuments uses UPDATE statements to update existing records by ID. Set to true when using with ParentDocumentRetriever or when documents don't pre-exist in the database.
Protected OptionalcolumnProtecteddbOptionalfilterProtectedPrismaProtectedselectProtectedtableProtecteduseWhen true, addDocuments uses INSERT statements to create new records. When false (default), addDocuments uses UPDATE statements to update existing records by ID. Set to true when using with ParentDocumentRetriever or when documents don't pre-exist in the database.
ProtectedvectorStaticContentStaticIdAdds the specified documents to the store.
The documents to add.
A promise that resolves when the documents have been added.
Adds documents with their corresponding vectors to the store using INSERT statements. This method ensures documents are created if they don't exist, making it compatible with ParentDocumentRetriever which creates new child documents.
The vectors to add.
The documents associated with the vectors.
A promise that resolves when the documents have been added.
Adds the specified models to the store.
The models to add.
A promise that resolves when the models have been added.
Adds the specified vectors to the store.
The vectors to add.
The documents associated with the vectors.
A promise that resolves when the vectors have been added.
Optionalfilter: TFilterModelPerforms a similarity search with the specified query.
The query to use for the similarity search.
The number of results to return.
A promise that resolves with the search results.
Performs a similarity search with the specified vector and returns the results along with their scores.
The vector to use for the similarity search.
The number of results to return.
Optionalfilter: TFilterModelThe filter to apply to the results.
A promise that resolves with the search results and their scores.
Performs a similarity search with the specified query and returns the results along with their scores.
The query to use for the similarity search.
Optionalk: numberThe number of results to return.
Optionalfilter: TFilterModelThe filter to apply to the results.
A promise that resolves with the search results and their scores.
StaticfromCreates a new PrismaVectorStore from the specified documents.
The documents to use to create the store.
The embeddings to use.
The database configuration.
A promise that resolves with the new PrismaVectorStore.
StaticfromCreates a new PrismaVectorStore from the specified texts.
The texts to use to create the store.
The metadata for the texts.
The embeddings to use.
The database configuration.
A promise that resolves with the new PrismaVectorStore.
StaticwithCreates a new PrismaVectorStore with the specified model.
The PrismaClient instance.
An object with create, fromTexts, and fromDocuments methods.
A specific implementation of the VectorStore class that is designed to work with Prisma. It provides methods for adding models, documents, and vectors, as well as for performing similarity searches.