Engineering Lab

See the algorithm do the work.

Each explorer calls the same functions the unit tests check, so every number it shows is computed from your input. The Architecture X-Ray is a guided reading of a pipeline rather than an explorer.

  • Ranking

    Reciprocal Rank Fusion

    Merge a lexical and a semantic ranking and see every term of the score. Change k and watch the order respond, then compare it with NexusRAG's deployed blend.

    rrf.test.ts — fixture, identical, disjoint, missing and empty rankings, duplicates, invalid k, ties.

  • Search

    Binary Search

    Step through low, high and mid on a sorted array. Each step states its comparison and why half of the interval can be discarded.

    binary-search.test.ts — empty, single, first, last, absent, duplicates, negatives, large arrays, unsorted input.

  • Graphs

    Dijkstra's shortest paths

    Settle one node at a time from a priority queue, see each edge relaxation, and read the predecessor table that rebuilds the path.

    dijkstra.test.ts — simple, disconnected, source equals target, zero weights, equal paths, negative edges, direction.

  • Systems

    Architecture X-Ray

    A retrieval-augmented generation pipeline, layer by layer: responsibility, inputs, outputs, failure modes and tradeoffs, each tied to NexusRAG evidence.

    Static content; every NexusRAG line links to a ledger entry.

The algorithms and their tests live in artifacts/proof-atlas-core/src/algorithms. The Workbench's document search reuses the same RRF function.