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 _embed method with the documents as the input and processes the result to return the embeddings.
embedDocuments(documents: string[]): Promise<number[][]>| Name | Type | Description |
|---|---|---|
documents* | string[] | Array of documents to generate embeddings for. |