r/elearning • • 6d ago

OpenProfessor: I built a free, open-source Socratic tutor. Works best with a good API model (Claude, GPT, Gemini), also runs on Ollama

https://github.com/josetrejor-cmyk/openprofessor

I built a free, open-source Socratic tutor. Works best with a good API model (Claude, GPT, Gemini), also runs on Ollama

OpenProfessor is a Socratic tutor that ships as a static folder: serve it with nginx, Caddy or python -m http.server and you're done. There's no database, no accounts and no backend. Progress lives in the browser, with JSON backup and import.

Models: it works best with an API model (Claude, GPT, Gemini, OpenRouter). It also talks to Ollama directly and sets the context size and JSON mode itself. Be realistic with local models: a 4B model on a laptop CPU took about 8 minutes per lesson and got an answer wrong, so aim for 14B+ on a GPU.

Notes: the page loads its fonts from Google Fonts. If you serve it from a different address than Ollama's machine, start Ollama with OLLAMA_ORIGINS set to that address.

Repo (AGPL-3.0): https://github.com/josetrejor-cmyk/openprofessor
Demo: https://openprofessor.org

5 Upvotes

3 comments sorted by

1

u/Slight_Cod_3245 5d ago

Thank you all for your upvotes. Just one comment. I've noticed it works best with Claude models with Claude key. Although it might also work well with regular openai or Gemini. Please star it on GitHub and share. I would love to keep it free, online, and available for everyone.

1

u/the_darkest_horse 2d ago

Nice that it's just a static folder. How are you checking that it stays Socratic? In my experience models hold the line for two turns and then hand over the answer as soon as the student says "I don't get it" twice.

A simple rubric I'd run on transcripts: did it reveal the answer before the student got there, was each question one the student could actually answer, and did it notice the specific misconception or just repeat the hint.

Disclosure, I work on education data for training tutors (Creeks ai), so this is the stuff I look at all day.

1

u/Slight_Cod_3245 2d ago

Good call, that was a real gap. I just shipped a fix. The tutor now gets the hints it already gave, so it has to change angle instead of repeating itself. Replies like "I don't get it" are caught in code and get a smaller question or a tiny new example, and they don't burn attempts. There's also a code check that blocks any hint containing the answer's figures, the correct option, or a chunk of the expected answer. Next step is running your rubric on real transcripts across a few models, and I'll post what I find.