Creates a Milvus instance from a set of texts and their associated metadata.
fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface,
dbConfig: MilvusLibArgs
): Promise<Milvus>| Name | Type | Description |
|---|---|---|
texts* | string[] | Array of texts to be added to the database. |
metadatas* | object | object[] | Array of metadata objects associated with the texts. |
embeddings* | EmbeddingsInterface | Embeddings instance used to generate vector embeddings for the texts. |
dbConfig | MilvusLibArgs | Optional configuration for the Milvus database. |