ADSP Logo

Building Generative AI Services with FastAPI Book

Written by Ali Parandeh.

dawn

Introduction to Generative AI Services with FastAPI

This practical book outlines the process necessary to design and build production-grade AI services with a FastAPI web server that communicates seamlessly with databases, payment systems, and external APIs.

You’ll learn how to develop autonomous generative AI agents that stream outputs in real-time and interact with other models. Web developers, data scientists, and DevOps engineers will learn to implement end-to-end production-ready services that leverage generative AI.

Key Concepts and Tools

You will learn design patterns to manage software complexity and implement FastAPI lifespan for AI model integration. The book covers handling long-running generative tasks, performing content filtering, and caching outputs.

You'll also learn to implement retrieval augmented generation (RAG) with a vector database, usage/cost monitoring, and tracking. Additionally, it includes protecting services with authentication and authorisation mechanisms, and effectively controlling stream outputs directly from GenAI models.

Ali Book

About the Author

Education and professional experience

Ali Parandeh is a Chartered Rail Systems and Software Engineer with extensive consulting and development experience. He has led engineering teams at large multinational consultancies and tech startups. Ali specializes in developing AI services and has worked with clients such as Network Rail, High Speed 2, and Transport for London. He founded London's Beginners Machine Learning (BML) group to help people start careers in Data Science & AI.

Ali Parandeh Headshot

Ali Parandeh

Head of Engineering, ADSP

London
Chat Icon

Get your copy today!

Learn how to build your very own creative generative models with this practical guide.

START READING FOR FREE