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.