Skip to main content

Interface: LexicalSearchOptions

Defined in: packages/agentos/src/cognition/rag/search/LexicalIndex.ts:50

How a search matches.

Properties​

match?​

optional match: "all" | "any"

Defined in: packages/agentos/src/cognition/rag/search/LexicalIndex.ts:52

'any' ranks documents holding at least one query word (the default); 'all' keeps those holding every one.


prefix?​

optional prefix: boolean

Defined in: packages/agentos/src/cognition/rag/search/LexicalIndex.ts:54

When true a stored word matches when it begins with a query word.