Interface BM25Result

A single search result with its relevance score.

interface BM25Result {
    id: string;
    score: number;
    metadata?: Record<string, unknown>;
}

Properties

Properties

id: string

Document identifier.

score: number

BM25 relevance score (higher = more relevant).

metadata?: Record<string, unknown>

Document metadata if available.