Files
nexus/wiki/concepts/QueryWorkflow.md
2026-05-03 05:42:12 +08:00

33 lines
1.3 KiB
Markdown
Raw 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.
---
title: "QueryWorkflow"
type: concept
tags: [workflow, knowledge-management, llm]
sources: [llm-wiki]
last_updated: 2026-05-02
---
## Overview
查询工作流Query Workflow是 [[PersistentWiki]] 的核心运营模式之一——用户就 Wiki 中的内容提出问题LLM 搜索相关页面、综合整理答案并以 wikilink 形式引用来源。
## Standard Process4步
1. **读取 Index**:读取 `wiki/index.md`,确定相关页面
2. **读取相关页面**:读取这些页面的具体内容
3. **综合生成答案**:以 `[[页面名]]` wikilink 形式内联引用来源
4. **询问是否归档**:询问用户是否将答案保存为 `wiki/syntheses/<slug>.md`
## Answer Formats
答案可以呈现不同形式:
- Markdown 页面
- 对比表格
- 幻灯片Marp
- 图表matplotlib
- 画布Canvas
## Key Insight
**好的答案可以归档回 Wiki 作为新页面。** 用户提出的对比、分析、发现的关联——这些都很有价值,不应该消失在聊天记录中。探索结果与摄入来源一样复合积累到知识库中。
## Design Principles
- **Index-first**:先读索引找相关页面,而非直接全文搜索
- **引文驱动**:所有答案以 wikilink 形式引用来源页
- **知识沉淀**:探索结果是第二等重要的知识来源,仅次于摄入的原始来源