Takes an array of documents as input and returns a promise that resolves to a 2D array of embeddings for each document. It splits the documents into chunks and makes requests to the Google Vertex AI API to generate embeddings.
embedDocuments(documents: string[]): Promise<number[][]>| Name | Type | Description |
|---|---|---|
documents* | string[] | An array of documents to be embedded. |