Method that takes an array of documents as input and returns a promise that resolves to a 2D array of embeddings for each document. It calls the _embedText method for each document in the array.
embedDocuments(documents: string[]): Promise<number[][]>| Name | Type | Description |
|---|---|---|
documents* | string[] | Array of documents for which to generate embeddings. |