<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ai on</title><link>https://www.ardanlabs.com/categories/ai/</link><description>Recent content in Ai on</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 20 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.ardanlabs.com/categories/ai/index.xml" rel="self" type="application/rss+xml"/><item><title>RAG in Go: A Vulnerability Research Tool</title><link>https://www.ardanlabs.com/blog/2026/04/rag-in-go-a-vulnerability-research-tool/</link><pubDate>Mon, 20 Apr 2026 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2026/04/rag-in-go-a-vulnerability-research-tool/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;&#10;&lt;p&gt;In &lt;a href="https://www.ardanlabs.com/blog/2026/03/using-tools-a-meeting-scheduler/"&gt;the previous post&lt;/a&gt;, you saw how you can use tools to add information to an LLM query. In this post, we&amp;rsquo;ll see another method of adding information to an LLM called &lt;a href="https://en.wikipedia.org/wiki/Retrieval-augmented_generation"&gt;RAG&lt;/a&gt;, or Retrieval-Augmented Generation.&lt;/p&gt;&#10;&lt;p&gt;The idea of RAG is that you want the LLM to have access to information that wasn&amp;rsquo;t available to it when it was initially trained. You do it by storing documents in your own database along with their &lt;a href="https://en.wikipedia.org/wiki/Embedding_(machine_learning)"&gt;embedding&lt;/a&gt;. I won&amp;rsquo;t go into the technical details of embedding, but think of it as a way to convert a piece of text into a &lt;a href="https://en.wikipedia.org/wiki/Vector"&gt;vector&lt;/a&gt;. The magic is that if two pieces of text have similar meaning, an embedding model can create vectors that mathematically show they are similar.&lt;/p&gt;</description></item><item><title>Using Tools: A Meeting Scheduler</title><link>https://www.ardanlabs.com/blog/2026/03/using-tools-a-meeting-scheduler/</link><pubDate>Mon, 16 Mar 2026 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2026/03/using-tools-a-meeting-scheduler/</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;LLMs are great, but they are trained on public data sets. In some cases, you need the LLM to use data that&amp;rsquo;s not publicly available or that&amp;rsquo;s frequently changing. There are several ways to make such data available to LLMs:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Tool/function calls&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Retrieval-augmented_generation"&gt;Retrieval-augmented generation&lt;/a&gt; (aka RAG)&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Model_Context_Protocol"&gt;MCP&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;In coding agents, you can also add skills.&lt;/p&gt;&#10;&lt;p&gt;In this post we&amp;rsquo;ll focus on function calling.&lt;/p&gt;&#10;&lt;h3 id="how-does-it-work"&gt;How Does It Work?&lt;/h3&gt;&#10;&lt;p&gt;When interacting with an LLM, you can provide a description of available tools if the model supports tool calling.&#10;If the LLM reasons that the best answer is to use one of the tools, it will return a reply that contains a tool call with the parameters to use. Then you make the function call and return the answer back to the LLM.&lt;/p&gt;</description></item><item><title>Query Database Using Plain English</title><link>https://www.ardanlabs.com/blog/2026/02/query-database-using-plain-english/</link><pubDate>Wed, 11 Feb 2026 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2026/02/query-database-using-plain-english/</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;In this post you&amp;rsquo;ll see how you can create a system that allows users to query a relational database using plain English. This allows users not familiar with SQL or business intelligence systems to get insights from data.&lt;/p&gt;&#10;&lt;h3 id="setting-up"&gt;Setting Up&lt;/h3&gt;&#10;&lt;p&gt;If you want to follow along, you&amp;rsquo;ll need to clone the code from &lt;a href="https://github.com/353words/llm-sql"&gt;the GitHub repo&lt;/a&gt;. This will download the code, and the database file containing the data (&lt;code&gt;bikes.ddb&lt;/code&gt;)&lt;/p&gt;&#10;&lt;p&gt;&lt;em&gt;Note: The data is from the &lt;a href="https://www.kaggle.com/datasets/jboysen/austin-bike"&gt;Austin Bike Share dataset&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Ep. 7: Enhancing AI with Message Chaining and Accuracy Scoring</title><link>https://www.ardanlabs.com/blog/2024/09/enhancing-ai-with-message-chaining-and-accuracy-scoring-ep7.html</link><pubDate>Thu, 19 Sep 2024 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2024/09/enhancing-ai-with-message-chaining-and-accuracy-scoring-ep7.html</guid><description>&lt;h3 id="introduction"&gt;Introduction:&lt;/h3&gt;&#10;&lt;p&gt;Welcome to the final episode of our Intro to Generative AI series! In this episode, Daniel Whitenack takes the concepts you&amp;rsquo;ve been learning and shows you how to apply advanced techniques like message chaining and factuality scoring to make your AI-driven systems smarter and more reliable. This session will help you understand how to create workflows that combine multiple models, ensuring your AI can provide accurate, context-aware responses and make decisions grounded in real data.&lt;/p&gt;</description></item><item><title>Ep. 6: AI Techniques: Real-Time Web Parsing and Contextual Conversations</title><link>https://www.ardanlabs.com/blog/2024/09/ai-techniques-real-time-web-parsing-and-contextual-conversations-ep6.html</link><pubDate>Thu, 05 Sep 2024 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2024/09/ai-techniques-real-time-web-parsing-and-contextual-conversations-ep6.html</guid><description>&lt;h3 id="introduction"&gt;Introduction:&lt;/h3&gt;&#10;&lt;p&gt;In Episode 6 of the Intro to Generative A.I. series, Daniel shifts the focus from basic search techniques to more dynamic, on-the-fly AI applications. He demonstrates how to enhance AI-driven interactions by integrating real-time data retrieval and multi-turn conversations, pushing beyond static data sources to create more responsive and context-aware systems.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Implementing real-time parsing and AI search of live websites.&lt;/li&gt;&#10;&lt;li&gt;Enhancing chatbots with the ability to handle and respond to ongoing conversations.&lt;/li&gt;&#10;&lt;li&gt;Creating responsive AI systems that generate answers based on freshly retrieved data.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;&lt;img src="../../../images/blog/generative-ai.jpg?v=1" alt="" width="2542" height="548" loading="lazy" decoding="async"&gt;&lt;/p&gt;</description></item><item><title>Ep. 5: Key Techniques for Accurate AI-Driven Information Retrieval</title><link>https://www.ardanlabs.com/blog/2024/07/key-techniques-for-accurate-ai-driven-information-retrieval-ep5.html</link><pubDate>Thu, 22 Aug 2024 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2024/07/key-techniques-for-accurate-ai-driven-information-retrieval-ep5.html</guid><description>&lt;h3 id="introduction"&gt;Introduction:&lt;/h3&gt;&#10;&lt;p&gt;Welcome to Episode 5 of our Intro to Generative AI series! In this episode, Daniel explores practical techniques for enhancing AI models&amp;rsquo; ability to handle large volumes of text data effectively. He addresses the challenges developers face when working with extensive content, such as entire web pages or internal documents, and provides actionable strategies to optimize the retrieval and processing of relevant information.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Context Handling:&lt;/strong&gt; Splitting large text into manageable chunks while preserving context.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Vectorization Techniques:&lt;/strong&gt; Converting text chunks into vector representations for semantic search.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Semantic Search:&lt;/strong&gt; Implementing cosine similarity to retrieve relevant information efficiently.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;&lt;img src="../../../images/blog/generative-ai.jpg?v=1" alt="" width="2542" height="548" loading="lazy" decoding="async"&gt;&lt;/p&gt;</description></item><item><title>Ep. 4: Streamlining Prompt Engineering and Context Handling in Generative AI</title><link>https://www.ardanlabs.com/blog/2024/07/streamlining-prompt-engineering-and-context-handling-in-generative-ai-ep4.html</link><pubDate>Thu, 08 Aug 2024 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2024/07/streamlining-prompt-engineering-and-context-handling-in-generative-ai-ep4.html</guid><description>&lt;h3 id="introduction"&gt;Introduction:&lt;/h3&gt;&#10;&lt;p&gt;Welcome to Episode 4 of our Intro to Generative AI series! In this episode, Daniel dives into the essential technique of prompt engineering, focusing on creating dynamic and interactive prompts to enhance the capabilities of AI models.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Prompt Templating:&lt;/strong&gt; Techniques for creating and using dynamic prompt templates to enhance AI interactions.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Context Management:&lt;/strong&gt; Strategies for integrating and switching between multiple contexts in AI applications.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Interactive Systems:&lt;/strong&gt; Building AI systems that respond to user inputs in real-time, using terminal input loops and command-line arguments.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;&lt;img src="../../../images/blog/generative-ai.jpg?v=1" alt="" width="2542" height="548" loading="lazy" decoding="async"&gt;&lt;/p&gt;</description></item><item><title>Ep. 3: Proper Prompt Formatting for Enhanced AI Model Performance</title><link>https://www.ardanlabs.com/blog/2024/07/ep3-proper-prompt-formatting-for-enhanced-ai-model-performance.html</link><pubDate>Thu, 25 Jul 2024 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2024/07/ep3-proper-prompt-formatting-for-enhanced-ai-model-performance.html</guid><description>&lt;h3 id="introduction"&gt;Introduction:&lt;/h3&gt;&#10;&lt;p&gt;Welcome to Episode 3 of our Intro to Generative AI series! In this episode, Daniel explores the critical aspect of prompt formatting when working with AI models, emphasizing how proper formatting can significantly enhance the quality of the AI&amp;rsquo;s responses and overall performance.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Prompt Formatting:&lt;/strong&gt; Learn the importance of using specific prompt formats for AI models to enhance response quality.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;API Convenience:&lt;/strong&gt; Discover how chat completions endpoints simplify prompt formatting and improve integration.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Response Streaming:&lt;/strong&gt; Understand how to handle real-time, partial completions using server-sent events (SSE) for dynamic AI interactions.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;&lt;img src="../../../images/blog/generative-ai.jpg?v=1" alt="" width="2542" height="548" loading="lazy" decoding="async"&gt;&lt;/p&gt;</description></item><item><title>Ep. 2: Mastering LLM Integration with Go and Prediction Guard</title><link>https://www.ardanlabs.com/blog/2024/06/ep2-mastering-llm-integration-with-go-and-prediction-guard.html</link><pubDate>Sat, 06 Jul 2024 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2024/06/ep2-mastering-llm-integration-with-go-and-prediction-guard.html</guid><description>&lt;h3 id="introduction"&gt;Introduction:&lt;/h3&gt;&#10;&lt;p&gt;Welcome to Episode 2 of our Intro to Generative AI series! In this segment, Daniel dives into the practical aspects of working with large language models (LLMs) using the Go programming language and the Prediction Guard API.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Accessing LLMs:&lt;/strong&gt; Learn how to set up and connect to hosted models using the Go client for Prediction Guard.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Prompt Engineering:&lt;/strong&gt; Discover how to create effective prompts and configure parameters like max tokens and temperature.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Output Variability:&lt;/strong&gt; Understand how to manage and utilize variability in AI responses for different results.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;&lt;img src="../../../images/blog/generative-ai.jpg?v=1" alt="" width="2542" height="548" loading="lazy" decoding="async"&gt;&lt;/p&gt;</description></item><item><title>Ep. 1: Enhancing Your Go Projects with Generative AI: Exploring LLMs</title><link>https://www.ardanlabs.com/blog/2024/06/ep1-enhancing-your-go-projects-with-generative-ai-exploring-llms.html</link><pubDate>Thu, 20 Jun 2024 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2024/06/ep1-enhancing-your-go-projects-with-generative-ai-exploring-llms.html</guid><description>&lt;h3 id="introduction"&gt;Introduction:&lt;/h3&gt;&#10;&lt;p&gt;Welcome to the first episode of our &amp;ldquo;Intro to Generative A.I&amp;rdquo; series! In this episode, Daniel dives into the intriguing world of large language models (LLMs), providing a comprehensive understanding of how these powerful tools work and their practical applications.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Gain insights into the architecture and functionality of large language models like Llama 3, and how they process and generate language-based responses.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Learn how these models can be integrated into Go projects, enhancing capabilities like autocomplete, code generation, and more through practical examples and demonstrations.&lt;/p&gt;</description></item></channel></rss>