How 26shivansh-26/gyaan-setu-github works
Gyaan Setu is a browser-based Class 9 tutoring chat backed by an Express REST API and local Ollama inference. Students send questions through the chat UI; the backend combines fixed tutor guidance with frontend instructions and conversation messages, requests a response from the configured model, then returns a plain-text-friendly reply. The README documents session history, responsive UI, and Hindi/Hinglish support, but the frontend implementation was not sampled, so its internal wiring is not detailed here.
Main entry points: server.js Chat API · index.html Chat interface
Components 7
Student interface
- Chat interface
index.html
Chat backend
- Chat API
server.js - Tutor guidance
server.js - Reply handling
server.js
Local inference
- Ollama service
- Gyaan Setu model
Other components
- Student
Connections 9
- Student → Chat interface: asks question
- Chat interface → Chat API: POST /api/chat
- Chat API → Tutor guidance: combines instructions
- Chat API → Ollama service: sends chat request
- Ollama service → Gyaan Setu model: runs inference
- Ollama service → Chat API: returns response
- Chat API → Reply handling: formats reply
- Reply handling → Chat interface: returns reply
- Chat interface → Student: shows response