Static method to create a new WeaviateStore instance from a list of
texts. It first creates documents from the texts and metadata, then
adds the documents to the Weaviate index.
fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface,
args: WeaviateLibArgs
): Promise<WeaviateStore>| Name | Type | Description |
|---|---|---|
texts* | string[] | Array of texts. |
metadatas* | object | object[] | Metadata for the texts. Can be a single object or an array of objects. |
embeddings* | EmbeddingsInterface | Embeddings to be used for the texts. |
args* | WeaviateLibArgs | Arguments required to create a new |