I just built a 3D agentic RAG app using claude sdk and gemini embedding 2 that makes the entire retrieval process visible. Every vector, every score, every decision, as it happens. Not just another prototype or recording. It's live, on my site, for anyone to play around with, guided walkthrough or bring your own key. Link in the comments.
Most RAG is a black box. A question goes in, an answer comes out and the reasoning in between is invisible. That gap is exactly where hallucinations hide.
I gave Claude a hybrid search tool and let it drive. When the retrieved context is thin, the model reformulates its own query and searches again, iterating until the evidence is sufficient. Retrieval becomes a reasoning process. The model decides when it has enough, rather than answering from whatever a single static lookup happened to return.
Underneath, every query resolves through 2 retrieval strategies running in parallel:
• Semantic search ranks by cosine similarity over the embeddings, so "neural net" and "deep learning" converge even with no shared tokens.
• Lexical search uses BM25 to anchor precision: exact names, rare terms, error codes, the signal pure semantics tends to wash out.
The 2 rankings are then merged through Reciprocal Rank Fusion (RRF), which blends both into a single ordered set without either one dominating.
All 8 stages, rendered in 3D vector space: Chunk → Embed → Store → Embed Query → Retrieve → Fuse → Augment → Grounded Answer
Watch the retrieval unfold below.
#RAG #AgenticAI #Anthropic #Claude #VoyageAI #Google #Gemini