Core Concepts

Architecture & Reliability Triad

How Proxicord separates compressed candidate generation from exact reranking, governed by Lane Guard, Runtime Policies, and Oracle Gap Diagnostics.

The Governing Law

Silicon speed = recall budget; data geometry = the frontier. Clustered vision data (SIFT-1M, DEEP-1M) fits IVF-PQ8 near-perfectly (Recall@100 0.983–0.995). Angular embedding data (glove-class) hits a measured structural ceiling (0.9670) — Proxicord detects the regime and reports the honest ceiling instead of hiding it.

Retrieval Pipeline

Every query traverses a deterministic stage ladder: Predictive Fast-Path Guard → Hierarchical/Flat IVF Vector Routing → OPQ-Rotated IVF-PQ8 ADC Scan → Bounded Candidate Generation → Optional Cascade → Difficulty Analysis & Safety Fallback → Exact Reranking (F16 / U8 / P4K–P10K) → Top-K Selection.

bashpipeline-flow.txt
Query
  ├─ Predictive Fast-Path Guard   (~57–85 µs, centroid-distance margins)
  ├─ Vector Routing               (2-level IVF centroid navigation)
  ├─ IVF-PQ8 + OPQ ADC Scan       (AVX-512 / AVX2+FMA / NEON / SSE4.2)
  ├─ Exact RerankStore            (F16 / U8 rescore-v2 prefetch)
  └─ Top-K + Metrics              (Lane Guard + Runtime Policies)

The Reliability Triad

1. Lane Guard (pipeline/lane_guard.rs): One guard API consulted for every lane decision (classify → analyze_order → decide_pre_scan → decide_post_scan → record_outcome circuit breaker).

2. Runtime Policies (pipeline/policies.rs): Resolves config and env knobs into a serializable snapshot and defines three retrieval modes: Production, High-Recall Validation, and Diagnostic.

3. Oracle Gap Diagnostics (pipeline/gap_diagnostics.rs): Offline oracle attribution breaking down any missed true neighbor into Routing, Scan, Cascade, PreSelect, or Rerank.

ModeSemanticsBudgets
ProductionLatency/throughput/Recall@10 focusUnchanged default — bit-identical
High-Recall ValidationLarger budgets, deeper validationFloor-raised to np256+/rr4000+ points
DiagnosticOracle analysis & candidate tracingProduction budgets + phase trace ON