Interface RaptorResult

A single RAPTOR search result with layer information.

Interface

RaptorResult

interface RaptorResult {
    id: string;
    text: string;
    score: number;
    layer: number;
    isSummary: boolean;
    metadata?: Record<string, unknown>;
}

Properties

id: string

Document/chunk identifier.

text: string

Text content.

score: number

Similarity score from vector search.

layer: number

Layer in the RAPTOR tree (0 = leaf, higher = more abstract).

isSummary: boolean

Whether this is a summary node or an original leaf chunk.

metadata?: Record<string, unknown>

Optional metadata.