Optional
VectorDBSettings: anyOptional
candidate: AccessCandidateDelete a document from the vector database
The name of the document
true if the document was deleted, false otherwise
Protected
initInsert a document into the vector database
The name of the document
The data to insert. Can be a string or a TParsedDocument
Optional
metadata: Record<string, string>The metadata to insert, can be any key/value pair
Search the vector database for a query
The query to search for
Optional
options: TVectorDBSearchOptionsThe options for the search
The search results
Update a document in the vector database.
Note : this will index the new data on top of the existing data. if you want to replace the existing data, you should delete the document first (see deleteDoc)
The name of the document
The data to update. Can be a string or a TParsedDocument
Optional
metadata: Record<string, string>The metadata to update, can be any key/value pair
Base class for all SDK objects.
This class provides a base implementation for all SDK objects. It handles event emission, promise management, and initialization.
This object is used to ensure that an SRE instance is initialized, and if not, create one with default settings.