fastapi-genai-boilerplate
A clean and modular FastAPI boilerplate designed to kickstart your GenAI project.
File Explorer
Download Latest Version (.zip)- settings.json
- __init__.py
- models.py
- routers.py
- service.py
- __init__.py
- controller.py
- helper.py
- models.py
- service.py
- __init__.py
- controller.py
- models.py
- service.py
- __init__.py
- __init__.py
- __init__.py
- constants.py
- messages.py
- __init__.py
- cache.py
- __init__.py
- base.py
- handle_exception.py
- __init__.py
- filter_logs.py
- logger.py
- __init__.py
- rate_limiter.py
- request.py
- __init__.py
- json_response.py
- stream_response.py
- __init__.py
- config.py
- enums.py
- lifespan.py
- server.py
- __init__.py
- summary_task.py
- __init__.py
- celery_main.py
- __init__.py
- answer_generator.py
- conditional_edges.py
- question_enhancer.py
- question_rewriter.py
- websearch_executor.py
- __init__.py
- rag.md
- system.md
- __init__.py
- duckduckgo_search_tool.py
- tavily_search_tool.py
- __init__.py
- graph.py
- local_model_client.py
- model_map.py
- states.py
- __init__.py
- __init__.py
- __init__.py
- __init__.py
- __init__.py
- prometheus.yml
- __init__.py
- promtail-config.yml
- __init__.py
- docker-compose-langfuse.yaml
- docker-compose.yml
- __init__.py
- cache.md
- docker-compose.md
- envs.md
- example.env
- langfuse.md
- local_model_setup.md
- logging.md
- makefile.md
- rate_limit.md
- redoc.standalone.js
- swagger-ui-bundle.js
- swagger-ui.css
- __init__.py
- test_chat.py
- test_user.py
- .dockerignore
- .env.sample
- .gitignore
- .pre-commit-config.yaml
- .pylintrc
- .python-version
- celery.Dockerfile
- Dockerfile
- LICENSE
- main.py
- Makefile
- mypy.ini
- pyproject.toml
- README.md
- uv.lock
# Installation Guide
git clone https://github.com/kevaldekivadiya2415/fastapi-genai-boilerplate
Downloads the entire project code from GitHub to your computer.
cd fastapi-genai-boilerplate
Moves into the project folder you just downloaded.
2. Official Install Script
Easy Recommended- Python 3 Python is required to use pip.
pip3 install uv
Installs the package published on PyPI directly โ no need to clone the source.
Pulled directly from this repo's README.
3. Docker
Easy- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
โโโ Dockerfile # Docker setup
Type this command into your terminal and run it.
make docker-build
Compiles the code based on the generated build configuration to produce an executable.
make docker-run
Compiles the code based on the generated build configuration to produce an executable.
A `docker-compose.yml` file is included to run the full observability stack:
Runs the command against the services defined in the compose file.
docker/
Type this command into your terminal and run it.
Pulled directly from this repo's README.
4. Python
Easypip3 install uv
Installs the package published on PyPI directly โ no need to clone the source.
Pulled directly from this repo's README.
5. Make
Medium- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make pre-commit-install
Compiles the code based on the generated build configuration to produce an executable.
make lint
Compiles the code based on the generated build configuration to produce an executable.
make typecheck
Compiles the code based on the generated build configuration to produce an executable.
make format
Compiles the code based on the generated build configuration to produce an executable.
make docker-build
Compiles the code based on the generated build configuration to produce an executable.
Pulled directly from this repo's README.
