Combine exact and semantic retrieval
Status: Ready
Article ID: 072
Truth label: Current
Audience: Knowledge operator
Reader outcome: Use FTS5 for exact recall and vectors for related concepts.
Related articles: 023, 071, 079
Target week: 29
Last verified: 2026-09-13
Technical reviewer: Codex source audit
Editorial reviewer: Codex editorial audit
Start with two retrieval jobs
Exact search is useful for identifiers, filenames, error fragments, decision codes, and phrases. Semantic search is useful when the query and source describe the same idea with different words.
Understand the hybrid path
CPMI stores canonical records and an FTS5 index in SQLite. Chroma provides a semantic projection. Ranking can combine lexical and vector matches with scope, phase, freshness, and record type.
Choose the query shape
Include the exact token when one exists, then describe the concept in ordinary language. Inspect both strong exact matches and related semantic matches. A missing vector result should not hide an exact source record.
Verify the source
Open the cited path, read the surrounding section, compare its hash and date, and check whether a current control file supersedes it. Use search to locate the evidence, then reason from the source itself.
Current limits
High rank is not truth, correctness, or permission. Embedding identity can change and make a projection incompatible. Scope gaps and stale records can still affect results until the full retrieval boundary is unified.
Next lesson
Continue with Keep current controls out of historical retrieval.
Derivative map
- Weekly package: WEEK-29
- Long video: VIDEO-W29-LONG
- Shorts: SHORT-W29-PROBLEM, SHORT-W29-MECHANISM, SHORT-W29-WARNING
- Email: EMAIL-W29
- LinkedIn: LI-W29-A, LI-W29-B
- X: X-W29-A, X-W29-B
- Visual: VISUAL-W29
Review record
- FTS5, Chroma, canonical record, and ranking roles checked.
- Search rank is never presented as authority.
- Embedding, scope, and stale-record limits remain explicit.
- Query and source-verification guidance reviewed.
Review completed: 2026-08-27
Re-audited against the running product: 2026-09-13