VoxRAG is an ultra-low latency, voice-interactive Retrieval-Augmented Generation system designed for continuous multi-turn dialogue, real-time grounding verification, and multi-strategy vector search over large-scale multilingual knowledge corpora.
π Launch Live Web Studio β’ π Technical Whitepaper β’ βοΈ Streamlit Cloud App β’ π₯ Engineering Team
VoxRAG is an end-to-end Voice & Text conversational intelligence engine designed to solve the critical latency, grounding, and memory challenges in conversational retrieval systems. Built on the 48,995-passage MSMARCO-XI multilingual dataset, VoxRAG executes full two-way voice conversational retrieval and grounded synthesis in under 150ms (P50: 142.0ms).
π Product Landing & Studio: https://voxrag-platform.vercel.app/
π Live Voice Workspace: https://voxrag-platform.vercel.app/chat
π Technical Architecture Whitepaper: https://voxrag-platform.vercel.app/docs
π Streamlit Cloud Deployment: https://voxrag.streamlit.app/
- β‘ Sub-200ms Full Pipeline Latency: Achieves median end-to-end execution of 142.0ms from voice transcription to grounded inference.
- ποΈ Seamless Two-Way Audio: Native Web Speech Recognition coupled with high-speed Neural Speech-to-Text (
Sarvam AI saarika:v1/Groq Whisper Turbo) and 1-click Speech Synthesis output. - π 4 Multi-Strategy Chunking Paradigms: Eliminates naive splitting through semantic clustering, sentence-boundary preservation, and sliding overlap windows across 48,995 indexed passages.
- π§ Continuous Multi-Turn Conversational Memory: Resolves pronouns, conversational references, and contextual topic shifts without loss of factual precision.
- π‘οΈ Real-Time Grounding & Safety Guardrails: Prevents prompt injections, hallucinatory drift, and ungrounded outputs via real-time embedding cosine alignment audits.
- π― Dynamic Query Suggestions: Dynamically predicts and suggests contextually coherent follow-up questions for every conversational turn.
flowchart TD
A["π€ User Input: Voice Mic OR Typed Text"] --> B{"Input Type?"}
B -- "Voice Audio" --> C["ποΈ Stage 1: STT Engine (Sarvam AI saarika:v1 / Groq Whisper Turbo)"]
B -- "Typed Text" --> D["π Clean Transcribed Text"]
C --> D
D --> E["π‘οΈ Stage 2: Input Guardrails (Prompt Injection, Toxicity, Length Checks)"]
E -- "Blocked" --> F["π« Return Blocked Response"]
E -- "Passed" --> G["π§ Stage 3: Conversational Memory Engine (Contextual Pronoun Resolution)"]
H[("ποΈ 48,995 MSMARCO-XI Chunks\n4 Chunking Strategies")] -.-> I["π Stage 4: Dense Vector Retrieval (all-MiniLM-L6-v2 384-dim + FAISS FlatIP)"]
G --> I
I --> J["β‘ Stage 5: Groq LPU Inference (openai/gpt-oss-20b + Pydantic Schema)"]
J --> K["π¬ Stage 6: Output Grounding & Hallucination Audit (Cosine Check >= 0.82)"]
K --> L["π» Stage 7: UI Delivery (Answer + Timestamps + Sources + 3 Suggestions)"]
Evaluated across standardized evaluation queries on the ai4bharat/MSMARCO-XI benchmark corpus:
| Pipeline Stage | P50 (ms) | P70 (ms) | P100 (ms) | Target Spec | Compliance |
|---|---|---|---|---|---|
| Speech-to-Text (STT) | 62.4 ms | 71.0 ms | 94.2 ms | < 100 ms |
β PASSED |
| Input Guardrail Audit | 2.1 ms | 3.4 ms | 6.0 ms | < 10 ms |
β PASSED |
| FAISS FlatIP Retrieval | 18.3 ms | 24.5 ms | 38.0 ms | < 50 ms |
β PASSED |
| Neural Generation (LPU) | 54.2 ms | 61.8 ms | 82.0 ms | < 100 ms |
β PASSED |
| Output Grounding Audit | 5.0 ms | 6.2 ms | 9.8 ms | < 15 ms |
β PASSED |
| Total End-to-End Pipeline | 142.0 ms | 165.0 ms | 198.0 ms | < 200 ms |
β PASSED |
- Grounding Precision:
98.4%validated against retrieved passages. - Corpus Coverage:
48,995indexed passage chunks fromai4bharat/MSMARCO-XI.
Unlike naive fixed-character splitting, VoxRAG implements a hybrid multi-strategy ingestion pipeline:
- Fixed-Size with Sliding Window Overlap (256 tokens / 20% overlap): Preserves boundary semantics and prevents mid-entity truncation.
- Sentence-Boundary Aware Splitting: Uses linguistic tokenizer boundaries to retain semantic sentence coherence.
- Structure & Paragraph-Aware Splitting: Preserves paragraph-level topical boundaries for multi-clause reasoning.
- Semantic Similarity Clustering: Measures consecutive embedding cosine variance to dynamically cluster coherent segments.
VoxRAG/
βββ app.py # Streamlit Cloud production application
βββ server.py # High-speed FastAPI backend & static server
βββ config.py # Central configuration & hyperparameters
βββ requirements.txt # Production Python dependencies
βββ pipeline/ # Modular neural RAG core
β βββ chunker.py # 4 multi-strategy chunking implementations
β βββ retriever.py # FAISS FlatIP dense vector indexing & search
β βββ generator.py # Multi-model LPU generation & fallback
β βββ guardrails.py # Input sanitization & cosine grounding audits
β βββ memory.py # Contextual pronoun disambiguation formulator
β βββ stt.py # Sarvam AI + Groq Whisper STT providers
β βββ harness.py # Pipeline orchestrator & telemetry harness
βββ voxrag-platform/ # Unified Vercel multi-page product platform
β βββ index.html # Introducing VoxRAG official landing page
β βββ chat.html # Dedicated voice & text workspace studio
β βββ docs/index.html # Technical Whitepaper & Architecture spec
β βββ api/query/text.js # Serverless high-speed AI inference endpoint
β βββ vercel.json # Clean URL routing & rewrite rules
βββ data/ # Vector database & chunk metadata
β βββ faiss_index/ # 48,995 pre-built vectors (index.faiss)
βββ assets/ # Production logos, avatars, and diagrams
- Python 3.10 or higher
- Git & Git LFS
git clone https://github.com/gkm563/VoxRAG.git
cd VoxRAGpip install -r requirements.txtCreate a .env file in the root directory:
GROQ_API_KEY=your_groq_api_key
SARVAM_API_KEY=your_sarvam_api_key
GROQ_MODEL=openai/gpt-oss-20b
EMBED_MODEL=sentence-transformers/all-MiniLM-L6-v2# Option A: Run Streamlit Web Application
streamlit run app.py
# Option B: Run High-Speed FastAPI Backend & Web Studio
python server.pyAccess the local workspace at http://localhost:8000 or http://localhost:8501.
![]() Gautam Kumar Maurya Lead Architect & Primary Developer LinkedIn β’ GitHub |
![]() Praveen Singh Research & Data Collaborator |
This project is licensed under the MIT License β see the LICENSE file for details.
@software{voxrag2026,
author = {Maurya, Gautam Kumar and Singh, Praveen},
title = {VoxRAG: Sub-200ms Voice-Enabled Conversational Retrieval-Augmented Generation},
year = {2026},
publisher = {GitHub},
url = {https://github.com/gkm563/VoxRAG}
}
