question-answering
Routes KAG solver, query, trace, and reasoner workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- question-answering
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Routes KAG solver, query, trace, and reasoner workflows.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md2.1 KB
- 参考文档references/troubleshooting.md3.2 KB
- 参考文档references/workflows.md2.3 KB
- 脚本scripts/inspect_solver_config.py6.9 KB
03 SKILL.md 正文
Question Answering
Use this sub-skill when the user already has a KAG project and wants to ask questions, inspect traces, or understand which solver pipeline is active.
Triggers
Common requests include:
- run or debug a KAG query pipeline
- choose between
index_pipeline,kag_static_pipeline,kag_iterative_pipeline,naive_rag_pipeline,naive_generation_pipeline,self_cognition_pipeline, ormcp_pipeline - use
knext reasoner executeorknext thinker execute - diagnose
UNKNOWNanswers, missing references, or planner/executor confusion - inspect solver-side config before a live query run
Start here
- Read
references/workflows.mdfor the query flow and CLI usage. - Use
scripts/inspect_solver_config.pyto summarize the active solver config. - Read
references/api-reference.mdwhen you need signatures, pipeline names, or themain_solver.pycall shape. - Read
references/troubleshooting.mdwhen answers are empty, traces are missing, or the wrong pipeline is selected.
What belongs here
This sub-skill owns the tasks that turn a built KAG project into answers and traces:
SolverMain.invokeandSolverMain.ainvoke- query-time pipeline selection
knext reasoner executewith either--dslor--fileknext thinker execute- solver config inspection and answer-trace troubleshooting
What does not belong here
- Project creation, schema commit, or builder configuration goes to
knowledge-construction. - MCP server launch, distributed submission, and benchmark planning go to
mcp-and-automation. - Cross-cutting install/import issues go to the root troubleshooting files.
Bundled helper
scripts/inspect_solver_config.py— prints a redacted summary of the solver and retrieval config.
Working rule
If the query workflow depends on a builder problem, check the builder/index state before trying to fix the solver. If the question is citation-sensitive, prefer a route that can emit references instead of a generation-only path.
Common decisions
- If the answer is
UNKNOWN, check retrieval coverage before changing the generator. - If the trace has no references, verify that the chosen pipeline is an evidence-backed one.
- If
knext reasoner executeis being used, confirm that exactly one of--dslor--fileis supplied. - If the config has multiple pipeline selectors, confirm which key actually wins in that project.
- If a query depends on MCP tools, validate the tool config before treating the solver as broken.
What a good answer should include
- the active pipeline and why it matches the user's question
- the query-time config keys that control the route
- whether the missing evidence comes from the builder side or the solver side
- the next safe command or config edit to try
- any conditions that would make the query path unsuitable without rebuilding the project
Stop conditions
Stop and ask for confirmation when the fix would:
- require a new project build or schema commit
- need an external server or model service that is not available
- change the query route in a way that could alter expected citations
- rely on a custom component that has not been imported into the project
Bundled helper
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).