Parameters for the textEmbeddings operation.

interface TextEmbeddingsParams {
    headers?: OutgoingHttpHeaders;
    inputs: string[];
    modelId: string;
    parameters?: WatsonXAI.EmbeddingParameters;
    projectId?: string;
    spaceId?: string;
}

Properties

headers?: OutgoingHttpHeaders
inputs: string[]

The input text.

modelId: string

The id of the model to be used for this request. Please refer to the list of models.

Parameters for text embedding requests.

projectId?: string

The project that contains the resource. Either space_id or project_id has to be given.

spaceId?: string

The space that contains the resource. Either space_id or project_id has to be given.