How callmevanshh/campusask works
CampusAsk is an unofficial IIIT Delhi academic-rules Q&A assistant. A student asks through the web interface; the API passes the question and conversation history to the answer pipeline, which resolves follow-ups and branch context, retrieves regulation passages, and produces a cited answer or a refusal. For personal grade-planning questions, the pipeline can request a verified calculation before generating the response. Retrieval and generation details are shown where source excerpts support them; other corpus and interface wiring is limited to what the README and excerpts establish.
Main entry points: pipeline.py Answer pipeline · main.py Ask API · index.html Web interface · llm.py LLM client
Components 13
User interface
- Web interface
app/static/index.html - Ask API
app/main.py
Answer orchestration
- Answer pipeline
app/pipeline.py - Question resolver
app/pipeline.py - Relevance gate
app/pipeline.py - Citation formatter
app/pipeline.py
Regulation retrieval
- Hybrid retrieval
app/retrieval.py - Indexed passages
data/processed/chunks_kept.jsonl - Regulation corpus
data/tables
Answer intelligence
- Grade planner
app/planner.py - LLM client
app/llm.py
Other components
- Student
- Gemini service
Connections 13
- Student → Web interface: asks
- Web interface → Ask API: submits
app/main.py - Ask API → Answer pipeline: calls answer
app/main.py - Answer pipeline → Question resolver: resolves
app/pipeline.py - Answer pipeline → Hybrid retrieval: retrieves passages
app/pipeline.py - Hybrid retrieval → Indexed passages: loads and ranks
app/retrieval.py - Answer pipeline → Relevance gate: checks relevance
app/pipeline.py - Answer pipeline → Grade planner: verifies plans
app/pipeline.py - Grade planner → LLM client: extracts inputs
app/planner.py - Answer pipeline → LLM client: generates answer
app/pipeline.py - LLM client → Gemini service: sends prompt
app/llm.py - Answer pipeline → Citation formatter: formats citations
app/pipeline.py - Ask API → Web interface: returns response
app/main.py