Creates a VectorStore instance from an array of text strings and optional
metadata, using the specified embeddings and database configuration.
Subclasses must implement this method to define how text and metadata are embedded and stored in the vector store. Throws an error if not overridden.
fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface,
dbConfig: dbConfigArgs
): Promise<VectorStore>| Name | Type | Description |
|---|---|---|
texts* | string[] | |
metadatas* | object | object[] | |
embeddings* | EmbeddingsInterface | |
dbConfig* | dbConfigArgs |