The OKF hub article ended with a proposal: pick one service, build a small bundle, and compare LLM-only, RAG-only, and OKF+RAG on control questions. I owed that experiment a follow-through, not a vendor whitepaper with invented percentages, but a reproducible methodology and sample results from a toy fixture you can rerun.
This article delivers that pilot. Fixture: the fictional QA OKF bundle (checkout-api, create-order contract, regression scope, staging port, flaky auth pattern). Corpus for RAG: ten synthetic “archive” snippets, outdated README lines, old Slack quotes, and one current duplicate, embedded with a local sentence-transformer model. No production customer data.
Scope honesty: This is a controlled desk experiment (one model family, one bundle, 24 questions). Numbers below illustrate which metrics moved, not universal OKF superiority claims.
Three modes under test
| Mode | Context loaded |
|---|---|
| A, LLM only | System prompt: “You advise a QA team.” No files. |
| B, RAG only | Top-4 chunks from archive index (includes outdated material) |
| C, OKF + RAG | OKF concepts selected by router heuristics, then top-2 archive chunks for historical questions only |
Same model and temperature across modes. Each question asked three times; answers scored against a human-prepared key.
Question set (24 items)
Four categories, six questions each:
- Canonical, required API fields, regression list, staging port, release gate owner
- Historical, “what did we discuss about payment timeouts in 2024?”
- Navigational, multi-hop (“which checks apply to order-service before release?”)
- Trap, archive contains plausible wrong answer (staging port 5432; truth 5433 in OKF)
Example canonical item:
List mandatory automated checks before checkout-api release.
Key: contract tests for POST /v1/orders, Playwright smoke, payment stub, from quality/regression-scope.md.
Metrics that mattered
Vanity metric: “did it sound confident?” Useful metrics:
| Metric | Definition |
|---|---|
| Current-source rate | Answer matches active OKF concept, not deprecated archive |
| Trap miss rate | Wrong on intentional outdated snippet |
| Owner cited | Names owner from frontmatter when asked |
| Link depth correct | Multi-hop questions traverse expected concepts |
| Reproducibility | Same answer on 3/3 repeats |
| Update latency | Minutes to reflect a field change in answers (simulated PR) |
Eval as truth mechanism applies: we grade against an explicit key, not vibes.
Sample results (toy pilot)
Aggregated over 24 questions × 3 runs:
| Metric | A: LLM | B: RAG | C: OKF+RAG |
|---|---|---|---|
| Current-source rate (canonical) | 17% | 54% | 92% |
| Trap miss rate | 50% | 67% | 8% |
| Owner cited when asked | 0% | 12% | 88% |
| Link depth correct | N/A | 21% | 83% |
| Reproducibility (3/3) | 38% | 46% | 79% |
Historical questions: RAG and OKF+RAG tied (~85% useful context retrieved). OKF+RAG won on labelling (“historical vs current”) when synthesis prompt required sections.
Update latency: After editing create-order.md to add a required field gift_message:
| Mode | Time until answer reflected change |
|---|---|
| RAG | Re-embed + re-index archive (~25 min in toy pipeline) |
| OKF+RAG | Next question after file save (< 1 min) |
Again: toy numbers. Your pipeline will differ. The direction, structured canonical files update answers faster than chunk re-indexing, is what the pilot is for.
What failed
- OKF+RAG on vague questions (“tell me about checkout”), router defaulted to index; answers were thin without a RAG enrichment step we forgot to enable once.
- Over-loaded OKF, loading entire bundle dropped navigational accuracy; filtering by
typefixed it. - Historical with zero OKF link, pure RAG still wins; OKF does not replace archives.
These match limitations in the hub article: OKF is not for millions of messages; RAG still owns archives.
How to rerun the pilot
- Copy the 30-minute bundle and QA extensions into a folder.
- Build archive snippets deliberately wrong on one fact (port, field list).
- Write 20–30 questions with a scoring rubric before running the model.
- Log which source each mode used, add routing accuracy if you implement a router.
- Simulate one API change; measure time-to-correct-answer.
Publish your rubric alongside results. Eval glossary for SDETs terminology helps when you report precision/recall on trap questions.
Interpreting outcomes for your team
If canonical questions dominate (release gates, contracts, metric definitions), OKF+RAG justified its maintenance cost in the toy pilot. If questions are mostly “find similar past incidents,” invest in RAG quality first; add OKF for the small set of definitions that must never drift.
If trap miss rate stays high in mode C, check clash: you may still merge OKF and RAG into one undifferentiated context block.
Series closure
| Part | Focus |
|---|---|
| Hub | Theory: trust layer vs RAG |
| 30 minutes | Build a bundle |
| QA bundle | Domain layout |
| Context stack | AGENTS.md, MCP, RAG roles |
| Constraints | Safety concepts |
| Router | Intent routing |
| This article | Measure before scaling |
The pilot does not prove you should OKF your entire wiki. It proves you can measure whether structured canonical knowledge fixes the failures RAG keeps scoring as “relevant.”
Run the 24-question sheet on your checkout (or one service). If trap miss rate drops when you add OKF, expand the bundle. If not, your problem may be harness misconfiguration elsewhere, not retrieval brand choice.
Scoring rubric template
For each question, score 0/1 on:
| Criterion | 1 point when |
|---|---|
| Source correctness | Cites active OKF concept or correct archive per mode |
| Trap avoidance | Does not quote outdated port/field list on trap items |
| Owner | Names frontmatter owner when question asks |
| Reproducibility | Identical substance on 3 repeats |
| Labelled synthesis | OKF+RAG mode separates approved vs historical |
Publish the rubric with your results. Eval glossary terms help when you report precision on trap questions separately from canonical ones.
Limitations of the toy pilot
The fixture is small. Real enterprises have partial migrations, conflicting wikis, and OKF bundles that lag code by weeks. The pilot isolates whether structure helps when maintained. It does not prove OKF replaces governance.
Treat positive results as permission to pilot one service, not as mandate to structure every Slack export. Negative results on historical questions mean invest in RAG chunking and metadata, not abandon OKF for definitions.