Interface RetrieveRerankEvent

Emitted when reranking of retrieved chunks completes.

interface RetrieveRerankEvent {
    type: "retrieve:rerank";
    inputCount: number;
    outputCount: number;
    durationMs: number;
    timestamp: number;
}

Properties

type: "retrieve:rerank"
inputCount: number

Number of chunks before reranking.

outputCount: number

Number of chunks after reranking (may be fewer due to threshold filtering).

durationMs: number

Duration of reranking in milliseconds.

timestamp: number

Timestamp of the event.