Interface BM25Document

Internal document representation stored in the BM25 index.

Interface

BM25Document

interface BM25Document {
    id: string;
    length: number;
    metadata?: Record<string, unknown>;
}

Properties

Properties

id: string

Unique document identifier.

length: number

Number of tokens in the document after tokenization.

metadata?: Record<string, unknown>

Optional metadata attached to the document.