MCPcopy Index your code
hub / github.com/Ali-Parandeh/building-generative-ai-services

github.com/Ali-Parandeh/building-generative-ai-services @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
407 symbols 1,663 edges 143 files 0 documented · 0%

Browse by type

Functions 252 Types & classes 75 Endpoints 80
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

🦆 Building Generative AI Services with FastAPI

The official code repository for Building Generative AI Services with FastAPI published worldwide in May 2025.

You can order the book by clicking on the image below.

Amazon US: Link

Amazon UK: Link

Read All Chapters on O'Reilly: Link

Building Generative AI Services with FastAPI (O'Reilly)

💻 Installation

Make sure you are using Python 3.11 when installing dependencies from requirements.txt as at the time of writing, all dependencies support Python 3.11. If you use later versions of Python, you may face issues with installing the required depencenies if you would like to follow along with the book.

I've tested the dependency installation on both Mac and PC (Windows 11).

If any of the package installations failed due to dependency conflicts, remove the explicit package versions from requriements.txt file to let your package manager resolve dependency versions.

🚀 Getting Started

At the start of each chapter, checkout the relevant start branch to follow along with the code examples as you develop the application. For instance, at the start of chapter 2 checkout the ch02-starter branch.

If you get stuck or want to view the repository state at the end of each chapter, you can checkout the corresponding chxx-end branch.

Branches have not been implemented yet and will be available near the publication time.

Core symbols most depended-on inside this repo

Shape

Function 185
Route 80
Class 75
Method 67

Languages

Python100%
TypeScript1%

Modules by API surface

app/main.py20 symbols
app/schemas.py12 symbols
examples/ch07/7-9.py11 symbols
examples/ch07/7-6.py11 symbols
app/models.py10 symbols
examples/ch08/8-11.py8 symbols
examples/ch08/8-8.py7 symbols
examples/ch08/8-10.py7 symbols
examples/ch07/7-8.py7 symbols
examples/ch09/9-7.py6 symbols
examples/ch09/9-2.py6 symbols
examples/ch08/8-4.py6 symbols

Datastores touched

cmsDatabase · 1 repos

For agents

$ claude mcp add building-generative-ai-services \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page