import type { PredictorService, PredictionService } from "../../services"; import type { Acceleration } from "../../types"; import type { CreateEmbeddingResponse } from "./types"; export interface EmbeddingCreateParams { /** * Input text to embed, encoded as a string or array of strings. */ input: string | string[]; /** * Embedding predictor tag. */ model: string; /** * The number of dimensions the resulting output embeddings should have. * Only supported in Matryoshka embedding models. */ dimensions?: number; /** * The format to return the embeddings in. */ encoding_format?: "float" | "base64"; /** * Prediction acceleration. */ acceleration?: Acceleration; } export declare class EmbeddingService { private readonly predictors; private readonly predictions; private readonly cache; constructor(predictors: PredictorService, predictions: PredictionService); create({ model: tag, input, encoding_format, acceleration }: EmbeddingCreateParams): Promise; private createDelegate; private parseEmbedding; }