โก Nexora AI
Portfolio Case Study & Technical Deep Dive
An enterprise-grade autonomous multi-agent AI platform uniting dynamic intent routing, multimodal RAG, real-time generative UI, and defense-in-depth security.
code
โข Live Repository : https://github.com/Sandeep-singh-99/Nexora
โข Architecture : Asynchronous Multi-Agent Graph (LangGraph) + Real-Time SSE Gateway (FastAPI) + Modern Web (Next.js 16)
โข Core Domains : Autonomous Agent Routing, In-Memory RAG, Generative UI, Enterprise Security๐ก The Problem & The Nexora AI Solution
- The Problem: Conventional LLM applications rely on monolithic prompts that hallucinate across complex tasks, output static plain markdown, store sensitive user files directly on server disks, and waste inference tokens processing malicious jailbreaks.
- The Solution: Nexora AI decouples cognition into a stateful LangGraph multi-agent network, replaces static text with interactive Generative UI over SSE, enforces zero-disk in-memory RAG with Human-in-the-Loop PII interception, and prevents prompt injection pre-inference.
๐๏ธ System & Multi-Agent Architecture
Loading diagram...
โจ Core Features & Technical Highlights
- ๐ค Autonomous Multi-Agent Routing: Classifies query intent via structured output to dispatch to specialized Chat, Code, or Math agents with zero manual prompting.
- ๐ Zero-Disk In-Memory Document RAG: Streams PDFs and DOCX files into memory buffers (
io.BytesIO) with OCR fallback and PII detectionโno data ever touches the disk. - ๐บ Interactive YouTube Video RAG: Ingests video transcripts into timestamped semantic windows; interactive player seeks playback to the exact second.
- ๐จ Dynamic Generative UI Registry: Emits structured payloads over SSE to hydrate rich widgets (video players, clocks, math derivations, charts) directly in chat.
- ๐งฎ Hybrid Symbolic Math Engine: Deterministically computes calculus, algebra, and matrices via SymPy/SciPy, rendered with KaTeX step-by-step proofs.
- ๐ก๏ธ Dual-Stage Security Guardrails: Intercepts jailbreaks and prompt injections before LLM invocation (0 token waste); redacts secrets and credentials from outputs.
- ๐ท๏ธ Context-Aware Title Generation: Synthesizes concise 3โ5 word conversation titles dynamically as discussions unfold.
- ๐ Pinned Messages & Thread Memory: Pin key answers for immediate reference; persist session states across turns with LangGraph checkpointers.
- ๐ Real-Time Web Search Grounding: Integrates live web search via Tavily for verified, up-to-date answers accompanied by publisher citation cards.
- ๐ญ End-to-End Observability: Full distributed tracing of agent nodes, tool latency, token consumption, and state transitions via LangSmith.
๐จ Dynamic Generative UI Registry
Nexora AI replaces plain text responses with interactive, client-hydrated UI widgets:
| Feature Area | Interactive Component | Visual & Functional Capability |
|---|---|---|
| YouTube Video RAG | <YouTubeCard /> | Synchronized video player with searchable captions and click-to-seek timestamps. |
| Symbolic Math | <MathCard /> | Deterministic calculations with step-by-step derivation and KaTeX formula rendering. |
| World Clock | <TimeCard /> | Live regional time display with timezone offsets and localized country flags. |
| Web Citations | <SearchResults /> | Live fact attribution cards linking directly to external sources with favicons. |
| Data Visualizer | <ChartCard /> | Dynamically rendered analytical charts (bar, line, distribution) from structured data. |
| Data Grid | <DataTable /> | High-density tabular grid with column sorting, alignment, and markdown support. |
| Engineering Plan | <ProjectCard /> | Multi-phase architecture blueprints and task breakdown progress cards. |
| Executive Callout | <InfoCard /> | Highlighted cards summarizing key definitions, caveats, or strategic takeaways. |
๐ก Key Engineering Challenges Solved
- Eliminating Mathematical Hallucinations: Offloaded calculations from probabilistic LLM token prediction to deterministic Python
SymPyandSciPyengines with KaTeX proofs. - Enterprise Privacy & Zero-Disk Storage: Engineered an in-memory RAG pipeline using
io.BytesIOstreams, automatically purging document buffers after pgvector vectorization. - Flicker-Free Streaming UI: Implemented a typed SSE protocol separating
token,ui, andcitationevents to atomically render React components without stream interruption. - Zero-Token Threat Neutralization: Built pre-execution regex and rule-based guardrails that reject jailbreak attempts and prompt injections before calling the LLM.
