Generates a synthetic embedding for a document. The document is converted into chunks, a numerical value is calculated for each chunk, and an array of these values is returned as the embedding.
embedQuery(document: string): Promise<number[]>| Name | Type | Description |
|---|---|---|
document* | string | The document to generate an embedding for. |