FastAPI RAG: Enterprise AI Backend Generator
FastAPI RAG is a sophisticated CLI tool designed to scaffold production-grade AI backends. Instead of assembly-required boilerplates, it generates a complete, modular ecosystem for RAG (Retrieval-Augmented Generation) applications, specialized AI agents, and high-performance SaaS platforms.
🌟 Why FastAPI RAG?
In the era of AI, the backend is more than just an API—it's an orchestrator. This tool generates a foundation that handles the complex "plumbing" of AI systems so you can focus on your domain logic.
- Intelligent Orchestration: Advanced LLM-based routing and agent selection logic.
- Stateful AI Interactions: Built-in persistence for multi-turn chat and conversation history.
- Production-Ready RAG: Async document ingestion, status tracking, and background processing.
- Infrastructure Agnostic: Pre-configured with swappable providers for LLMs, Vector DBs, and Caches.
🚀 Quick Start
Generate your enterprise-grade backend in seconds:
1. Installation
pip install fastapi-rag
2. Generate Project
fastapi-rag new my-ai-platform
The CLI will guide you through selecting your preferred stack (OpenAI vs. Ollama, Qdrant vs. PgVector, etc.).
3. Launch Development Stack
cd my-ai-platform
docker compose up --build
Your backend is now live at http://localhost:8000 with full RAG and Agent capabilities.
📦 What's Included in the Box?
The generated project is a fully-functional ecosystem:
- Security: JWT-based authentication with secure password hashing.
- AI Pipelines:
- Async Ingestion: PDF/Text upload with background parsing and vector indexing.
- Agentic Framework: Modular registry for specialized AI agents (SQL, RAG, Web Search).
- Persistence: Async SQLAlchemy 2.0 with the Repository pattern.
- Observability: Integrated Prometheus metrics and JSON logging.
- Infrastructure: Celery + Redis for background workflows and Qdrant for vector search.
🗺️ Roadmap & Supported Providers
| Category | Supported / Modeled Providers |
|---|---|
| LLMs | OpenAI, Ollama, Anthropic (Planned), Echo (Local Testing) |
| Vector DBs | Qdrant, Chroma, PgVector, Pinecone |
| Databases | PostgreSQL, MySQL |
| Caching | Redis, Dragonfly |
| Queues | Celery |
🛠️ Repository Development
Local Setup
git clone https://github.com/example/fastapi-rag.git
cd fastapi-rag
pip install -e .[dev]
Testing
pytest
Build Distribution
python -m build
📚 Documentation
- Architecture Overview - Deep dive into the generator and scaffold design.
- User Guide - How to use the CLI and customize templates.
- First Feature Tutorial - Step-by-step guide to adding your first business rule.
- Publishing Guide - How to build and distribute the package.
- Contributing - Our standards for pull requests and code style.
📄 License
This project is released under the MIT License.
Metadata
Release files for fastapi-rag 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastapi_rag-0.1.1.tar.gz | 121.8 kB | Without provenance | Details for fastapi_rag-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastapi_rag-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for fastapi_rag-0.1.1-py3-none-any.whl |
Total release size: 310.3 kB
Release files / fastapi_rag-0.1.1.tar.gz
| Download URL | fastapi_rag-0.1.1.tar.gz |
|---|---|
| Size | 121.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c0518fae301a34b69714346175bee904fcf38def79d048c28389d6078440b35
|
|
BLAKE2b-256 checksum How to use checksums |
8625ee154fc1fe5ddd7a002a6980f8f14cb78772f95ca13eb62ecf61edd53727
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / fastapi_rag-0.1.1-py3-none-any.whl
| Download URL | fastapi_rag-0.1.1-py3-none-any.whl |
|---|---|
| Size | 188.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e91b668342104c1f0f00334ff8584cc6e5aa7284e98b43b598f583ad9d43b114
|
|
BLAKE2b-256 checksum How to use checksums |
838a298599f48536fb6135d2268291e27999436023a4f0d228821e7f01e06195
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for fastapi-rag 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.