ArtStroy logo
ArtStroy
AI Coding · November 23, 2026 · 5 min read

I Ran an OKF vs RAG Pilot: Metrics That Actually Mattered

A controlled comparison of LLM-only, RAG, and OKF+RAG on a toy QA bundle, methodology and honest sample results, not enterprise vanity metrics.

Three bar groups comparing LLM-only, RAG, and OKF-plus-RAG modes on routing and source accuracy metrics

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

ModeContext loaded
A, LLM onlySystem prompt: “You advise a QA team.” No files.
B, RAG onlyTop-4 chunks from archive index (includes outdated material)
C, OKF + RAGOKF 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:

  1. Canonical, required API fields, regression list, staging port, release gate owner
  2. Historical, “what did we discuss about payment timeouts in 2024?”
  3. Navigational, multi-hop (“which checks apply to order-service before release?”)
  4. 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:

MetricDefinition
Current-source rateAnswer matches active OKF concept, not deprecated archive
Trap miss rateWrong on intentional outdated snippet
Owner citedNames owner from frontmatter when asked
Link depth correctMulti-hop questions traverse expected concepts
ReproducibilitySame answer on 3/3 repeats
Update latencyMinutes 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:

MetricA: LLMB: RAGC: OKF+RAG
Current-source rate (canonical)17%54%92%
Trap miss rate50%67%8%
Owner cited when asked0%12%88%
Link depth correctN/A21%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:

ModeTime until answer reflected change
RAGRe-embed + re-index archive (~25 min in toy pipeline)
OKF+RAGNext 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 type fixed 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

  1. Copy the 30-minute bundle and QA extensions into a folder.
  2. Build archive snippets deliberately wrong on one fact (port, field list).
  3. Write 20–30 questions with a scoring rubric before running the model.
  4. Log which source each mode used, add routing accuracy if you implement a router.
  5. 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

PartFocus
HubTheory: trust layer vs RAG
30 minutesBuild a bundle
QA bundleDomain layout
Context stackAGENTS.md, MCP, RAG roles
ConstraintsSafety concepts
RouterIntent routing
This articleMeasure 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:

Criterion1 point when
Source correctnessCites active OKF concept or correct archive per mode
Trap avoidanceDoes not quote outdated port/field list on trap items
OwnerNames frontmatter owner when question asks
ReproducibilityIdentical substance on 3 repeats
Labelled synthesisOKF+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.