Initializes a new instance of the LibSQLVectorStore.
The embeddings interface to use.
Configuration options for the vector store.
Returns the type of vector store.
The string "libsql".
Adds documents to the vector store.
The documents to add.
The IDs of the added documents.
Adds vectors to the vector store.
The vectors to add.
The documents associated with the vectors.
The IDs of the added vectors.
Deletes vectors from the store.
Delete parameters.
Optional
deleteAll?: booleanOptional
ids?: string[] | number[]The ids of the vectors to delete.
Performs a similarity search using a vector query and returns documents with their scores.
The query vector.
The number of results to return.
Optional
filter: InStatement | WhereCondition<Metadata>An array of tuples containing the similar documents and their scores.
Static
fromCreates a new LibSQLVectorStore instance from documents.
The documents to add to the store.
The embeddings interface to use.
Optional
options: LibSQLVectorStoreArgsConfiguration options for the vector store.
A new LibSQLVectorStore instance.
Static
fromCreates a new LibSQLVectorStore instance from texts.
The texts to add to the store.
The metadata for the texts.
The embeddings interface to use.
Optional
options: LibSQLVectorStoreArgsConfiguration options for the vector store.
A new LibSQLVectorStore instance.
A vector store using LibSQL/Turso for storage and retrieval.