© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
A. KansalBuilding Generative AI-Powered Appshttps://doi.org/10.1007/979-8-8688-0205-8_4

4. Guardrails and AI: Building Safe + Controllable Apps

Aarushi Kansal1  
(1)
Melbourne, Australia
 

In Chapter 3, you combined all your learnings on RAG, memory, and embeddings with tools and chains to create an end-to-end agent that could plan out your day for you. This agent was able to reason and have access to “the world” via API integrations (the so-called tools). This was a fairly simple application, but it was still autonomous and when AI is autonomous, there’s always space for things to go wrong if proper safeguards are not in place.

This chapter delves into the ...

Get Building Generative AI-Powered Apps: A Hands-on Guide for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.