Adds vectors to the index. Generates embeddings from the documents
using the Embeddings instance passed to the constructor.
addDocuments(
documents: Document<Record<string, any>>[],
documentProps: DocumentProps
): Promise<void>| Name | Type | Description |
|---|---|---|
documents* | Document<Record<string, any>>[] | Array of |
documentProps | DocumentProps |