<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sonirajanand on Medium]]></title>
        <description><![CDATA[Stories by Sonirajanand on Medium]]></description>
        <link>https://medium.com/@sonirajanand677?source=rss-0de42608819d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*0M2cSqLjs_D9BOnp</url>
            <title>Stories by Sonirajanand on Medium</title>
            <link>https://medium.com/@sonirajanand677?source=rss-0de42608819d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 12:24:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sonirajanand677/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ Nihongo Journey: How I Built an AI-Powered Japanese Language & Culture Assistant Using Google…]]></title>
            <link>https://medium.com/@sonirajanand677/nihongo-journey-how-i-built-an-ai-powered-japanese-language-culture-assistant-using-google-89a50b095815?source=rss-0de42608819d------2</link>
            <guid isPermaLink="false">https://medium.com/p/89a50b095815</guid>
            <dc:creator><![CDATA[Sonirajanand]]></dc:creator>
            <pubDate>Tue, 18 Nov 2025 08:37:56 GMT</pubDate>
            <atom:updated>2025-11-18T08:37:56.383Z</atom:updated>
            <content:encoded><![CDATA[<h3>🗾 Nihongo Journey: How I Built an AI-Powered Japanese Language &amp; Culture Assistant Using Google Cloud Run &amp; Gemini ADK</h3><h3>By Raj Anand Soni — Programmer Analyst, Cognizant</h3><p><em>Full Stack | DevOps | Cloud | AI Enthusiast</em></p><h3>🌟 Introduction</h3><p>Japan has always fascinated me — the culture, the food, the language, and the technology.<br> But for beginners, the learning curve can be overwhelming:</p><ul><li><em>Where do I start learning Japanese?</em></li><li><em>What should I eat in Tokyo?</em></li><li><em>How do I plan a trip to Osaka?</em></li><li><em>What is a JR Pass?</em></li></ul><p>As part of the <strong>Google Cloud Labs: Build &amp; Blog Marathon — Accelerate AI with Cloud Run (Bengaluru)</strong>, I decided to solve this problem by turning my existing React-based website <strong>Nihongo Journey</strong> into a fully AI-powered Japanese learning and travel assistance platform.</p><p>This led me to build the <strong>Nihongo Journey AI Agent</strong> — an integrated system powered by:</p><ul><li><strong>Gemini Agent Development Kit (ADK)</strong></li><li><strong>FastAPI backend deployed on Cloud Run</strong></li><li><strong>GPU-accelerated Gemma 3 (270M model)</strong></li><li><strong>React-based AI chatbot frontend</strong></li></ul><p>The result?<br> A scalable, cloud-native AI assistant that gives real insights about Japan — with natural conversation.</p><h3>🎯 Why I Built This</h3><p>As Japanese language learners and travelers, people face several challenges:</p><ul><li>Resources are scattered across the internet</li><li>Travel information is confusing</li><li>Cultural understanding is limited</li><li>Most “chatbots” are static, rule-based, and not truly intelligent</li><li>Beginners need guidance for JLPT, food, itineraries, and phrases</li></ul><p>My goal was to build something that feels like:</p><blockquote><strong><em>“A friendly Japanese guide who lives inside your browser.”</em></strong></blockquote><p>And powered fully by Google Cloud.</p><h3>🧩 Problem Statement</h3><p>The main challenges I wanted to solve:</p><h3>❌ Problem 1: No unified platform</h3><p>Language, travel, food, and cultural info exist across 50+ websites.</p><h3>❌ Problem 2: Generic chatbots</h3><p>Rule-based bots don’t understand Japanese context.</p><h3>❌ Problem 3: Scalable backend requirement</h3><p>Handling AI inference in real-time needs cloud-native infrastructure.</p><h3>❌ Problem 4: Consistent user experience</h3><p>Users want an instant, modern chatbot UI.</p><h3>⚙️ Project Objectives</h3><p>I clearly defined five objectives:</p><ol><li>Build a <strong>cloud-native AI backend</strong> using FastAPI</li><li>Deploy the backend using <strong>Cloud Run</strong></li><li>Use <strong>Gemini ADK</strong> to develop a production-ready agent</li><li>Deploy a <strong>GPU-backed Gemma 3</strong> model for inference</li><li>Integrate everything into my <strong>React frontend</strong></li></ol><h3>🏗️ Architecture Overview</h3><h3>Nihongo Journey — AI System Design</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jGhoSIUM9mjBRfD4zCTQaA.png" /></figure><pre>Browser (React UI)<br>        |<br>        v<br>Frontend Chat Interface (React + Tailwind)<br>        |<br>        |  /invoke POST request<br>        v<br>Cloud Run Service #1 — ADK Agent Backend (FastAPI)<br>- Session management<br>- Cloud Run routing<br>- Gemma model interface<br>        |<br>        v<br>Cloud Run Service #2 — GPU Gemma 3 (270M Model)<br>- Runs inference<br>- Streams token responses<br>        |<br>        v<br>Response sent back to React UI</pre><p>This architecture is fully serverless, scalable, and cost-controlled.</p><h3>🛠️ Technologies Used</h3><h3>Frontend</h3><ul><li>React.js</li><li>Tailwind CSS</li><li>Custom chatbot UI</li><li>Regex-based mini FAQ engine</li><li>Streaming API consumption</li></ul><h3>Backend</h3><ul><li>FastAPI (Python)</li><li>Gemini Agent Development Kit</li><li>Gemma 3 (270M) running on GPU</li><li>Session-based endpoint routing</li></ul><h3>Cloud Infrastructure</h3><ul><li>Cloud Run</li><li>Cloud Build</li><li>Artifact Registry</li><li>Logging, monitoring, autoscaling</li></ul><h3>🚀 Key Features</h3><h3>1. AI Conversation Agent</h3><p>Understands and responds to questions related to:</p><ul><li>Japanese culture</li><li>Food recommendations</li><li>Travel planning</li><li>JLPT preparation</li><li>Historical places</li><li>Travel documents (JR Pass, visa, etc.)</li></ul><h3>2. Regex-based Instant FAQ</h3><p>Works even if the AI model is offline.<br> Super helpful for common queries.</p><h3>3. GPU-Powered LLM Backend</h3><p>Gemma 3 (270M) offers:</p><ul><li>Low latency</li><li>Accurate Japanese information</li><li>Token streaming</li></ul><h3>4. Fully Integrated React Chat UI</h3><p>Modern, clean, fast — matching the Nihongo Journey design.</p><h3>🧪 Implementation Breakdown (Step-by-Step)</h3><h3>1️⃣ Building the Agent Using Gemini ADK</h3><p>Created an agent with:</p><ul><li>System instructions</li><li>Flow config</li><li>Session handlers</li><li>Model routing logic</li></ul><h3>2️⃣ Deploying Gemma on GPU</h3><pre>gcloud run deploy ollama-gemma3-270m-gpu \<br>  --region=europe-west1 \<br>  --machine-type=gpu-t4 \<br>  --max-instances=1</pre><h3>3️⃣ Deploying the FastAPI Backend</h3><pre>gcloud run deploy production-adk-agent \<br>  --region=europe-west1 \<br>  --max-instances=1</pre><h3>4️⃣ Adding CORS Support</h3><pre>app.add_middleware(<br>    CORSMiddleware,<br>    allow_origins=[&quot;*&quot;],<br>    allow_methods=[&quot;*&quot;],<br>    allow_headers=[&quot;*&quot;],<br>)</pre><h3>5️⃣ Integrating the Chatbot Into React</h3><pre>fetch(&quot;https://your-cloudrun-url/invoke&quot;, {<br>  method: &quot;POST&quot;,<br>  headers: { &quot;Content-Type&quot;: &quot;application/json&quot; },<br>  body: JSON.stringify({<br>    session_id: &quot;user-session&quot;,<br>    input: userMessage,<br>  }),<br>});</pre><h3>📸 Screenshots of the Project</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E9fknghRmZW_B3-OU425XA.png" /></figure><p>Home Page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TXww6WN0aYuFj97ms7_wJA.png" /></figure><p>Learn Section</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FizSm5C97ttrGaxN7W9W3A.png" /></figure><p>Places Section</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*AE7AEtXGLg0KzdRm7TX34w.png" /></figure><p>Chatbot Interface</p><h3>🧪 Observations &amp; Testing</h3><h3>💡 ADK Agent</h3><ul><li>Fast routing</li><li>Stable responses</li><li>Runs efficiently on Cloud Run</li></ul><h3>💡 Gemma 3 GPU Backend</h3><ul><li>300–500 ms average latency</li><li>Smooth streaming</li><li>Perfect for conversational AI</li></ul><h3>🔮 Future Enhancements</h3><p>Here’s what I plan to add next:</p><ul><li>Multi-turn memory</li><li>Voice-to-text input</li><li>Speech synthesis for replies</li><li>JLPT grammar quizzes</li><li>Personalized learning profiles</li><li>Travel itinerary generator</li></ul><h3>🎉 Final Results &amp; Conclusion</h3><p>By combining <strong>Google Cloud Run</strong>, <strong>Gemini ADK</strong>, <strong>GPU-powered Gemma models</strong>, and a <strong>React frontend</strong>, I built a production-grade AI assistant that:</p><ul><li>Helps Japanese language learners</li><li>Assists travelers</li><li>Answers cultural questions</li><li>Provides engaging conversation</li><li>Is highly scalable and cloud-native</li></ul><p>This project transformed my original website into a living, intelligent guide — something far beyond a static platform.</p><p><strong>Nihongo Journey is now a fully AI-powered Japan companion.</strong></p><h3>💛 Credits &amp; Links</h3><p><strong>Developed by:</strong><br> <strong>Raj Anand Soni</strong><br> Programmer Analyst, Cognizant<br> Full Stack | DevOps | Cloud | AI</p><p>🔗 Website: <a href="https://nihongo-journey.netlify.app/">https://nihongo-journey.netlify.app</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89a50b095815" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>