NEXAUR / Abhimanyu AI / Technical paper
Reaching 119.3 µs P50 retrieval latency and zero context bleed with continuous vector subspace routing, a Hilbert orthogonality drift gate, and Okapi BM25 with AVX2 SIMD Reciprocal Rank Fusion.
P50 memory retrieval latency
P95 tail latency
History token savings through delta compaction
Topic drift isolation precision
On this page
Abstract1. Introduction2. Hearing phase radar3. Tripartite memory4. Hilbert drift gate5. Hybrid retrieval and RRF6. BenchmarksCite this paperAbstract
Traditional Retrieval-Augmented Generation (RAG) pipelines suffer from high pre-inference latency, cross-topic context pollution, and ambiguous pronoun failure in multi-turn dialogues. In this paper, we present Abhimanyu AGI, a sovereign multi-tenant orchestration engine that replaces rigid heuristic prompt parsing with a biological dual-store cognitive architecture. By combining a Tier-1 Shannon Entropy hearing radar, a single-pass bilingual coreference resolver, a Hilbert orthogonal vector drift gate (STAY / BRANCH / ROUTE_BACK), and C++17 AVX2 SIMD zero-copy matrix top-k search, our system achieves a mean context assembly latency of 121 microseconds while eliminating historical token bloat by 97.0% through structural delta compaction.
01Introduction and motivation
Modern conversational agents operate under severe constraints when deployed in localized, multi-tenant sovereign environments. Naive implementations rely on static prompt concatenation, pushing the entire conversational history into the model’s context window. As session length increases, two pathological failures emerge.
Context window pollution (drift)
Unrelated historical turns bleed into new user inquiries. When a user shifts from debugging code to asking a general factual question, old code blocks contaminate attention heads, resulting in degraded accuracy and inflated time to first token.
Coreference failure on vague prompts
Ambiguous follow-ups such as “How do I configure database rollbacks in it?” fail in standard RAG architectures because vector search engines lack immediate syntactic resolution of pronominal mentions.
To overcome these limitations, Abhimanyu introduces a deterministic pre-inference pipeline that processes prompts through an ultra-fast cognitive ingestion radar before token generation begins.
Figure 1. Simplified view of the pre-inference pipeline described in this paper.
02The cognitive “hearing phase” radar
Before any request reaches the language model, the Tier-1 Cognitive Hearing Radar (prompt_filter.py) executes the following mathematical and linguistic transformations in under 400 µs.
A. Shannon information entropy and semantic density
The engine evaluates prompt information content mathematically to determine whether a query is low-entropy conversational chitchat or high-entropy, constraint-heavy technical specification.
B. Polyglot AST code indexing without truncation
Unlike naive systems that strip or truncate code blocks during cleaning, our polyglot parser (supporting Python, TypeScript, Rust, Go, C++ and SQL) extracts structural signatures into @virtual_artifacts while retaining 100% of raw user code in the prompt.
C. Single-pass bilingual coreference resolution
Ambiguous follow-ups that rely on pronouns are resolved to their referents before retrieval, so the vector search receives a self-contained query instead of a vague one.
03Tripartite cognitive memory architecture
Modeled after human biological memory systems (prefrontal working memory, hippocampal replay and neocortical consolidation), Abhimanyu organizes tenant memory into three distinct tiers.
Working memory buffer
Maintains recent dialogue turns and active code slices in high-speed scratchpads using an active task journal (ActiveTaskJournal).
Episodic compaction
Transforms older conversational turns into compact narrative delta pointers (@AST_REF), achieving up to 97% token savings.
Semantic knowledge vault
Consolidates durable user facts, preferences and enterprise documents into a vector database searched with C++ AVX2 SIMD matrix operations.
04Hilbert orthogonality topic drift gate
To prevent context bleed across subject boundaries, the Hilbert topic drift gate maintains running centroid vector trajectories for active conversation branches.
If the cosine similarity of the query vector with the centroid is at least 0.45, the system returns STAY. If similarity drops below 0.20 with zero token vocabulary overlap, it returns BRANCH, isolating past conversational history instantly.
05Hybrid dense-sparse RRF and FlashRank reranking
Retrieval accuracy is maximized by merging Okapi BM25 sparse scores with BGE-small dense vector cosine similarities using Reciprocal Rank Fusion (RRF).
Top retrieved candidates are subsequently passed through an ONNX cross-encoder (ms-marco-TinyBERT-L-2-v2) for neural reranking in under 2 ms before context assembly.
06Empirical benchmarks and latency telemetry
Tested across a multi-tenant testbed with 10,000 conversational turns and 1 GB document corpora on local hardware.
| Benchmark metric | Target threshold | Measured result | Status |
|---|---|---|---|
| P50 memory retrieval latency | < 1.0 ms | 119.3 µs | Passed |
| P95 tail latency | < 5.0 ms | 182.4 µs | Passed |
| History token renewal savings | > 80.0% | 97.0% | Passed |
| Topic drift isolation precision | > 90.0% | 98.4% | Passed |
Cite this paper
If you use or discuss this work, please cite it as follows.
@techreport{abhimanyu_rag_2026,
title = "Abhimanyu AGI: Sovereign Zero-Latency Multi-Tenant RAG and Cognitive Memory Architecture",
author = "Research Core Group, NEXAUR Technologies Private Limited",
institution = "NEXAUR Technologies Private Limited",
year = "2026",
month = "nov",
url = "https://nexaur.online/abhimanyu-rag"
}
Next paper: Paper II: Inference engine (CARB-X, speculative decoding, RLC)