Plan: Transitioning to Forward Deployed Engineer / AI Engineer
一份分階段路線圖,供後端工程師轉向 FDE 與 AI Engineer 角色——解讀頭銜混亂、應用型 LLM 技術棧與面試循環。
AI 翻譯
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗A source-aware Jewish guidance companion for exploring thought, practice, law, ethics, and spirituality across levels of knowledge and observance.
rebbe.dev is a conversational companion for questions of Jewish thought, practice, law, ethics, and spirituality. Each answer holds four commitments: pastoral context (how to respond), the halachic landscape (the range of views), moral seriousness (dignity, no harm), and an honest rabbinic voice. Since pipeline v2, these live in one carefully written constitution answered by a single cached, streamed Claude Sonnet 5.5 call (served through Vercel AI Gateway), wrapped in layered guardrails:
See docs/REWRITE_PLAN.md, docs/SAFETY.md, and docs/BUSINESS_PLAN.md. The original four-agent pipeline is kept as a fallback (PIPELINE_VERSION=v1, or GATEWAY=openrouter).
Important: This is guidance, not binding psak (legal ruling). A rabbi who knows you personally may counsel differently.
/privacy and Terms of Service at /terms (ages 13+)Clone the repository
git clone https://github.com/cheesejaguar/rabbi.git
cd rabbi
Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh
Install dependencies
uv sync
Configure environment variables
cp .env.example .env
Edit .env and add your API keys:
GATEWAY=vercel
AI_GATEWAY_API_KEY=your-ai-gateway-key
# Optional: WorkOS for authentication
WORKOS_API_KEY=your-workos-api-key
WORKOS_CLIENT_ID=your-workos-client-id
Run the application
./run.sh
Or manually:
uv run uvicorn backend.app.main:app --host 0.0.0.0 --port 8000 --reload
Open in browser
Navigate to http://localhost:8000
# Build and run
docker compose up -d
# View logs
docker compose logs -f
# Stop
docker compose down
# Build
docker build -t rebbe .
# Run
docker run -p 8000:8000 --env-file .env rebbe
# Run all tests
uv run pytest
# Run with coverage
uv run pytest --cov=backend/app --cov-report=term-missing
# Run specific test file
uv run pytest backend/tests/test_agents.py -v
rabbi/
├── backend/
│ ├── app/
│ │ ├── agents/ # Multi-agent system
│ │ │ ├── base.py # Base agent class and data models
│ │ │ ├── pastoral.py # Pastoral context analysis
│ │ │ ├── halachic.py # Halachic reasoning
│ │ │ ├── moral.py # Ethical assessment
│ │ │ ├── voice.py # Response generation
│ │ │ └── orchestrator.py
│ │ ├── auth.py # WorkOS SSO authentication
│ │ ├── config.py # Settings and configuration
│ │ ├── database.py # PostgreSQL database operations
│ │ ├── payments.py # Stripe payment processing
│ │ ├── main.py # FastAPI application
│ │ └── models.py # Pydantic models
│ └── tests/ # Test suite
├── frontend/
│ ├── landing.html # Public Source Loom landing page
│ ├── index.html # Signed-in conversation workspace
│ ├── admin.html # Role-protected operations workspace
│ ├── brand.css # Shared Braided Light design tokens
│ ├── theme.js # System/light/dark preference behavior
│ ├── app.js # Conversation application behavior
│ └── assets/ # Local fonts, icons, identity, and imagery
├── pyproject.toml # Project dependencies
├── uv.lock # Locked dependencies
└── Dockerfile
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/health | Health check |
| GET | /api/greeting | Get welcome message |
| POST | /api/chat | Send message (non-streaming) |
| POST | /api/chat/stream | Send message (streaming SSE) |
| GET | /auth/login | Initiate SSO login |
| GET | /auth/logout | Log out |
| GET | /auth/check | Check authentication status |
| GET | /api/payments/packages | Get available credit packages |
| POST | /api/payments/create-intent | Create Stripe PaymentIntent |
| POST | /api/payments/webhook | Stripe webhook handler |
| Variable | Required | Description |
|---|---|---|
OPENROUTER_API_KEY | Yes | OpenRouter API key for LLM access |
OPENROUTER_BASE_URL | No | OpenRouter API base URL (default: https://openrouter.ai/api/v1) |
LLM_MODEL | No | Model to use (default: anthropic/claude-sonnet-5) |
WORKOS_API_KEY | No | WorkOS API key for SSO |
WORKOS_CLIENT_ID | No | WorkOS client ID |
WORKOS_REDIRECT_URI | No | OAuth callback URL |
SESSION_SECRET_KEY | No | Secret for session tokens |
STRIPE_SECRET_KEY | No | Stripe secret key for payments |
STRIPE_PUBLISHABLE_KEY | No | Stripe publishable key for frontend |
STRIPE_WEBHOOK_SECRET | No | Stripe webhook signing secret |
DATABASE_URL | No | PostgreSQL connection URL |
The system uses a pipeline architecture where each agent processes the user's message in sequence:
User Message
│
▼
┌─────────────────────┐
│ Pastoral Context │ Determines HOW to respond
│ Agent │ (tone, authority level)
└─────────────────────┘
│
▼
┌─────────────────────┐
│ Halachic Reasoning │ Provides legal landscape
│ Agent │ (majority/minority views)
└─────────────────────┘
│
▼
┌─────────────────────┐
│ Moral-Ethical │ Ensures dignity preserved
│ Agent │ (may trigger reconsideration)
└─────────────────────┘
│
▼
┌─────────────────────┐
│ Meta-Rabbinic │ Crafts final response
│ Voice Agent │ (warm, humble tone)
└─────────────────────┘
│
▼
Final Response
This project operates on several key principles:
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.