Creates a new LibSQLVectorStore instance from documents.
fromDocuments<
Metadata extends MetadataDefault = MetadataDefault
>(
docs: Document<Metadata>[],
embeddings: EmbeddingsInterface,
options: LibSQLVectorStoreArgs
): Promise<LibSQLVectorStore<Metadata>>| Name | Type | Description |
|---|---|---|
docs* | Document<Metadata>[] | The documents to add to the store. |
embeddings* | EmbeddingsInterface | The embeddings interface to use. |
options | LibSQLVectorStoreArgs | Configuration options for the vector store. |