Static method to create a new MariaDBStore instance from an
array of texts and their metadata. It converts the texts into
Document instances and adds them to the store.
fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface,
dbConfig: MariaDBStoreArgs __type
): Promise<MariaDBStore>| Name | Type | Description |
|---|---|---|
texts* | string[] | Array of texts. |
metadatas* | object | object[] | Array of metadata objects or a single metadata object. |
embeddings* | EmbeddingsInterface | Embeddings instance. |
dbConfig* | MariaDBStoreArgs & __type |
|