Your AI study partner for Torah. Real sources. Every answer.
MVP Features
| # | Feature | Description |
|---|---|---|
| 1 | Chat with sources | Ask a question, get an answer with clickable Sefaria links |
| 2 | Conversation history | Sidebar with past chats, resume any conversation |
| 3 | Multi-language | French interface, Hebrew quotes, answer in user's language |
| 7 | Parashah of the week | Auto-suggest weekly Torah portion with key insights |
Architecture
The system has 4 layers:
- React frontend - Chat interface with shadcn/ui components and streaming responses
- FastAPI backend - REST API with JWT auth (MFA email), SQLite database, SSE streaming
- LangChain RAG engine - Retrieval (Weaviate) then Rerank (Cohere) then Generation (Claude)
- Weaviate vector DB - 3.5M Sefaria texts indexed with hybrid search (vector + BM25)
4 Blocks
| Block | What it builds | Status |
|---|---|---|
| 1. Chat with Claude | Working chatbot with React frontend and prompt engineering | To do |
| 2. Make it a real app | FastAPI backend, auth, persistence, Docker, deploy on Elestio | To do |
| 3. Add Sefaria knowledge | RAG pipeline on 3.5M texts with Gemini embeddings and hybrid search | To do |
| 4. Make it reliable | LangFuse observability, Ragas evaluation | To do |
Key Constraint
Never invent a Torah source. If the RAG doesn't find a relevant text, the system says "I didn't find a source" instead of making one up. On sacred texts, hallucination is not just an error - it's an offense.