fromTexts(
_texts: string[],
_metadatas: object | object[],
_embeddings: EmbeddingsInterface| Name | Type | Description |
|---|---|---|
_texts* | string[] | Array of strings representing the text documents to be stored. |
_metadatas* | object | object[] | Metadata for the texts, either as an array (one for each text) or a single object (applied to all texts). |
_embeddings* | EmbeddingsInterface | Instance of |
_dbConfig* | Record<string, any> |
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.
Database configuration settings.