<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>文档版本 on AI 观察</title><link>https://ai.wujiong.cc/tags/%E6%96%87%E6%A1%A3%E7%89%88%E6%9C%AC/</link><description>Recent content in 文档版本 on AI 观察</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Mon, 19 Oct 2026 08:41:00 +0800</lastBuildDate><atom:link href="https://ai.wujiong.cc/tags/%E6%96%87%E6%A1%A3%E7%89%88%E6%9C%AC/index.xml" rel="self" type="application/rss+xml"/><item><title>RAG 知识库里的过期文档怎么治理？有效期、版本和下线流程</title><link>https://ai.wujiong.cc/posts/2026-10-19-rag-stale-document-expiry/</link><pubDate>Mon, 19 Oct 2026 08:41:00 +0800</pubDate><guid>https://ai.wujiong.cc/posts/2026-10-19-rag-stale-document-expiry/</guid><description>&lt;p&gt;&lt;strong&gt;知识库问答给出过时答案，最常见的原因是新旧两版文档同时被索引，检索把旧版排在了前面。&lt;/strong&gt; 治理办法是给每份文档加上「版本、生效日期、复核日期、负责人」四个元数据，检索时过滤或降权过期内容，并建立一个定期复核和下线的流程。&lt;/p&gt;
&lt;h2 id="过期文档是怎么混进来的"&gt;过期文档是怎么混进来的&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;制度更新了，新文件上传了，旧文件没删。&lt;/li&gt;
&lt;li&gt;同一内容在多个地方有副本：网盘、群文件、旧网站。&lt;/li&gt;
&lt;li&gt;文档本身没写日期，系统无法判断新旧。&lt;/li&gt;
&lt;li&gt;临时通知（某次活动规则）活动结束后一直留在库里。&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="第一步给文档加元数据"&gt;第一步：给文档加元数据&lt;/h2&gt;
&lt;p&gt;在入库时为每个文档（或每个切块）记录：&lt;/p&gt;</description></item></channel></rss>