<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Chatbot on AI VOID</title><link>https://ai-blog.noorshomelab.dev/categories/chatbot/</link><description>Recent content in Chatbot on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 08 Nov 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/categories/chatbot/index.xml" rel="self" type="application/rss+xml"/><item><title>Guided Project 1: Building a Cached LLM Chatbot</title><link>https://ai-blog.noorshomelab.dev/redis-langcache-guide/guided-project-1-cached-llm-chatbot/</link><pubDate>Sat, 08 Nov 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/redis-langcache-guide/guided-project-1-cached-llm-chatbot/</guid><description>&lt;h2 id="5-guided-project-1-building-a-cached-llm-chatbot"&gt;5. Guided Project 1: Building a Cached LLM Chatbot&lt;/h2&gt;
&lt;p&gt;In this project, you will build a basic chatbot that answers user questions. The core idea is to integrate Redis LangCache to minimize calls to a simulated expensive LLM, thereby improving response times and reducing operational costs.&lt;/p&gt;
&lt;h3 id="project-objective"&gt;Project Objective&lt;/h3&gt;
&lt;p&gt;To develop a simple command-line chatbot that processes user queries. For each query:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;It first checks Redis LangCache for a semantically similar answer.&lt;/li&gt;
&lt;li&gt;If a cached answer is found (cache hit), it returns it immediately.&lt;/li&gt;
&lt;li&gt;If no cached answer is found (cache miss), it calls a mock LLM (simulating an actual LLM API call) to get a fresh response.&lt;/li&gt;
&lt;li&gt;The new prompt-response pair from the mock LLM is then stored in LangCache for future use.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="prerequisites"&gt;Prerequisites&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Completed &amp;ldquo;Setting Up Your Development Environment&amp;rdquo; (Chapter 1).&lt;/li&gt;
&lt;li&gt;Understanding of &amp;ldquo;Core Concepts of Semantic Caching&amp;rdquo; (Chapter 2) and &amp;ldquo;Basic Operations&amp;rdquo; (Chapter 3).&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="project-structure"&gt;Project Structure&lt;/h3&gt;
&lt;p&gt;Create a new directory for this project, e.g., &lt;code&gt;learn-redis-langcache/projects/chatbot-project&lt;/code&gt;.&lt;/p&gt;</description></item></channel></rss>