Building Generative AI Services with FastAPI Book
Written by Ali Parandeh.
![dawn](/_next/image?url=https%3A%2F%2Fadspwebsitestatic.blob.core.windows.net%2Fstatic%2Fmedia%2Fdawn.webp&w=3840&q=75)
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](/_next/image?url=https%3A%2F%2Fadspwebsitestatic.blob.core.windows.net%2Fstatic%2Fmedia%2FAli%20Book%201.webp&w=3840&q=75)
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](/_next/image?url=https%3A%2F%2Fadspwebsitestatic.blob.core.windows.net%2Fstatic%2Fmedia%2Fali-headshot.webp&w=256&q=75)
Ali Parandeh
Head of Engineering, ADSP
![London](/_next/image?url=https%3A%2F%2Fadspwebsitestatic.blob.core.windows.net%2Fstatic%2Fmedia%2FLondon.webp&w=3840&q=75)
![Chat Icon](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fchat.00413c04.webp&w=640&q=75)
Get your copy today!
Learn how to build your very own creative generative models with this practical guide.