Method that takes a document as input and returns a promise that resolves to an embedding for the document. It calls the _embed method with the document as the input and returns the first embedding in the resulting array.
embedQuery(document: string): Promise<number[]>| Name | Type | Description |
|---|---|---|
document* | string | Document to generate an embedding for. |