Parameters for the textRerank operation.

interface TextRerankParams {
    headers?: OutgoingHttpHeaders;
    inputs: WatsonXAI.RerankInput[];
    modelId: string;
    parameters?: WatsonXAI.RerankParameters;
    projectId?: string;
    query: string;
    spaceId?: string;
}

Properties

headers?: OutgoingHttpHeaders

The rank input strings.

modelId: string

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

The properties used for reranking.

projectId?: string

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

query: string

The rank query.

spaceId?: string

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