Interface: LibraryRankProfile
Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:189
How an item ranks: each field's weight, a finite number above 0, read by a passage's field metadata key. A
passage with no field, or one fields does not name, takes the weight of fallback, which fields names. With
title: 'metadata' an item's title is read as well from its passages' title metadata key (the source's title,
which indexSource writes on every passage), as the field title; with 'passage', the default, a title ranks
only where a passage of its own holds it.
Properties
fallback
fallback:
string
Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:191
fields
fields:
Record<string,number>
Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:190
title?
optionaltitle:"metadata"|"passage"
Defined in: packages/agentos/src/cognition/library/LibraryIndex.ts:192