How brickstercodes/e3.ai works
E3.ai is an educational, character-based history chatbot. A learner sends messages through the browser chat, which exchanges them with a FastAPI WebSocket endpoint; the backend streams responses generated by a Together-hosted Llama model while maintaining conversation history. The prompt covers character enactment, historical-topic narration, and fun facts. When a learner stops or requests a quiz, the backend sends quiz questions and a score. The repository also contains home, login, and signup pages, but their behavior and connections are not shown in the sampled source.
Main entry points: backend.py Conversation handling · chat.js Chat interface
Components 11
Web experience
- Home page
index.html - Login page
login.html - Signup page
signup.html - Chat interface
chat.js - Chat page
chat.html
Chat and learning
- Chat WebSocket
backend.py - Conversation handling
backend.py - Learning prompt
backend.py - Quiz generation
backend.py
Language model
- Together LLM
Other components
- Learner
Connections 6
- Learner → Chat interface: sends messages
chat.js - Chat interface → Chat WebSocket: sends messages
chat.js - Chat WebSocket → Conversation handling: handles messages
backend.py - Conversation handling → Learning prompt: formats prompt
backend.py - Conversation handling → Together LLM: streams responses
backend.py - Conversation handling → Quiz generation: generates quiz
backend.py