One Search, Both Halves

Fusing three indexes to search any codebase

Every code-search tool is half-blind

grep finds exact text but not meaning. Embeddings find meaning but miss exact symbols. Nothing did both at enterprise scale.

OCTO Platform is a multi-index code-search engine (ramparte/OCTOPlatform) built to do both at once.

So does fusing indexes actually work? The eval says yes.

The fused approach hits 88.0% overall

On a 542-question golden set run against the real Grafana codebase, OCTO's best config (summary embeddings + cross-encoder) landed 477 of 542 hits.

A big number only counts if the test behind it is honest.

88.0%
overall hit rate (477/542)
0.653
mean MRR
0.880
recall@10
542
questions in the golden set

The 88% isn't inflated by missing files

542 real questions — 116 function + 384 class lookups + 42 comprehension — with 100% index coverage: every expected file was indexed, 0 missing across 11,196 files.

But one overall number can still hide where a tool goes blind.

100%
index coverage — 542/542 files indexed
0
questions with a missing file
11,196
unique files in the index
500 / 42
retrieval / comprehension split
The Real Test

One number hides where a tool goes blind

A tool can ace exact-symbol lookups and flunk natural-language questions — or the reverse. Most tools pick a side. Winning both ends is the thing that actually matters.

OCTO's answer: route each query to the index that can see it.

A deterministic 5-pass heuristic routes each query

No LLM classifies the query. extract_symbol() runs five passes; symbol lookups get hybrid RRF fusion of text + code vectors, everything else gets semantic search plus keyword re-rank.

Routing covers exact queries — but the semantic half still needed a lift.

  1. 1Quoted symbolsfindall-based extraction from the query
  2. 2Keyword prefixes"function", "class" and similar cues
  3. 3"Where is X"locate-style natural phrasing
  4. 4"implementation of X"find-implementation phrasing
  5. 5Unquoted CamelCasefallback symbol detection

LLM summaries were the biggest comprehension lever

Summary embeddings alone lifted natural-language accuracy from a 61.9% baseline to 76.2%. The eval stayed honest — it rejected ideas that hurt.

Together, routing plus summaries let one system win both halves.

One system wins both halves at once

87.1% function-lookup and 89.1% class-lookup on exact symbols, AND 81.0% on natural-language comprehension — 88.0% overall. Something grep and embeddings couldn't do apart.

That's the pattern worth keeping.

Exact symbols
87.1%
function lookup (101/116)
89.1%
class lookup (342/384)
Natural language
81.0%
comprehension (34/42)
88.0%
overall (477/542)
The Pattern

Fuse indexes, route deterministically, prove it honestly

Fuse multiple indexes, route each query deterministically, and prove it on an honest eval that reports what hurt — not just what won. That's how you search any codebase without picking a side.

One search. Both halves.

Sources

Research Methodology

Data as of: April 21, 2026  ·  Working / Eval-verified · summary+cross-encoder not yet wired into production orchestrator

Primary sources: ramparte/OCTOPlatform (checked out at ~/dev/ANext/OCTOPlatform) and eval artifacts under ~/dev/ANext/eval-repos/grafana-eval-results. Every metric re-derived independently from command output.

Commands run:

Gaps & caveats: Only tested on Grafana (~11K files) — 100K+ scale is estimated, not measured. Summary embeddings run as an 11-file proof-of-concept, not yet wired into the production orchestrator. Session-volume figures from OCTO-PLATFORM-ASSESSMENT.md are doc-reported, not git-reproduced.

Primary contributor: Sam Schillace — 37 of 37 commits (100%).

More Amplifier Stories