<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Llm on</title><link>https://www.ardanlabs.com/tags/llm/</link><description>Recent content in Llm 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/tags/llm/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>Security in Go LLM-based applications</title><link>https://www.ardanlabs.com/events/security-in-go-llm-based-applications/</link><pubDate>Thu, 02 Apr 2026 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/events/security-in-go-llm-based-applications/</guid><description>&lt;p&gt;Secure Go-LLM apps: Learn to block prompt injection, secure tool calls via least-privilege, and stop RAG data poisoning with robust patterns&lt;/p&gt;&#10;&lt;p&gt;As more Go applications use LLMs in one way or another, security is more important than ever.&lt;/p&gt;&#10;&lt;p&gt;In this talk, we&amp;rsquo;ll explore some design patterns to keep your application secured against a range of attacks, such as:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Prompt injection&lt;/strong&gt; — How injected instructions in user input or retrieved documents can hijack model behavior.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Securing tool calls&lt;/strong&gt; — Apply least-privilege principles to exposed functions, prevent command injection from model output, and enforce authorization checks before execution.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;RAG pipeline security&lt;/strong&gt; — Guard against data poisoning and indirect injection via ingested documents. See how a malicious document in the vector DB can manipulate retrieval results and model responses.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Join us to explore this critical area and learn together how to write safer applications.&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>Brains on Autocomplete: Are We Gaining Speed but Losing Mastery?</title><link>https://www.ardanlabs.com/news/2025/brains-on-autocomplete-are-we-gaining-speed-but-losing-mastery/</link><pubDate>Thu, 24 Jul 2025 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/news/2025/brains-on-autocomplete-are-we-gaining-speed-but-losing-mastery/</guid><description>&lt;h2 id="engineers-ai-and-the-cognitive-tradeoff"&gt;Engineers, AI, and the Cognitive Tradeoff&lt;/h2&gt;&#10;&lt;p&gt;Every generation creates tools to offload effort. In the 1960s, when electronic calculators entered classrooms, educators worried students would lose the ability to do math on their own. Why? Because the brain needs the reps. Understanding can’t be outsourced.&lt;/p&gt;&#10;&lt;p&gt;But this wasn’t a new fear. Centuries earlier, even the abacus sparked concern. When we hand off the mechanics of thinking to a tool, what happens to the mind behind it?&lt;/p&gt;</description></item><item><title>Categorizing Data with Large Language Models in Rust</title><link>https://www.ardanlabs.com/blog/2024/07/categorize_data_large_language_model_rust.html</link><pubDate>Tue, 06 Aug 2024 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2024/07/categorize_data_large_language_model_rust.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;&lt;a href="https://libreqos.io/"&gt;LibreQoS&lt;/a&gt; is an open source project for monitoring and providing quality-of-experience for Internet Service Providers (ISPs) and large networks. It runs as a &amp;ldquo;middle-box&amp;rdquo;, monitoring traffic that passes through it. It recently gained the ability to track individual &lt;em&gt;data flows&lt;/em&gt; - connections between two endpoints. It&amp;rsquo;s also my favorite Open Source project, to which I contribute regularly.&lt;/p&gt;&#10;&lt;p&gt;Public Internet IP addresses belong to an ASN - an Autonomous System Number. An ASN is a unique number that identifies a network on the Internet. Tracking flows allows you to see which ASNs your users are connecting to, how much data is flowing, and monitor the quality of the connection.&lt;/p&gt;</description></item></channel></rss>