Skip to main content

Interface: LibraryPassage

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:57

A passage found.

Properties​

folderId?​

optional folderId: string

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:71


id​

id: string

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:59

<sourceId>#<index>.


index​

index: number

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:62


kind​

kind: string

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:61


metadata​

metadata: Record<string, MetadataValue>

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:73


score​

score: number

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:69

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.


sourceId​

sourceId: string

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:60


tags​

tags: string[]

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:72


text​

text: string

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:63


title?​

optional title: string

Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:70