fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
args| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | |
embeddings* | EmbeddingsInterface | |
args* | WeaviateLibArgs |
Static method to create a new WeaviateStore instance from a list of
documents. It adds the documents to the Weaviate index.
Array of documents.
Embeddings to be used for the documents.
Arguments required to create a new WeaviateStore instance.