okf_knowledge library

OKF-aware retrieval and synchronization, separate from generic chunk search.

Classes

KnowledgeContextHit
A cited passage selected as a match, governing source, or related context.
KnowledgeIndex
Synchronizes one bundle and searches an explicit eligible concept set.
KnowledgeInputDiagnostic
A successful embedding-input recovery, aggregated by source and code.
KnowledgeMetadataFilter
Deterministic frontmatter eligibility, independent of retrieval scores. Values within each set use OR, except requiredTags, which uses AND. Different fields combine with AND. Identifiers are exact and case-sensitive; title/description containment is literal and case-insensitive.
KnowledgeSearchPolicy
Explicit consumer policy, never written into an OKF document.
KnowledgeSearchResponse
KnowledgeSnapshot
A parsed bundle projection with original citation locations and graph edges. Indexes and logs remain navigation/history, rather than duplicate passages.