Prerequisites
- Python 3.11+
- PostgreSQL 15+ with the
pgvectorextension (optional — defaults to in-memory) - An OpenAI or Anthropic API key
1. Install Dependencies
2. Configure Environment
Create a.env file at the project root:
3. Run Migrations
4. Start the Server
http://localhost:8000. Visit /docs for the interactive Swagger UI.
5. Send Your First Message
-N flag enables streaming so you see Server-Sent Events as they arrive.
Using Docker
For a full stack with PostgreSQL, Redis, and Datadog:Using the Python SDK
Next Steps
- Learn about Agents and how to create your own
- Explore the Tool system with decorators
- Set up Knowledge Bases for domain-specific retrieval