- 新增 memory.html 记忆设计文档 - 新增 plan.html 规划文档 - 添加新的项目截图 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
304 lines
18 KiB
HTML
304 lines
18 KiB
HTML
<template>
|
||
<div class="min-h-screen bg-[#121212] text-gray-200 p-6">
|
||
<!-- 顶部开关 -->
|
||
<div class="flex justify-end items-center mb-6">
|
||
<span class="text-gray-400 mr-3">记忆管理 已启用</span>
|
||
<button class="w-12 h-6 bg-green-500 rounded-full relative">
|
||
<span class="absolute right-1 top-1 w-4 h-4 bg-white rounded-full"></span>
|
||
</button>
|
||
</div>
|
||
|
||
<!-- 统计卡片区域 -->
|
||
<div class="grid grid-cols-4 gap-4 mb-6">
|
||
<div class="bg-[#1e1e1e] rounded-xl p-5 text-center">
|
||
<div class="text-3xl font-bold text-white mb-1">15</div>
|
||
<div class="text-sm text-gray-400">总记忆数</div>
|
||
</div>
|
||
<div class="bg-[#1e1e1e] rounded-xl p-5 text-center">
|
||
<div class="text-3xl font-bold text-white mb-1">0.78</div>
|
||
<div class="text-sm text-gray-400">平均分数</div>
|
||
</div>
|
||
<div class="bg-[#1e1e1e] rounded-xl p-5 text-center">
|
||
<div class="text-3xl font-bold text-cyan-400 mb-1">6</div>
|
||
<div class="text-sm text-gray-400">经验</div>
|
||
</div>
|
||
<div class="bg-[#1e1e1e] rounded-xl p-5 text-center">
|
||
<div class="text-3xl font-bold text-red-400 mb-1">9</div>
|
||
<div class="text-sm text-gray-400">经验教训</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 搜索栏 -->
|
||
<div class="mb-4">
|
||
<div class="relative">
|
||
<svg class="absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
|
||
</svg>
|
||
<input
|
||
type="text"
|
||
placeholder="搜索记忆内容..."
|
||
class="w-full bg-[#0a0a0a] border border-gray-700 rounded-lg py-3 pl-10 pr-4 text-gray-200 focus:outline-none focus:border-gray-600"
|
||
>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 筛选与操作栏 -->
|
||
<div class="flex items-center justify-between mb-6">
|
||
<div class="flex items-center space-x-3">
|
||
<select class="bg-[#0a0a0a] border border-gray-700 rounded-lg py-2 px-4 text-gray-200 focus:outline-none">
|
||
<option>全部类型</option>
|
||
<option>经验</option>
|
||
<option>经验教训</option>
|
||
</select>
|
||
<button class="flex items-center space-x-2 bg-[#1e1e1e] border border-gray-700 rounded-lg py-2 px-4 text-gray-200 hover:bg-[#2a2a2a]">
|
||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"></path>
|
||
</svg>
|
||
<span>刷新</span>
|
||
</button>
|
||
<button class="flex items-center space-x-2 bg-indigo-600 rounded-lg py-2 px-4 text-white hover:bg-indigo-700">
|
||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
|
||
</svg>
|
||
<span>LLM 智能审查</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 表格区域 -->
|
||
<div class="bg-[#1e1e1e] rounded-xl overflow-hidden">
|
||
<table class="w-full">
|
||
<thead class="bg-[#0a0a0a]">
|
||
<tr>
|
||
<th class="w-10 px-4 py-3">
|
||
<input type="checkbox" class="rounded bg-gray-700 border-gray-600">
|
||
</th>
|
||
<th class="px-4 py-3 text-left text-sm font-medium text-gray-400">类型</th>
|
||
<th class="px-4 py-3 text-left text-sm font-medium text-gray-400">内容</th>
|
||
<th class="px-4 py-3 text-left text-sm font-medium text-gray-400">分数</th>
|
||
<th class="px-4 py-3 text-left text-sm font-medium text-gray-400">创建时间</th>
|
||
<th class="px-4 py-3 text-left text-sm font-medium text-gray-400">操作</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody class="divide-y divide-gray-800">
|
||
<!-- 表格行 1 -->
|
||
<tr class="hover:bg-[#252525]">
|
||
<td class="px-4 py-4">
|
||
<input type="checkbox" class="rounded bg-gray-700 border-gray-600">
|
||
</td>
|
||
<td class="px-4 py-4">
|
||
<span class="px-2 py-1 bg-cyan-900/30 text-cyan-400 text-xs rounded-full">经验</span>
|
||
</td>
|
||
<td class="px-4 py-4 text-sm text-gray-300 max-w-xl">
|
||
当任务明确要求获取外部信息(搜索最新数据、新闻、财报、行业报告等)时,模型必须主动调用搜索工具而非仅依赖内部知识。应在系统提示中明确要求「必须使用搜索工具获取XX最新数据」,首次迭代即调用搜索工具,采用「搜索→分析→输出」的递进式流程,避免模型陷入纯文字生成的空转循环。
|
||
<div class="text-xs text-gray-500 mt-1">主体: 外部信息获取规范 · 属性: 工具调用原则</div>
|
||
</td>
|
||
<td class="px-4 py-4">
|
||
<span class="text-emerald-400 font-medium">0.95</span>
|
||
</td>
|
||
<td class="px-4 py-4 text-sm text-gray-400">3/10 15:35</td>
|
||
<td class="px-4 py-4">
|
||
<div class="flex space-x-2">
|
||
<button class="text-gray-400 hover:text-white">
|
||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path>
|
||
</svg>
|
||
</button>
|
||
<button class="text-red-400 hover:text-red-300">
|
||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path>
|
||
</svg>
|
||
</button>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<!-- 表格行 2 -->
|
||
<tr class="hover:bg-[#252525]">
|
||
<td class="px-4 py-4">
|
||
<input type="checkbox" class="rounded bg-gray-700 border-gray-600">
|
||
</td>
|
||
<td class="px-4 py-4">
|
||
<span class="px-2 py-1 bg-cyan-900/30 text-cyan-400 text-xs rounded-full">经验</span>
|
||
</td>
|
||
<td class="px-4 py-4 text-sm text-gray-300 max-w-xl">
|
||
当任务明确要求获取外部信息(搜索最新数据、新闻、财报、行业报告等)时,模型必须调用搜索工具而非仅依赖内部知识。应在系统提示中明确要求「必须使用搜索工具获取XX最新数据」,并建立工具调用检测机制,确保任务执行路径正确。
|
||
<div class="text-xs text-gray-500 mt-1">主体: 工具调用 · 属性: 错误教训</div>
|
||
</td>
|
||
<td class="px-4 py-4">
|
||
<span class="text-emerald-400 font-medium">0.95</span>
|
||
</td>
|
||
<td class="px-4 py-4 text-sm text-gray-400">3/10 12:34</td>
|
||
<td class="px-4 py-4">
|
||
<div class="flex space-x-2">
|
||
<button class="text-gray-400 hover:text-white">
|
||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path>
|
||
</svg>
|
||
</button>
|
||
<button class="text-red-400 hover:text-red-300">
|
||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path>
|
||
</svg>
|
||
</button>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<!-- 表格行 3 -->
|
||
<tr class="hover:bg-[#252525]">
|
||
<td class="px-4 py-4">
|
||
<input type="checkbox" class="rounded bg-gray-700 border-gray-600">
|
||
</td>
|
||
<td class="px-4 py-4">
|
||
<span class="px-2 py-1 bg-cyan-900/30 text-cyan-400 text-xs rounded-full">经验</span>
|
||
</td>
|
||
<td class="px-4 py-4 text-sm text-gray-300 max-w-xl">
|
||
任务执行应采用「一次性完整输出」策略,避免分批次小幅输出导致的迭代空转。对于代码生成、文件写入等任务,应要求模型一次性完成方案设计与工具执行的完整流程,将确认性回复并入上一次响应,将冗余迭代压缩合并,复杂任务控制在2-3次迭代内完成。
|
||
<div class="text-xs text-gray-500 mt-1">主体: 任务执行效率优化 · 属性: 迭代策略原则</div>
|
||
</td>
|
||
<td class="px-4 py-4">
|
||
<span class="text-emerald-400 font-medium">0.92</span>
|
||
</td>
|
||
<td class="px-4 py-4 text-sm text-gray-400">3/10 15:35</td>
|
||
<td class="px-4 py-4">
|
||
<div class="flex space-x-2">
|
||
<button class="text-gray-400 hover:text-white">
|
||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path>
|
||
</svg>
|
||
</button>
|
||
<button class="text-red-400 hover:text-red-300">
|
||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path>
|
||
</svg>
|
||
</button>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<!-- 表格行 4 -->
|
||
<tr class="hover:bg-[#252525]">
|
||
<td class="px-4 py-4">
|
||
<input type="checkbox" class="rounded bg-gray-700 border-gray-600">
|
||
</td>
|
||
<td class="px-4 py-4">
|
||
<span class="px-2 py-1 bg-cyan-900/30 text-cyan-400 text-xs rounded-full">经验</span>
|
||
</td>
|
||
<td class="px-4 py-4 text-sm text-gray-300 max-w-xl">
|
||
任务执行过程中应建立工具调用检测机制,监控模型是否按要求调用了必要的工具。若迭代中工具调用数为0,说明执行路径不正确,应触发异常处理或提示,而非继续无效迭代。
|
||
<div class="text-xs text-gray-500 mt-1">主体: 执行路径监控 · 属性: 质量控制机制</div>
|
||
</td>
|
||
<td class="px-4 py-4">
|
||
<span class="text-emerald-400 font-medium">0.88</span>
|
||
</td>
|
||
<td class="px-4 py-4 text-sm text-gray-400">3/10 15:35</td>
|
||
<td class="px-4 py-4">
|
||
<div class="flex space-x-2">
|
||
<button class="text-gray-400 hover:text-white">
|
||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path>
|
||
</svg>
|
||
</button>
|
||
<button class="text-red-400 hover:text-red-300">
|
||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path>
|
||
</svg>
|
||
</button>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<!-- 表格行 5 -->
|
||
<tr class="hover:bg-[#252525]">
|
||
<td class="px-4 py-4">
|
||
<input type="checkbox" class="rounded bg-gray-700 border-gray-600">
|
||
</td>
|
||
<td class="px-4 py-4">
|
||
<span class="px-2 py-1 bg-cyan-900/30 text-cyan-400 text-xs rounded-full">经验</span>
|
||
</td>
|
||
<td class="px-4 py-4 text-sm text-gray-300 max-w-xl">
|
||
任务执行应采用「搜索→分析→输出」的递进式流程,避免无效迭代和空转。纯文字生成的重复迭代应压缩或合并,确认性回复应并入上一次响应。简单任务应在1-2次迭代内完成,避免模型陷入重复思考或无意义的自我确认。
|
||
<div class="text-xs text-gray-500 mt-1">主体: 迭代效率 · 属性: 错误教训</div>
|
||
</td>
|
||
<td class="px-4 py-4">
|
||
<span class="text-emerald-400 font-medium">0.85</span>
|
||
</td>
|
||
<td class="px-4 py-4 text-sm text-gray-400">3/10 12:34</td>
|
||
<td class="px-4 py-4">
|
||
<div class="flex space-x-2">
|
||
<button class="text-gray-400 hover:text-white">
|
||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path>
|
||
</svg>
|
||
</button>
|
||
<button class="text-red-400 hover:text-red-300">
|
||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path>
|
||
</svg>
|
||
</button>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<!-- 表格行 6 -->
|
||
<tr class="hover:bg-[#252525]">
|
||
<td class="px-4 py-4">
|
||
<input type="checkbox" class="rounded bg-gray-700 border-gray-600">
|
||
</td>
|
||
<td class="px-4 py-4">
|
||
<span class="px-2 py-1 bg-cyan-900/30 text-cyan-400 text-xs rounded-full">经验</span>
|
||
</td>
|
||
<td class="px-4 py-4 text-sm text-gray-300 max-w-xl">
|
||
对于代码生成或文件写入类任务,应要求模型一次性完整输出或按模块批量输出,避免分批次的小幅输出导致迭代次数过多、执行效率低下。
|
||
<div class="text-xs text-gray-500 mt-1">主体: 代码生成策略 · 属性: 错误教训</div>
|
||
</td>
|
||
<td class="px-4 py-4">
|
||
<span class="text-amber-400 font-medium">0.80</span>
|
||
</td>
|
||
<td class="px-4 py-4 text-sm text-gray-400">3/10 12:34</td>
|
||
<td class="px-4 py-4">
|
||
<div class="flex space-x-2">
|
||
<button class="text-gray-400 hover:text-white">
|
||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path>
|
||
</svg>
|
||
</button>
|
||
<button class="text-red-400 hover:text-red-300">
|
||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path>
|
||
</svg>
|
||
</button>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<!-- 底部文本区域 -->
|
||
<div class="mt-6 px-4 text-gray-400 text-sm">
|
||
<div class="mb-2">任务执行复盘发现问题:## 任务执行分析</div>
|
||
<div class="mb-2">### 问题诊断</div>
|
||
<div class="mb-2">**核心问题:模型在9次迭代中未执行任何工具调用**</div>
|
||
<div>从迭代记录看,前9次迭代工具调用数均为0,说明模型一直在"空转"生成文字,未实际搜索最新数据。直到第10次才产出完整报告(包含2025年9月销量等最新数据),说明最后一次才真正调用了搜索工具。</div>
|
||
</div>
|
||
</div>
|
||
</template>
|
||
|
||
<script setup>
|
||
// 这里可以添加交互逻辑
|
||
</script>
|
||
|
||
<style scoped>
|
||
/* 自定义滚动条 */
|
||
::-webkit-scrollbar {
|
||
width: 8px;
|
||
height: 8px;
|
||
}
|
||
::-webkit-scrollbar-track {
|
||
background: #1a1a1a;
|
||
}
|
||
::-webkit-scrollbar-thumb {
|
||
background: #333;
|
||
border-radius: 4px;
|
||
}
|
||
::-webkit-scrollbar-thumb:hover {
|
||
background: #444;
|
||
}
|
||
</style> |