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

Building Generative AI Services with FastAPI: A Practical Approach to Developing Context-Rich Generative AI Applications book cover

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

Author(s): Alireza Parandeh (Author)

  • Publisher: O'Reilly Media
  • Publication Date: May 20 2025
  • Edition: 1st
  • Language: English
  • Print length: 528 pages
  • ISBN-10: 1098160304
  • ISBN-13: 9781098160302

Book Description

Ready to build production-grade applications with generative AI? This practical guide takes you through designing and deploying AI services using the FastAPI web framework. Learn how to integrate models that process text, images, audio, and video while seamlessly interacting with databases, filesystems, websites, and APIs. Whether you're a web developer, data scientist, or DevOps engineer, this book equips you with the tools to build scalable, real-time AI applications.

Author Alireza Parandeh provides clear explanations and hands-on examples covering authentication, concurrency, caching, and retrieval-augmented generation (RAG) with vector databases. You'll also explore best practices for testing AI outputs, optimizing performance, and securing microservices. With containerized deployment using Docker, you'll be ready to launch AI-powered applications confidently in the cloud.

  • Build generative AI services that interact with databases, filesystems, websites, and APIs

  • Manage concurrency in AI workloads and handle long-running tasks

  • Stream AI-generated outputs in real time via WebSocket and server-sent events

  • Secure services with authentication, content filtering, throttling, and rate limiting

  • Optimize AI performance with caching, batch processing, and fine-tuning techniques

Visit the Book's Website.

Editorial Reviews

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.

View on Amazon

未经允许不得转载:电子书百科大全 » Building Generative AI Services with FastAPI: A Practical Approach to Developing Context-Rich Generative AI Applications

评论 抢沙发

评论前必须登录!

立即登录   注册