Interface RankedDocument

A ranked document with a relevance score and an index position.

Export

RankedDocument

Hierarchy

  • RankedDocument

Properties

Properties

document?: {
    [key: string]: any;
}

Document for reranking

Type declaration

  • [key: string]: any

Memberof

RankedDocument

index: number

The index position of the document from the original request.

Memberof

RankedDocument

score: number

The relevance of the document to the query, normalized between 0 and 1, with scores closer to 1 indicating higher relevance.

Memberof

RankedDocument