<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>RAG - Tag - Daily Deep Think</title>
        <link>https://blog.baifan.site/en/tags/rag/</link>
        <description>RAG - Tag - Daily Deep Think</description>
        <generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>blog@baifan.site (ByF)</managingEditor>
            <webMaster>blog@baifan.site (ByF)</webMaster><lastBuildDate>Tue, 03 Feb 2026 14:00:00 &#43;0800</lastBuildDate><atom:link href="https://blog.baifan.site/en/tags/rag/" rel="self" type="application/rss+xml" /><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 &#43;0800</pubDate><author>
                    <name>ByF</name>
                </author><guid>https://blog.baifan.site/en/tencentdb-agent-memory-deep-dive/</guid>
    <description><![CDATA[<div class="featured-image">
                <img src="/pictures/note/tencentdb-agent-memory-featured.svg" referrerpolicy="no-referrer">
            </div><!-- more -->
<h2 id="why-ai-agents-need-a-memory-system" class="headerLink">
    <a href="#why-ai-agents-need-a-memory-system" class="header-mark"></a>Why AI Agents Need a Memory System</h2><p>If you&rsquo;ve spent serious time with AI agents, these scenarios will feel familiar:</p>
<ul>
<li>Re-explaining the project background, coding conventions, and output format preferences in every new session</li>
<li>Halfway through a long task, the context fills up with tool logs and the agent starts &ldquo;forgetting&rdquo; earlier instructions</li>
<li>Wanting the agent to learn your working habits, but having no way to do it except hand-writing a system prompt every time</li>
</ul>
<p><strong>Memory isn&rsquo;t about making the AI store everything — it&rsquo;s about making sure humans never have to repeat themselves.</strong> That&rsquo;s the core idea behind <a href="https://github.com/Tencent/TencentDB-Agent-Memory" target="_blank" rel="noopener noreferrer">TencentDB Agent Memory</a>.</p>]]></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 &#43;0800</pubDate><author>
                    <name>ByF</name>
                </author><guid>https://blog.baifan.site/en/rag-system-complete-guide-langchain-ollama-pgvector/</guid>
    <description><![CDATA[<div class="featured-image">
                <img src="/pictures/note/ai-tutorial-5-rag-system.jpg" referrerpolicy="no-referrer">
            </div><h1 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="headerLink">
    <a 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" class="header-mark"></a>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)</h1><blockquote>
  <p>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.</p>]]></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 &#43;0800</pubDate><author>
                    <name>ByF</name>
                </author><guid>https://blog.baifan.site/en/prompt-engineering-context-management-complete-guide/</guid>
    <description><![CDATA[<div class="featured-image">
                <img src="/pictures/note/ai-tutorial-3-prompt.jpg" referrerpolicy="no-referrer">
            </div><h1 id="ai-tutorial-prompt-engineering" class="headerLink">
    <a href="#ai-tutorial-prompt-engineering" class="header-mark"></a>AI Tutorial: Prompt Engineering</h1><p>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.</p>
<h2 id="1-basic-concepts" class="headerLink">
    <a href="#1-basic-concepts" class="header-mark"></a>1. Basic Concepts</h2><h3 id="11-what-is-prompt-engineering" class="headerLink">
    <a href="#11-what-is-prompt-engineering" class="header-mark"></a>1.1 What Is Prompt Engineering</h3><p>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.</p>]]></description>
</item>
</channel>
</rss>
