EmbedFunction
EmbedFunction = (
text) => readonlynumber[] |Promise<readonlynumber[]>
Defined in: retrievers/embedding-retriever.ts:8
An embedding function maps text to a fixed-length dense vector. It may be synchronous or asynchronous so callers can plug in a real provider or a deterministic stub for reproducible evaluation runs.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”readonly number[] | Promise<readonly number[]>