<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[权限过滤放检索前还是检索后？]]></title><description><![CDATA[<p dir="auto">RAG 权限过滤，先检索全库再把没权限的 chunk 丢掉，可以吗？</p>
]]></description><link>https://localaihub.com/topic/64/权限过滤放检索前还是检索后</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 19:23:18 GMT</lastBuildDate><atom:link href="https://localaihub.com/topic/64.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 03 May 2026 09:47:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 权限过滤放检索前还是检索后？ on Mon, 04 May 2026 05:51:00 GMT]]></title><description><![CDATA[<p dir="auto">召回少是正常的。权限边界内再优化召回，别拿越权内容补质量。</p>
]]></description><link>https://localaihub.com/post/243</link><guid isPermaLink="true">https://localaihub.com/post/243</guid><dc:creator><![CDATA[林小北]]></dc:creator><pubDate>Mon, 04 May 2026 05:51:00 GMT</pubDate></item><item><title><![CDATA[Reply to 权限过滤放检索前还是检索后？ on Mon, 04 May 2026 05:19:00 GMT]]></title><description><![CDATA[<p dir="auto">后续反馈：我们改成 pre-filter 后，召回少了但答案更稳，至少不会跨项目串。</p>
]]></description><link>https://localaihub.com/post/242</link><guid isPermaLink="true">https://localaihub.com/post/242</guid><dc:creator><![CDATA[小郑]]></dc:creator><pubDate>Mon, 04 May 2026 05:19:00 GMT</pubDate></item><item><title><![CDATA[Reply to 权限过滤放检索前还是检索后？ on Mon, 04 May 2026 04:27:00 GMT]]></title><description><![CDATA[<p dir="auto">企业知识库最容易死在这些边角。模型安全不是一句 system prompt。</p>
]]></description><link>https://localaihub.com/post/241</link><guid isPermaLink="true">https://localaihub.com/post/241</guid><dc:creator><![CDATA[leaf_1997]]></dc:creator><pubDate>Mon, 04 May 2026 04:27:00 GMT</pubDate></item><item><title><![CDATA[Reply to 权限过滤放检索前还是检索后？ on Mon, 04 May 2026 02:53:00 GMT]]></title><description><![CDATA[<p dir="auto">我之前只想了答案泄露，没想到引用标题和日志。</p>
]]></description><link>https://localaihub.com/post/240</link><guid isPermaLink="true">https://localaihub.com/post/240</guid><dc:creator><![CDATA[赵赵]]></dc:creator><pubDate>Mon, 04 May 2026 02:53:00 GMT</pubDate></item><item><title><![CDATA[Reply to 权限过滤放检索前还是检索后？ on Mon, 04 May 2026 00:51:00 GMT]]></title><description><![CDATA[<p dir="auto">Postgres RLS 可以兜底业务表，但向量库还要自己设计对应过滤。</p>
]]></description><link>https://localaihub.com/post/239</link><guid isPermaLink="true">https://localaihub.com/post/239</guid><dc:creator><![CDATA[阿白]]></dc:creator><pubDate>Mon, 04 May 2026 00:51:00 GMT</pubDate></item><item><title><![CDATA[Reply to 权限过滤放检索前还是检索后？ on Sun, 03 May 2026 21:56:00 GMT]]></title><description><![CDATA[<p dir="auto">权限变化要能重放。谁在什么时候能看什么文档，要有审计口径。</p>
]]></description><link>https://localaihub.com/post/238</link><guid isPermaLink="true">https://localaihub.com/post/238</guid><dc:creator><![CDATA[小路灯]]></dc:creator><pubDate>Sun, 03 May 2026 21:56:00 GMT</pubDate></item><item><title><![CDATA[Reply to 权限过滤放检索前还是检索后？ on Sun, 03 May 2026 20:44:00 GMT]]></title><description><![CDATA[<p dir="auto">可以用角色组、ACL version、可见集合预计算。不要每次传几千个 doc_id。</p>
]]></description><link>https://localaihub.com/post/237</link><guid isPermaLink="true">https://localaihub.com/post/237</guid><dc:creator><![CDATA[MingK]]></dc:creator><pubDate>Sun, 03 May 2026 20:44:00 GMT</pubDate></item><item><title><![CDATA[Reply to 权限过滤放检索前还是检索后？ on Sun, 03 May 2026 19:44:00 GMT]]></title><description><![CDATA[<p dir="auto">如果用户权限很多，filter 很长怎么办？</p>
]]></description><link>https://localaihub.com/post/236</link><guid isPermaLink="true">https://localaihub.com/post/236</guid><dc:creator><![CDATA[小树]]></dc:creator><pubDate>Sun, 03 May 2026 19:44:00 GMT</pubDate></item><item><title><![CDATA[Reply to 权限过滤放检索前还是检索后？ on Sun, 03 May 2026 19:08:00 GMT]]></title><description><![CDATA[<p dir="auto">对，debug log 里别打印 chunk 全文。生产日志要脱敏。</p>
]]></description><link>https://localaihub.com/post/235</link><guid isPermaLink="true">https://localaihub.com/post/235</guid><dc:creator><![CDATA[rootless]]></dc:creator><pubDate>Sun, 03 May 2026 19:08:00 GMT</pubDate></item><item><title><![CDATA[Reply to 权限过滤放检索前还是检索后？ on Sun, 03 May 2026 16:53:00 GMT]]></title><description><![CDATA[<p dir="auto">我更担心日志。无权限 chunk 如果进过中间日志，也是泄露。</p>
]]></description><link>https://localaihub.com/post/234</link><guid isPermaLink="true">https://localaihub.com/post/234</guid><dc:creator><![CDATA[半糖]]></dc:creator><pubDate>Sun, 03 May 2026 16:53:00 GMT</pubDate></item><item><title><![CDATA[Reply to 权限过滤放检索前还是检索后？ on Sun, 03 May 2026 16:08:00 GMT]]></title><description><![CDATA[<p dir="auto">但只做前过滤也不够。生成前、引用展开、原文下载都要再校验。</p>
]]></description><link>https://localaihub.com/post/233</link><guid isPermaLink="true">https://localaihub.com/post/233</guid><dc:creator><![CDATA[nora]]></dc:creator><pubDate>Sun, 03 May 2026 16:08:00 GMT</pubDate></item><item><title><![CDATA[Reply to 权限过滤放检索前还是检索后？ on Sun, 03 May 2026 13:30:00 GMT]]></title><description><![CDATA[<p dir="auto">权限必须参与检索条件。tenant、部门、项目、文档状态都要在搜索时过滤。</p>
]]></description><link>https://localaihub.com/post/232</link><guid isPermaLink="true">https://localaihub.com/post/232</guid><dc:creator><![CDATA[林小北]]></dc:creator><pubDate>Sun, 03 May 2026 13:30:00 GMT</pubDate></item><item><title><![CDATA[Reply to 权限过滤放检索前还是检索后？ on Sun, 03 May 2026 11:11:00 GMT]]></title><description><![CDATA[<p dir="auto">我们试过后过滤，top_10 里 8 条没权限，剩下两条根本不够答。</p>
]]></description><link>https://localaihub.com/post/231</link><guid isPermaLink="true">https://localaihub.com/post/231</guid><dc:creator><![CDATA[小郑]]></dc:creator><pubDate>Sun, 03 May 2026 11:11:00 GMT</pubDate></item><item><title><![CDATA[Reply to 权限过滤放检索前还是检索后？ on Sun, 03 May 2026 10:54:00 GMT]]></title><description><![CDATA[<p dir="auto">不建议。后过滤会让有权限内容被无权限内容挤掉，答案质量和安全都受影响。</p>
]]></description><link>https://localaihub.com/post/230</link><guid isPermaLink="true">https://localaihub.com/post/230</guid><dc:creator><![CDATA[leaf_1997]]></dc:creator><pubDate>Sun, 03 May 2026 10:54:00 GMT</pubDate></item></channel></rss>