Files
wangwei dcda7e0423 @
chore: delete old layout/common/tabs components before redesign
@
2026-06-03 16:58:35 +08:00

89 lines
5.0 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h2>法规对话模块优化方案</h2>
<p class="subtitle">选择你偏好的整体策略,我会据此展开详细设计</p>
<div class="options">
<div class="option" data-choice="a" onclick="toggleSelect(this)">
<div class="letter">A</div>
<div class="content">
<h3>分层优先(推荐)</h3>
<p>按依赖关系分4个阶段逐步落地每阶段可独立上线。</p>
<div style="margin-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px;">
<div style="background:rgba(255,255,255,0.07);border-radius:6px;padding:10px;">
<div class="label" style="color:#7dd3fc">Phase 1 · 第1周</div>
<strong style="font-size:13px">接入真实服务</strong>
<p style="font-size:12px;margin:4px 0 0;opacity:0.7">消灭 rag.py / compliance.py 中的 Mock 数据,让系统真正可用</p>
</div>
<div style="background:rgba(255,255,255,0.07);border-radius:6px;padding:10px;">
<div class="label" style="color:#86efac">Phase 2 · 第2-3周</div>
<strong style="font-size:13px">混合检索 + Reranking</strong>
<p style="font-size:12px;margin:4px 0 0;opacity:0.7">Milvus sparse BM25 + dense RRF 融合 + Cross-encoder reranker</p>
</div>
<div style="background:rgba(255,255,255,0.07);border-radius:6px;padding:10px;">
<div class="label" style="color:#fcd34d">Phase 3 · 第4周</div>
<strong style="font-size:13px">引用溯源 + 筛选 UI</strong>
<p style="font-size:12px;margin:4px 0 0;opacity:0.7">答案内联 [1][2] 跳转原文片段,法规类型/版本筛选栏</p>
</div>
<div style="background:rgba(255,255,255,0.07);border-radius:6px;padding:10px;">
<div class="label" style="color:#f9a8d4">Phase 4 · 第5周</div>
<strong style="font-size:13px">会话持久化 + 压缩</strong>
<p style="font-size:12px;margin:4px 0 0;opacity:0.7">PostgreSQL 存储会话,长对话上下文压缩,快问后端化</p>
</div>
</div>
<div class="pros-cons" style="margin-top:12px">
<div class="pros"><h4>优势</h4><ul><li>每阶段可独立验证</li><li>Phase 1 即可见效</li><li>风险最低</li></ul></div>
<div class="cons"><h4>劣势</h4><ul><li>完整交付需 5 周</li></ul></div>
</div>
</div>
</div>
<div class="option" data-choice="b" onclick="toggleSelect(this)">
<div class="letter">B</div>
<div class="content">
<h3>检索优先</h3>
<p>先升级检索质量(最有技术价值),再接入服务,最后做 UX。</p>
<div style="margin-top:12px;display:flex;flex-direction:column;gap:8px;">
<div style="background:rgba(255,255,255,0.07);border-radius:6px;padding:10px;">
<div class="label" style="color:#86efac">Step 1</div>
<strong style="font-size:13px">Milvus sparse + dense 混合索引</strong>
<p style="font-size:12px;margin:4px 0 0;opacity:0.7">先在 Mock 环境验证检索效果,技术风险前移</p>
</div>
<div style="background:rgba(255,255,255,0.07);border-radius:6px;padding:10px;">
<div class="label" style="color:#7dd3fc">Step 2</div>
<strong style="font-size:13px">接入真实服务 + 端到端测试</strong>
</div>
<div style="background:rgba(255,255,255,0.07);border-radius:6px;padding:10px;">
<div class="label" style="color:#fcd34d">Step 3</div>
<strong style="font-size:13px">引用 + UX + 会话持久化</strong>
</div>
</div>
<div class="pros-cons" style="margin-top:12px">
<div class="pros"><h4>优势</h4><ul><li>技术风险前移验证</li></ul></div>
<div class="cons"><h4>劣势</h4><ul><li>Mock 上测检索效果失真</li><li>用户最长时间看不到真实效果</li></ul></div>
</div>
</div>
</div>
<div class="option" data-choice="c" onclick="toggleSelect(this)">
<div class="letter">C</div>
<div class="content">
<h3>最小可行改进</h3>
<p>只做最小必要改动,跳过 BM25/Reranking快速交付可用版本。</p>
<div style="margin-top:12px;display:flex;flex-direction:column;gap:8px;">
<div style="background:rgba(255,255,255,0.07);border-radius:6px;padding:10px;">
<div class="label" style="color:#7dd3fc">Step 1</div>
<strong style="font-size:13px">接入真实服务(消灭 Mock</strong>
</div>
<div style="background:rgba(255,255,255,0.07);border-radius:6px;padding:10px;">
<div class="label" style="color:#fcd34d">Step 2</div>
<strong style="font-size:13px">引用溯源 + 筛选 UI</strong>
<p style="font-size:12px;margin:4px 0 0;opacity:0.7">跳过混合检索和会话持久化</p>
</div>
</div>
<div class="pros-cons" style="margin-top:12px">
<div class="pros"><h4>优势</h4><ul><li>2周内完成</li><li>最低风险</li></ul></div>
<div class="cons"><h4>劣势</h4><ul><li>检索质量无提升</li><li>会话仍会丢失</li></ul></div>
</div>
</div>
</div>
</div>