Interface Rerank

Rerank represents an object that contains the result for the rerank call.

interface Rerank {
    created: number;
    id: string;
    model: string;
    object: string;
    results: RerankResult[];
    createdDate(): Date;
}

Properties

created: number

created represents the unix timestamp for when the request was received.

id: string

id represents a unique identifier for the result.

model: string

model represents the model that was used.

object: string

object represent the type of the result document.

results: RerankResult[]

Methods

  • createdDate converts the created unix timestamp into a JS Date.

    Returns Date