Interface LibraryPassage

A passage found.

interface LibraryPassage {
    id: string;
    sourceId: string;
    kind: string;
    index: number;
    text: string;
    score: number;
    title?: string;
    folderId?: string;
    tags: string[];
    metadata: Record<string, MetadataValue>;
}

Properties

id: string

<sourceId>#<index>.

sourceId: string
kind: string
index: number
text: string
score: number

The store's score for the passage, as the search's mode and the store compute it, read as a number. A hybrid search with anyOf on a store with lexicalSearch answers the index's fusion of the two legs' ranks instead; on a store without it, that search runs the dense leg alone and answers the store's score.

title?: string
folderId?: string
tags: string[]
metadata: Record<string, MetadataValue>