import { type EmbedStats, type RPCOptions } from "../../schemas/index"; /** * Generates embeddings for a single text using a specified model. * * @overloadLabel "Single text" * @param params - The parameters for the embedding * @param params.modelId - The identifier of the embedding model to use * @param params.text - The input text to embed * @param options - Optional RPC options including per-call profiling * @returns A promise (decorated with `requestId`) resolving to an object with `embedding` (a single `number[]` vector) and optional `stats` performance data. * @throws {QvacErrorBase} When the response type is invalid or when the embedding fails */ export declare function embed(params: { modelId: string; text: string; }, options?: RPCOptions): Promise<{ embedding: number[]; stats?: EmbedStats; }> & { requestId: string; }; /** * Generates embeddings for multiple texts using a specified model. * * @overloadLabel "Multiple texts" * @param params - The parameters for the embedding * @param params.modelId - The identifier of the embedding model to use * @param params.text - The input texts to embed * @param options - Optional RPC options including per-call profiling * @returns A promise (decorated with `requestId`) resolving to an object with `embedding` (one `number[]` vector per input text, i.e. `number[][]`) and optional `stats` performance data. * @throws {QvacErrorBase} When the response type is invalid or when the embedding fails */ export declare function embed(params: { modelId: string; text: string[]; }, options?: RPCOptions): Promise<{ embedding: number[][]; stats?: EmbedStats; }> & { requestId: string; }; //# sourceMappingURL=embed.d.ts.map