Saved Evidence slices · 已保存的证据切片
A reviewer can save a frequently used Evidence query and run it again against the current data. For example, choose Find pedestrian annotation gaps, then open Saved slices → Save current query and name the slice. Each browser origin (scheme, host and port) keeps a separate collection for each dataset ID.
- Reopen a review. After refreshing or returning to Evidence, choose the original dataset. Open Saved slices, choose a name and press Load slice. Loading restores all ten filter values and sends a fresh first-page query, even if the filters already match. The previous cursor and checked samples are cleared.
- Manage names. Select a saved slice to rename or delete it. Deletion requires confirmation. Editing filters on the page leaves the saved recipe intact.
- Exchange a recipe. Select Export JSON and copy the selected text. In the receiving browser, open the same dataset, choose Import JSON, paste the text and press Import slice. Import adds the recipe to the list. Load slice runs it when you are ready.
在证据页调整筛选和排序后,展开 已保存的切片 → 保存当前查询 并命名。刷新页面或重新打开证据页后,选择同一数据集,选中切片并点击 加载切片。页面会从第一页读取当前数据,同时清空此前勾选的样本。即使筛选条件相同,再次加载也会重新查询。
选中切片即可重命名、删除或导出 JSON。要在另一个浏览器复用,打开相同 ID 的数据集,粘贴 JSON 并点击 导入切片。导入期间可继续当前审查,准备好后再加载。键盘可用 Tab 移动、Enter 激活按钮、Esc 退出编辑,导出文本已全选,可直接复制。
Recipe format · 配方格式
Each JSON document carries one versioned recipe. The browser stores its name, dataset ID, schema version and filters. Sample payloads, cursors, selection members, grants, approval decisions and receipts stay outside the recipe. Results can change as evidence changes. Loading uses the existing read-only POST /api/evidence/query endpoint. Review actions still require an explicit selection and the usual version checks and approvals.
{
"schemaVersion": 1,
"datasetId": "dataset-1",
"name": "行人 · café 🔎",
"filters": {
"concept": "person",
"presence": "present",
"scene": "",
"sceneState": "present",
"gap": "missing",
"near": "train",
"split": "val",
"qualityMin": 0,
"qualityMax": 100,
"sort": "review"
}
}
| Fields | Accepted values |
|---|---|
concept, scene |
Unicode text. An empty string skips the corresponding predicate. |
presence, sceneState |
present, absent, unknown. Both are retained even when their predicate is empty. |
gap |
Empty string, missing, present, unknown |
near, split |
Empty string, train, val, test |
qualityMin, qualityMax |
Finite numbers. Both endpoints are inclusive and must satisfy 0 ≤ minimum ≤ maximum ≤ 100. |
sort |
review, filename, quality |
All fields are required. Import checks the exact field lists, enum values, schema version and dataset ID before changing the collection. The defaults are 50 slices per dataset, 80 Unicode code points per name and 64 KiB per import, counted in UTF-8 including whitespace. Names must contain a non-whitespace character and are unique within each dataset. Case, accents and surrounding spaces are preserved. These local limits are defined in sliceSchema.ts.
Storage and recovery · 存储与恢复
Saved slices use the local storage key datakeel.evidence.slices:<datasetId>. A failed operation leaves the active filters, page and selection usable. If storage is blocked, allow storage for this site and retry. If it is full, export an existing slice for safekeeping, delete it to free space, then retry the save. If the collection is damaged, retry reading it first. Clear damaged slices asks for confirmation and clears only the damaged collection for the current dataset. A previously exported recipe can then be imported again.
每个数据集默认最多保存 50 条,名称最多 80 个 Unicode 码点,导入 JSON 最多 64 KiB。名称重复、字段不合法、版本或数据集不匹配都会显示错误。空间不足时,可先导出需要保留的切片,再删除以腾出空间。存储损坏时可先重试,再按需确认清除当前数据集的切片,从备份重新导入。清理浏览器的站点数据也会移除该站点保存的切片。
Browser walkthrough · 浏览器走查
With two generated fixture datasets in local Chrome, the saved query survived a page reload. Loading it from page two cleared the selection, issued the original first-page parameters and displayed updated sample data. Exporting, deleting and re-importing preserved the Unicode recipe. Importing the same JSON in the second dataset displayed the Chinese recovery message and left the collection empty. The browser recorded no backend writes during these steps.

