<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>RAG on ByF (BaiFan) · Daily Deep Think</title><link>https://blog.baifan.site/en/tags/rag/</link><description>Recent content in RAG on ByF (BaiFan) · Daily Deep Think</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>blog@baifan.site (ByF (BaiFan))</managingEditor><webMaster>blog@baifan.site (ByF (BaiFan))</webMaster><copyright>CC BY-NC 4.0</copyright><lastBuildDate>Sun, 20 Sep 2026 13:00:00 +0800</lastBuildDate><atom:link href="https://blog.baifan.site/en/tags/rag/index.xml" rel="self" type="application/rss+xml"/><item><title>The Classifier Is the Savior Again</title><link>https://blog.baifan.site/en/the-classifier-returns/</link><pubDate>Sun, 20 Sep 2026 13:00:00 +0800</pubDate><author>blog@baifan.site (ByF (BaiFan))</author><guid>https://blog.baifan.site/en/the-classifier-returns/</guid><description>&lt;p&gt;In any enterprise tech team that claims to be “fully AI-powered,” the bill nobody wants to look at closely is usually not production inference — it’s the &lt;strong&gt;evaluation pipelines&lt;/strong&gt; we run to deceive ourselves.&lt;/p&gt;&#10;&lt;!-- more --&gt;&#10;&lt;p&gt;Over the past three years, the biggest, most sacred, and least defensible totem in the enterprise stack has been the “private enterprise knowledge base” — first repackaged as RAG, then upgraded again as GraphRAG with a knowledge-graph label. Every architect, when drawing the final architecture diagram for the CTO, dutifully adds the last box: “Closed-loop evaluation and continuous alignment.”&lt;/p&gt;</description></item><item><title>TencentDB Agent Memory: Real Layered Memory for AI Agents</title><link>https://blog.baifan.site/en/tencentdb-agent-memory-deep-dive/</link><pubDate>Tue, 03 Feb 2026 14:00:00 +0800</pubDate><author>blog@baifan.site (ByF (BaiFan))</author><guid>https://blog.baifan.site/en/tencentdb-agent-memory-deep-dive/</guid><description>&lt;!-- more --&gt;&#10;&#10;&lt;h2 class="relative group"&gt;Why AI Agents Need a Memory System&#10; &lt;div id="why-ai-agents-need-a-memory-system" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#why-ai-agents-need-a-memory-system" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;If you&amp;rsquo;ve spent serious time with AI agents, these scenarios will feel familiar:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Re-explaining the project background, coding conventions, and output format preferences in every new session&lt;/li&gt;&#10;&lt;li&gt;Halfway through a long task, the context fills up with tool logs and the agent starts &amp;ldquo;forgetting&amp;rdquo; earlier instructions&lt;/li&gt;&#10;&lt;li&gt;Wanting the agent to learn your working habits, but having no way to do it except hand-writing a system prompt every time&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;&lt;strong&gt;Memory isn&amp;rsquo;t about making the AI store everything — it&amp;rsquo;s about making sure humans never have to repeat themselves.&lt;/strong&gt; That&amp;rsquo;s the core idea behind &lt;a href="https://github.com/Tencent/TencentDB-Agent-Memory" target="_blank" rel="noreferrer"&gt;TencentDB Agent Memory&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>RAG Complete Guide: Build a Local RAG System from Scratch</title><link>https://blog.baifan.site/en/rag-system-complete-guide-langchain-ollama-pgvector/</link><pubDate>Wed, 27 Aug 2025 14:00:00 +0800</pubDate><author>blog@baifan.site (ByF (BaiFan))</author><guid>https://blog.baifan.site/en/rag-system-complete-guide-langchain-ollama-pgvector/</guid><description>&lt;h1 class="relative group"&gt;Building a Local RAG with LangChain + Ollama + pgvector: A Complete Hands-On Walkthrough from 0 to 1 (with uv Dependency Management and an Interview Guide)&#10; &lt;div id="building-a-local-rag-with-langchain--ollama--pgvector-a-complete-hands-on-walkthrough-from-0-to-1-with-uv-dependency-management-and-an-interview-guide" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#building-a-local-rag-with-langchain--ollama--pgvector-a-complete-hands-on-walkthrough-from-0-to-1-with-uv-dependency-management-and-an-interview-guide" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h1&gt;&#10;&lt;blockquote&gt;&lt;p&gt;This post is a directly actionable document. Follow it top to bottom and you will build a local RAG (retrieval-augmented generation) system from scratch and understand the key concepts and code. All core scripts come with comments to make learning and interview review easier.&lt;/p&gt;</description></item><item><title>Prompt Engineering: From Prompts to Context Engineering</title><link>https://blog.baifan.site/en/prompt-engineering-context-management-complete-guide/</link><pubDate>Wed, 13 Aug 2025 14:00:00 +0800</pubDate><author>blog@baifan.site (ByF (BaiFan))</author><guid>https://blog.baifan.site/en/prompt-engineering-context-management-complete-guide/</guid><description>&lt;h1 class="relative group"&gt;AI Tutorial: Prompt Engineering&#10; &lt;div id="ai-tutorial-prompt-engineering" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#ai-tutorial-prompt-engineering" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h1&gt;&#10;&lt;p&gt;Prompt engineering focuses on designing, optimizing, and strategizing prompts — helping users mobilize the capabilities of large language models more effectively, and pushing their adoption across real-world scenarios and research domains.&lt;/p&gt;&#10;&#10;&lt;h2 class="relative group"&gt;1. Basic Concepts&#10; &lt;div id="1-basic-concepts" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#1-basic-concepts" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&#10;&lt;h3 class="relative group"&gt;1.1 What Is Prompt Engineering&#10; &lt;div id="11-what-is-prompt-engineering" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#11-what-is-prompt-engineering" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h3&gt;&#10;&lt;p&gt;A prompt is simply this: you use natural language to tell the model what to do, how to do it, what it may do, and what it must not do. That is all there is to it.&lt;/p&gt;</description></item></channel></rss>