PersonaRAG is an intelligent AI assistant powered by Retrieval-Augmented Generation (RAG) that retrieves evidence from Bhavani Shankar's curated personal corpus and generates grounded answers with citations and lexical faithfulness verification.
- Hybrid Retrieval: Combines semantic matching with BM25 Okapi sparse scoring and reciprocal score fusion.
- Lexical Faithfulness Verifier: Evaluates lexical support rate for every generated response with confidence indicators (green ≥60%, yellow 30-60%, red <30%).
- Interactive Chat Widget: Floating conversational interface with real-time typewriter animations, markdown link rendering, and info modal.
- REST API Endpoints:
GET /api/qa?q=...&POST /api/qa: Full RAG generation and verification.GET /api/search?q=...&k=10: Retrieve ranked evidence contexts.GET /api/health: Health status and backend information.- Also aliased at
/qa,/search, and/healthfor backwards compatibility.
- Full-Stack Next.js 15 App Router: High-performance unified TypeScript codebase with Tailwind CSS.
- Framework: Next.js 15 (App Router), React 19, TypeScript
- Styling: Tailwind CSS v4
- AI Generation: Gemini 2.5 Flash via
@google/genai(with grounded profile fallback) - Retrieval Engine: In-memory BM25 Okapi + domain-specific query expansion + semantic score fusion
- Verification: Lexical overlap sentence-level faithfulness verifier
Run the development server on port 3000:
npm run devOpen http://localhost:3000 in your browser.
npm run build
npm start- Open http://localhost:3000 in your browser.
- Click the chat icon (💬) in the bottom-right corner or click any sample prompt on the home page.
- Try asking:
- "What programming languages does Bhavani know?"
- "Tell me about his experience at Bosch"
- "What certifications does he have?"
- "Describe his AI/ML projects"
Bhavani Shankar
- 📧 Email: shankar.bhavani.in@gmail.com
- 💼 LinkedIn: linkedin.com/in/shankar-bhavani
- 🐙 GitHub: github.com/ExperimenterX
- 🌐 Portfolio: shankarbhavani-fs.github.io