<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Pradyumna Roy </title>
    <description>The latest articles on DEV Community by Pradyumna Roy  (@pradyyy).</description>
    <link>https://dev.to/pradyyy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4101228%2F20eba19f-bea6-466f-83f6-8f1165b94860.png</url>
      <title>DEV Community: Pradyumna Roy </title>
      <link>https://dev.to/pradyyy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pradyyy"/>
    <language>en</language>
    <item>
      <title>Building an Allergen-Aware AI Barista using Google Cloud ADK, Gemini, and Cloud Firestore</title>
      <dc:creator>Pradyumna Roy </dc:creator>
      <pubDate>Sun, 30 Aug 2026 10:05:04 +0000</pubDate>
      <link>https://dev.to/pradyyy/building-an-allergen-aware-ai-barista-using-google-cloud-adk-gemini-and-cloud-firestore-4mgp</link>
      <guid>https://dev.to/pradyyy/building-an-allergen-aware-ai-barista-using-google-cloud-adk-gemini-and-cloud-firestore-4mgp</guid>
      <description>&lt;p&gt;As conversational AI transitions from generic chatbots to specialized corporate agents, grounding language models in precise operational data has become a necessity. Recently, I built a serverless AI Barista application designed to act as an interactive coffee shop assistant. The architecture leverages the &lt;strong&gt;Google Agent Development Kit (ADK)&lt;/strong&gt; alongside the high-efficiency &lt;strong&gt;Gemini 1.5 Flash&lt;/strong&gt; model to drive intelligent customer conversations, manage contextual dialogue history, and surface accurate product recommendations.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Backend and Security
&lt;/h3&gt;

&lt;p&gt;To ensure production-grade security and data precision, the system avoids embedding raw text catalogs directly inside system prompts—which inflates response latency and transaction token counts. Instead, the backend utilizes &lt;strong&gt;Cloud Firestore in Native Mode&lt;/strong&gt; as a scalable NoSQL vector database, implementing a flat composite vector index mapped to 768-dimensional embeddings via Google’s &lt;code&gt;text-embedding-004&lt;/code&gt; model. The running application executes under a custom Identity and Access Management (IAM) service account conforming strictly to the Principle of Least Privilege, isolating database access roles from broader compute engine capabilities.&lt;/p&gt;

&lt;h3&gt;
  
  
  Application Hosting &amp;amp; Validation
&lt;/h3&gt;

&lt;p&gt;The application layer is wrapped inside an interactive, responsive &lt;strong&gt;Streamlit&lt;/strong&gt; user interface and containerized for deployment on serverless &lt;strong&gt;Google Cloud Run&lt;/strong&gt; infrastructure. During validation testing, the deployed RAG (Retrieval-Augmented Generation) agent successfully navigated out-of-menu safety traps without hallucinating, dynamically filtered allergen-specific requests (such as lactose intolerance exclusions), and seamlessly fetched dynamic menu additions (like a newly pushed 'Matcha Green Tea Latte') in real-time directly from the live production database.&lt;/p&gt;

</description>
      <category>googlecloud</category>
      <category>ai</category>
      <category>python</category>
      <category>serverless</category>
    </item>
  </channel>
</rss>
