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