Creates a new Chroma instance from an array of text strings. The text
strings are converted to Document instances and added to the Chroma
database.
fromTexts(
texts: string[],
metadatas: object | object[],
embeddings: EmbeddingsInterface,
dbConfig: ChromaLibArgs
): Promise<Chroma>| Name | Type | Description |
|---|---|---|
texts* | string[] | An array of text strings. |
metadatas* | object | object[] | An array of metadata objects or a single metadata object. If an array is provided, it must have the same length as the |
embeddings* | EmbeddingsInterface | An |
dbConfig* | ChromaLibArgs | A |