Status: [UNTESTED] Endpoints found: http://localhost:8000/api/chat http://localhost:8200/v1/models http://localhost:8000/api/status http://localhost:8000/api/tutor http://localhost:8000/api/code Source: https://github.com/xau9897-droid/guruai # GuruAI — Self-hosted AI Teacher + Coding Assistant (100% Free) GuruAI ek poora AI education system hai jo aapke **apne server pe** chalta hai — koi API key nahi, koi fees nahi, **unlimited requests**. Oracle Cloud Free Tier (Ampere A1 ARM, 24 GB RAM) pe ye comfortably chalta hai. ## Kya-kya karta hai | Mode | Endpoint | Kaam | |---|---|---| | 🌐 **Chat UI** | `/ui` | Browser mein full chat interface (mobile-friendly) | | General chat | `POST /api/chat` | Baatein, help, ideas (Hindi + English) | | Teacher | `POST /api/chat` `mode=teacher` | Professor-level explanation, Class 1-12 | | Tutor | `POST /api/tutor` | Adaptive one-on-one study session (Socratic) | | Coding expert | `POST /api/code` | Code generate/explain/debug/convert/tests | | Book Q&A (RAG) | `POST /api/book/ask` | Aapki books se answer, with page source | | Book upload | `POST /api/book/ingest` | PDF/DOCX/TXT/MD add karo | | Summarize | `POST /api/chat` `mode=summarize` | Lamba text compress karo | | Translate | `POST /api/chat` `mode=translate` | Hindi <-> English translation | > **Poore Oracle Free Tier setup ke liye:** `docs/ORACLE_SETUP.md` kholo — > account creation se lekar deploy tak, step-by-step Hinglish mein. ## Features - **Class 1-12 curriculum-aware** — tutor har class ke syllabus ke hisaab se difficulty adjust karta hai, aur NCERT se aage professor-level depth deta hai. - **RAG book knowledge** — NCERT textbooks (free from ncert.nic.in) ya koi bhi book upload karo; model sirf aapki books se answer karega, page number ke sath. - **Bilingual** — Hindi + English dono, natural Hinglish. - **Coding expert** — dedicated `qwen2.5-coder:7b` model (optional) ya main model. - **Secured** — API key se protected; `.env` mein set hoti hai. - **Self-hosted** — data aapka, model aapka, koi third-party nahi. ## Architecture ``` [Student/App] --> FastAPI :8000 --> Ollama :11434 --> Qwen2.5-7B | |