Building Generative AI Services with Fastapi

A Practical Approach to Developing Context Rich Generative AI Applications

(Author) Ali Parandeh
Format: Paperback
£55.99 Price: £53.19 (5% off)
In Stock
(Limited availability – contact us to confirm)
Generally dispatched in 1 to 2 days

Ready to build applications using generative AI? This practical book outlines the process necessary to design and build production grade AI services with a FastAPI web server that communicate 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. You'll learn design patterns to manage software complexity, implement FastAPI lifespan for AI model integration, handle long-running generative tasks, perform content filtering, cache outputs, implement retrieval augmented generation (RAG) with a vector database, implement usage/cost monitoring and tracking, protect services with your own authentication and authorization mechanisms, and effectively control stream outputs directly from GenAI models. You'll explore efficient testing methods for AI outputs, validation against databases, and deployment patterns using Docker for robust microservices in the cloud. Build generative services that interact with databases, external APIs, and more Learn how to load AI models into a FastAPI lifecycle memory Monitor and log model requests and responses within services Use authentication and authorization patterns hooked with generative models Handle and cache long-running inference tasks Stream model outputs via streaming events and WebSockets into browsers or files Automate the retraining process of generative models by exposing event-driven endpoints Ali Parandeh is a Chartered Engineer with the UK Engineering Council and a Microsoft and Google certified developer, data engineer, and data scientist.

Information
Publisher:
O'Reilly Media
Format:
Paperback
Number of pages:
None
Language:
en
ISBN:
9781098160302
Publish year:
2025
Publish date:
April 29, 2025

Ali Parandeh

Reviews

Leave a review

Please login to leave a review.

Be the first to review this product

Other related

Love Machines

Love Machines

How Artificial Intelligence is Transforming Our Relationships

James Muldoon
Paperback
Published: 2026
Nexus

Nexus

A Brief History of Information Networks from the Stone Age to AI

Yuval Noah Harari
Paperback
Published: 2025
The Immortalists

The Immortalists

The Death of Death and the Race for Eternal Life

Aleks Krotoski, Krotoski Aleks
Hardcover
Published: 2025
If Anyone Builds It, Everyone Dies

If Anyone Builds It, Everyone Dies

The Case Against Superintelligent AI

Eliezer Yudkowsky
Hardcover
Published: 2025
Automate the Boring Stuff with Python, 3rd Edition

Automate the Boring Stuff with Python, 3rd Edition

Al Sweigart
Paperback
Published: 2025
Warhammer Video Game Art

Warhammer Video Game Art

Andy Hall, DK
Hardcover
Published: 2025