Skip to main content

QA Prompts

qa_boxed

签名
功能 基础问答 Prompt。 加载指定 Jinja2 模板,将问题列表中的每个问题渲染为 Prompt。 模板变量: {{ question }}

qa_boxed_multiple_choice

签名
功能 多选问答 Prompt。 自动将选项列表格式化为 “A: …, B: …” 的形式并注入模板。 模板变量: {{ question }}, {{ choices }}

qa_rag_boxed

签名
功能 标准 RAG Prompt。 将检索到的段落列表拼接后注入模板。 模板变量: {{ question }}, {{ documents }}

qa_rag_boxed_multiple_choice

签名
功能 带检索上下文的多选问答 Prompt。 模板变量: {{ question }}, {{ documents }}, {{ choices }}

RankCoT Prompts

RankCoT_kr

签名
功能 RankCoT 第一阶段:知识检索 (Knowledge Retrieval) Prompt。 模板变量: {{ question }}, {{ documents }}

RankCoT_qa

签名
功能 RankCoT 第二阶段:基于思维链的问答 Prompt。 模板变量: {{ question }}, {{ CoT }} (此处 CoT 通常为上一阶段生成的知识)

IRCoT Prompts

ircot_next_prompt

签名
功能 IRCoT (Interleaved Retrieval CoT) 迭代 Prompt 生成。 根据历史轮次的检索结果和思维链,构建下一轮的 Prompt。支持单轮与多轮历史拼接。 模板变量: {{ documents }}, {{ question }}, {{ cur_answer }}

WebNote Prompts

webnote_init_page

签名
功能 WebNote Agent:初始化笔记页面。 模板变量: {{ question }}, {{ plan }}

webnote_gen_plan

签名
功能 WebNote Agent:生成搜索计划。 模板变量: {{ question }}

webnote_gen_subq

签名
功能 WebNote Agent:生成子问题。 模板变量: {{ question }}, {{ plan }}, {{ page }}

webnote_fill_page

签名
功能 WebNote Agent:根据检索结果填充笔记。 模板变量: {{ question }}, {{ plan }}, {{ sub_question }}, {{ docs_text }}, {{ page }}

webnote_gen_answer

签名
功能 WebNote Agent:基于笔记生成最终答案。 模板变量: {{ question }}, {{ page }}

Search-R1 & R1-Searcher

search_r1_gen

签名
功能 适用于 R1 风格的生成 Prompt。 截取 Top-3 检索段落注入上下文。 模板变量: {{ history }}, {{ answer }}, {{ passages }}

r1_searcher_gen

签名
功能 适用于 R1 Searcher 的生成 Prompt。 截取 Top-5 检索段落。 模板变量: {{ history }}, {{ answer }}, {{ passages }}

Search-o1 Prompts

search_o1_init

签名
功能 Search-O1 初始推理 Prompt。 模板变量: {{ question }}

search_o1_reasoning_indocument

签名
功能 Search-O1 推理细化 Prompt。 将历史推理步骤(首步 + 末尾3步)与当前检索文档合并,用于下一步推理。 模板变量: {{ prev_reasoning }}, {{ search_query }}, {{ document }}

search_o1_insert

签名
功能 Search-O1 格式化插入 Prompt。 在 Prompt 中显式插入 <|begin_search_query|> 和搜索结果标记,构造完整的思维链上下文。

EVisRAG & Multi-branch Prompts

gen_subq

签名
功能 Loop/Branch Demo:基于文档生成子问题。 模板变量: {{ question }}, {{ documents }}

evisrag_vqa

签名
功能 多模态 VQA RAG Prompt。 根据检索到的图片数量,在 Prompt 中自动重复插入 <image> Token。 模板变量: {{ question }} (含自动注入的 image tokens)

SurveyCPM Prompts

签名
功能 Survey Agent:决定下一步搜索内容。 解析 JSON 格式的大纲,生成当前大纲的文本描述。 模板变量: {{ user_query }}, {{ current_outline }}, {{ current_instruction }}

surveycpm_init_plan

签名
功能 Survey Agent:初始化大纲规划。 模板变量: {{ user_query }}, {{ current_information }}

surveycpm_write

签名
功能 Survey Agent:撰写具体章节内容。 模板变量: {{ user_query }}, {{ current_survey }}, {{ current_instruction }}, {{ current_information }}

surveycpm_extend_plan

签名
功能 Survey Agent:扩展或修改大纲计划。 模板变量: {{ user_query }}, {{ current_survey }}

参数配置

servers/prompt/parameter.yaml