Creates a Milvus instance from a set of Document instances.
fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
dbConfig: MilvusLibArgs
): Promise<Milvus>| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | Array of Document instances to be added to the database. |
embeddings* | EmbeddingsInterface | Embeddings instance used to generate vector embeddings for the documents. |
dbConfig | MilvusLibArgs | Optional configuration for the Milvus database. |