Back to PortfolioMohit Padhye · Case Study
AI / RETRIEVALConcept Blueprint

AI Knowledge Assistant

Grounded enterprise search with citation-backed RAG pipelines and low-latency streaming.

PythonRAGLLMsRedisDocker
Interactive System Flow — Click any node
5 stages
Next.js Stream UI(React 19 · SSE)
Budget: ~15ms UI

Renders token streams progressively and links inline [1][2] badges to source excerpts.

Pipeline: Document ingestion chunks & indexes sources asynchronously; user queries hit hybrid retrieval + cache before streaming grounded tokens.

Problem Context

Teams lose hours searching scattered wikis, PDFs, and SOPs, while naive LLM wrappers hallucinate answers without source attribution.

System Solution

Designed a two-stage ingestion and retrieval pipeline combining semantic embeddings with lexical filtering, strict prompt grounding, and inline citation streaming.

Architectural Trade-offs

  • Hybrid vector + keyword ranking over pure vector search to preserve exact error codes and identifiers.
  • Redis semantic response caching to cut repeat query latency and token spend.
  • Chunk overlap tuning with document-level ACL metadata enforcement before context injection.

Engineering Outcomes

  • Deterministic citation links back to source section & document version
  • Graceful fallback when retrieval confidence drops below threshold
  • Decoupled async ingestion worker via containerized queues