Skip to main content

Interface: FuzzyDocument

Defined in: packages/agentos/src/cognition/rag/search/FuzzyIndex.ts:21

A document: its id and its fields, each a text or a list of short texts, as keywords are.

Properties​

fields​

fields: Record<string, string | string[]>

Defined in: packages/agentos/src/cognition/rag/search/FuzzyIndex.ts:25

The document's fields by name. A field the index was not made with is neither searched nor kept.


id​

id: string

Defined in: packages/agentos/src/cognition/rag/search/FuzzyIndex.ts:23

The document's id, one per document in the index.