Skip to content

About

A hybrid IR and RAG system that act as a personnel assistant to a person/company

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 PersonaRAG (Next.js Edition)

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.


✨ Features

  • 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 /health for backwards compatibility.
  • Full-Stack Next.js 15 App Router: High-performance unified TypeScript codebase with Tailwind CSS.

🧩 Tech Stack

  • 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

🚀 Getting Started

Development Server

Run the development server on port 3000:

npm run dev

Open http://localhost:3000 in your browser.

Production Build

npm run build
npm start

🎯 Usage

  1. Open http://localhost:3000 in your browser.
  2. Click the chat icon (💬) in the bottom-right corner or click any sample prompt on the home page.
  3. 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"

👤 Author

Bhavani Shankar

About

A hybrid IR and RAG system that act as a personnel assistant to a person/company

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages