Creates a new Chroma instance from an array of Document instances.
The documents are added to the Chroma database.
fromDocuments(
docs: Document<Record<string, any>>[],
embeddings: EmbeddingsInterface,
dbConfig: ChromaLibArgs
): Promise<Chroma>| Name | Type | Description |
|---|---|---|
docs* | Document<Record<string, any>>[] | An array of |
embeddings* | EmbeddingsInterface | An |
dbConfig* | ChromaLibArgs | A |