Skip to content

krishdef7/Saarthi-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

18 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽ“ Saarthi AI

Intelligent Scholarship Discovery with Live Multi-Agent Reasoning

MIT License Python Next.js FastAPI Qdrant TypeScript

The first scholarship platform where you can watch AI agents think in real-time

๐Ÿš€ Live API ยท ๐Ÿ“„ API Docs ยท ๐Ÿ’ป GitHub


Built for Convolve 4.0 Hackathon - MERGE-CONFLICT | IIT Roorkee


๐ŸŽฏ The Problem

85% of eligible Indian students never find scholarships meant for them.

Challenge Impact
5,000+ scattered schemes Information overload
Keyword-only search Misses semantic intent
No personalization Same results for everyone
Zero transparency "Why did I match?" unanswered
Scam-prone ecosystem Trust deficit

Students search: "เค—เคฐเฅ€เคฌ เค›เคพเคคเฅเคฐเฅ‹เค‚ เค•เฅ‡ เคฒเคฟเค เคชเฅˆเคธเคพ" (money for poor students) Portals expect: "AICTE Pragati Scheme SC Category 2026"


๐Ÿ’ก Our Solution

Saarthi AI (Sanskrit: "Guide/Charioteer") transforms scholarship discovery through a transparent multi-agent system where you can watch AI agents reason in real-time.

โœจ What Makes Us Unique

๐Ÿค– Live Agent Visibility

Watch 5 specialized AI agents collaborate on your search. No black box - full transparency.

๐Ÿ” Hybrid Search (88% Precision)

BM25 + Vector + RRF Fusion combines keyword precision with semantic understanding.

๐Ÿง  Memory-Based Personalization

Your interactions evolve results (+16% NDCG) with filter bubble prevention.

โœ… Zero Hallucinations

Deterministic eligibility checking - rule-based, not LLM. Legal criteria never guessed.


๐Ÿ—๏ธ System Architecture

graph TB
    subgraph Frontend["๐Ÿ–ฅ๏ธ Frontend (Next.js 14)"]
        UI[React UI] --> WS[WebSocket Client]
        UI --> Search[Search Interface]
    end

    subgraph Backend["โš™๏ธ Backend (FastAPI)"]
        API[REST API] --> Orchestrator[Agent Orchestrator]
        WSS[WebSocket Server] --> Orchestrator

        subgraph Agents["๐Ÿค– Multi-Agent System"]
            QA[Query Agent] --> RA[Retrieval Agent]
            RA --> MA[Memory Agent]
            MA --> EA[Eligibility Agent]
            EA --> ResA[Research Agent]
        end

        Orchestrator --> Agents
    end

    subgraph Storage["๐Ÿ’พ Qdrant Vector DB"]
        Scholarships[(200 Verified Scholarships)]
        Memory[(User Interactions)]
    end

    Frontend <--> Backend
    Backend <--> Storage
Loading

Agent Pipeline Flow

Agent Purpose Latency
๐Ÿ” Query Agent Parse and understand search intent 5ms
๐Ÿ“š Retrieval Agent Hybrid BM25 + Vector search with RRF fusion 25ms
๐Ÿง  Memory Agent Personalize based on user history 8ms
โœ… Eligibility Agent Deterministic 100-point scoring 15ms
๐ŸŒ Research Agent Fallback web search (18% of queries) 45ms

๐Ÿ“Š Performance Metrics

Metric Value Significance
P95 Latency 59ms Real-time UX
Precision@5 88% High relevance
Memory Impact +16% NDCG Proven personalization
Eligibility 100% Deterministic Zero hallucinations
Dataset 200 verified From .gov.in sources

๐Ÿ› ๏ธ Tech Stack

Layer Technology
Frontend Next.js 14, React 18, TypeScript, TailwindCSS, Framer Motion
Backend Python 3.10+, FastAPI, Pydantic, uvicorn
Vector DB Qdrant (hybrid search, dual collections)
Embeddings sentence-transformers (all-MiniLM-L6-v2)
Search BM25 + Vector + RRF Fusion
Real-time WebSocket (live agent streaming)

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.10+
  • Node.js 18+
  • Docker (for Qdrant)

1. Clone & Setup

git clone https://github.com/krishdef7/Saarthi-AI.git
cd Saarthi-AI

2. Start Qdrant

docker run -d -p 6333:6333 -v $(pwd)/qdrant_storage:/qdrant/storage qdrant/qdrant

3. Backend Setup

cd mas_scholar_app/backend

# Create virtual environment
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Copy environment file
cp ../../.env.example .env

# Start API server
uvicorn main:app --reload --port 8000

4. Frontend Setup

cd mas_scholar_app/frontend

# Install dependencies
npm install

# Set environment variable
export NEXT_PUBLIC_API_URL=http://localhost:8000

# Start development server
npm run dev

5. Open in Browser

Navigate to http://localhost:3000 and try:

  • "engineering scholarship for SC category"
  • "merit based postgraduate scholarship"
  • "PMSS-2026" (exact scheme ID)

๐Ÿ“ Project Structure

saarthi-ai/
โ”œโ”€โ”€ README.md                          # This file
โ”œโ”€โ”€ SUBMISSION.md                      # Hackathon submission
โ”œโ”€โ”€ Saarthi_AI_Final_Submission.pdf    # Technical report
โ”œโ”€โ”€ docs/
โ”‚   โ”œโ”€โ”€ ARCHITECTURE.md                # System design
โ”‚   โ””โ”€โ”€ METRICS.md                     # Performance benchmarks
โ”‚
โ”œโ”€โ”€ mas_scholar_app/
โ”‚   โ”œโ”€โ”€ backend/                       # FastAPI server
โ”‚   โ”‚   โ”œโ”€โ”€ main.py                    # API entry point
โ”‚   โ”‚   โ”œโ”€โ”€ requirements.txt           # Python dependencies
โ”‚   โ”‚   โ”œโ”€โ”€ data/                      # 200 verified scholarships
โ”‚   โ”‚   โ”œโ”€โ”€ models/                    # Pydantic schemas
โ”‚   โ”‚   โ”œโ”€โ”€ routers/                   # API endpoints
โ”‚   โ”‚   โ””โ”€โ”€ services/                  # Core business logic
โ”‚   โ”‚       โ”œโ”€โ”€ hybrid_search.py       # BM25 + Vector + RRF
โ”‚   โ”‚       โ”œโ”€โ”€ eligibility.py         # Deterministic scoring
โ”‚   โ”‚       โ”œโ”€โ”€ user_memory.py         # Vector memory
โ”‚   โ”‚       โ””โ”€โ”€ websocket.py           # Live streaming
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€ frontend/                      # Next.js 14 app
โ”‚       โ”œโ”€โ”€ src/
โ”‚       โ”‚   โ”œโ”€โ”€ app/                   # App router pages
โ”‚       โ”‚   โ”œโ”€โ”€ components/            # React components
โ”‚       โ”‚   โ””โ”€โ”€ hooks/                 # Custom hooks
โ”‚       โ””โ”€โ”€ package.json
โ”‚
โ”œโ”€โ”€ render.yaml                        # Backend deployment
โ”œโ”€โ”€ docker-compose.yml                 # Local development
โ””โ”€โ”€ .env.example                       # Environment template

๐ŸŽจ Key Features

๐Ÿค– Live Agent Pipeline

Watch agents collaborate in real-time via WebSocket. See exactly what each agent does.

๐Ÿ” Semantic Search

Natural language queries work. Hindi support. Handles both "scholarship for poor" and "AICTE-2026".

๐Ÿ“Š Eligibility Radar

Visual breakdown of how you match each scholarship across 5 dimensions.

๐Ÿ›ก๏ธ Trust Scoring

23 pattern-based scam detection. Government sources preferred.

๐Ÿ’พ Persistent Memory

Your interactions improve future results (with decay and diversity safeguards).


๐Ÿ† Hackathon Alignment

Criterion Our Implementation
Originality First scholarship system with live agent visibility
Problem Understanding Deep research into India's scholarship gap
Innovation Hybrid search + vector memory + deterministic eligibility
Technical Implementation Production-ready, <60ms latency
GitHub Quality Clean structure, meaningful commits
Documentation Comprehensive docs, diagrams, metrics
Design & UX Modern UI, mobile-responsive, accessible

๐Ÿ“œ License

MIT License - See LICENSE file


๐Ÿ™ Acknowledgments

  • Qdrant for the excellent vector database
  • National Scholarship Portal for public data
  • Open Source Community for FastAPI, React, sentence-transformers

Built with โค๏ธ for India's students

เคธเคพเคฐเคฅเฅ€ AI - เค†เคชเค•เคพ เคถเคฟเค•เฅเคทเคพ เคฎเคพเคฐเฅเค—เคฆเคฐเฅเคถเค•


โฌ† Back to Top

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors