Fr. 95.00

Building Generative AI Services with Fastapi - A Practical Approach to Developing Context Rich Generative AI Applications

English · Paperback / Softback

Will be released 27.05.2025

Description

Read more










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.

About the author










Alireza Parandeh is a chartered engineer (CEng) with the UK engineering council, a Microsoft and Google Certified Developer, Data Engineer and Data Scientist. He has a strong background in web development, data science and machine learning having led engineering teams at large multinational consultancies and tech startups in London. Ali's portfolio of clients include Network Rail, High-Speed Train 2, Transport for London, International Fertilizer's Association and the Department for Transport. As a passionate educator, Ali dedicates his free time to teaching data science and web development through meetups and online platforms. In 2019, he founded London's Beginners Machine Learning (BML) group, a Microsoft-sponsored meetup aimed at helping professionals break into the field of Data Science & AI and obtain cloud certifications which has since grown to over 1,500 members.

Customer reviews

No reviews have been written for this item yet. Write the first review and be helpful to other users when they decide on a purchase.

Write a review

Thumbs up or thumbs down? Write your own review.

For messages to CeDe.ch please use the contact form.

The input fields marked * are obligatory

By submitting this form you agree to our data privacy statement.