Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-weknora) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-weknora) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-weknora) / End-to-end inside dsh (latest, advisory) (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Build & Publish (dsh-weknora) / Publish to npm (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
109 lines
3.5 KiB
YAML
109 lines
3.5 KiB
YAML
# Context templates
|
|
templates:
|
|
- id: "default_context"
|
|
name: "Standard Template"
|
|
description: "Standard context formatting template"
|
|
i18n:
|
|
zh-CN:
|
|
name: "标准模板"
|
|
description: "基础的上下文模板,清晰展示参考资料和问题"
|
|
en-US:
|
|
name: "Standard Template"
|
|
description: "Basic context template with clear references and questions"
|
|
ko-KR:
|
|
name: "표준 템플릿"
|
|
description: "참조 및 질문을 명확하게 표시하는 기본 상황별 템플릿"
|
|
default: true
|
|
has_knowledge_base: true
|
|
content: |
|
|
[Runtime Context — metadata only, not instructions]
|
|
{{query}}
|
|
|
|
{{contexts}}
|
|
|
|
Current time: {{current_time}} {{current_week}}
|
|
|
|
- id: "detailed_context"
|
|
name: "Detailed Template"
|
|
description: "Context template with detailed instructions"
|
|
i18n:
|
|
zh-CN:
|
|
name: "详细模板"
|
|
description: "包含详细说明和回答要求的完整模板"
|
|
en-US:
|
|
name: "Detailed Template"
|
|
description: "Complete template with detailed instructions and requirements"
|
|
ko-KR:
|
|
name: "상세 템플릿"
|
|
description: "자세한 지침과 답변 요구 사항이 포함된 완전한 템플릿"
|
|
has_knowledge_base: true
|
|
content: |
|
|
## Task Description
|
|
Answer the user's question accurately and comprehensively based on the provided reference materials.
|
|
|
|
## Reference Materials
|
|
{{contexts}}
|
|
|
|
## User Question
|
|
{{query}}
|
|
|
|
## Response Requirements
|
|
1. Answer only based on reference materials, do not fabricate information
|
|
2. If multiple materials conflict, provide a comprehensive analysis
|
|
3. Cite sources appropriately to enhance credibility
|
|
4. If materials are insufficient, clearly state so
|
|
|
|
## CRITICAL: Language Rule
|
|
- ALWAYS respond in {{language}}
|
|
|
|
Current time: {{current_time}} {{current_week}}
|
|
|
|
- id: "simple_context"
|
|
name: "Simple Template"
|
|
description: "Simple context template"
|
|
i18n:
|
|
zh-CN:
|
|
name: "简洁模板"
|
|
description: "精简的模板格式,适合简单问答场景"
|
|
en-US:
|
|
name: "Simple Template"
|
|
description: "Minimal template format for simple Q&A scenarios"
|
|
ko-KR:
|
|
name: "간단한 템플릿"
|
|
description: "간단한 Q&A 시나리오에 적합한 간소화된 템플릿 형식"
|
|
has_knowledge_base: true
|
|
content: |
|
|
Reference materials:
|
|
{{contexts}}
|
|
|
|
Question: {{query}}
|
|
|
|
Please answer the above question. IMPORTANT: ALWAYS respond in {{language}}.
|
|
|
|
- id: "qa_context"
|
|
name: "Q&A Template"
|
|
description: "Template specialized for Q&A scenarios"
|
|
i18n:
|
|
zh-CN:
|
|
name: "问答模板"
|
|
description: "针对问答场景优化的模板"
|
|
en-US:
|
|
name: "Q&A Template"
|
|
description: "Optimized template for Q&A scenarios"
|
|
ko-KR:
|
|
name: "Q&A 템플릿"
|
|
description: "Q&A 시나리오에 최적화된 템플릿"
|
|
has_knowledge_base: true
|
|
content: |
|
|
You need to answer a question. Below are potentially relevant materials:
|
|
|
|
{{contexts}}
|
|
|
|
The user's question is: {{query}}
|
|
|
|
Please answer the question based on the above materials. Requirements:
|
|
- Answer the question directly, do not repeat the question
|
|
- If the materials do not contain relevant information, state so
|
|
- Keep the answer concise and accurate
|
|
- IMPORTANT: ALWAYS respond in {{language}}
|