chat
Use this RAGs sub-skill to query generated RAG agents, inspect text and image sources, and troubleshoot Generated RAG Agent chat behavior.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- chat
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use this RAGs sub-skill to query generated RAG agents, inspect text and image sources, and troubleshoot Generated RAG Agent chat behavior.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/api-reference.md2.6 KB
- 参考文档references/chat-workflow.md3.0 KB
- 参考文档references/troubleshooting.md2.6 KB
03 SKILL.md 正文
RAGs Chat
Use this sub-skill after a RAGs bot has been created and the task is to ask questions, debug generated-agent responses, inspect cited sources, or reason about text and image source display.
Read This When
- The user mentions the Generated RAG Agent page, chat UI,
agent.chat, source nodes, image sources, or missing citations. - The app says the agent is not created even though the user expected one.
- The generated answer is wrong, has no sources, has broken image paths, or appears to ignore summarization/retrieval settings.
- The task involves
get_image_and_text_nodes,MultimodalChatEngine, or the responsesource_nodescontract.
For setup, data loading, or model selection before an agent exists, read
../builder/SKILL.md. For changing an existing agent's
configuration or cache, read ../configuration/SKILL.md.
Core Workflow
- Confirm
current_state.cache.agentexists. If not, route the user back to the builder flow. - Ask the question through the generated agent chat route. The app appends the
user message, calls
agent.chat(str(prompt)), displays the response, and stores the response object in message metadata. - Inspect sources using the response's
source_nodeswhen available. Text sources are displayed as IDs and full metadata content; image sources are displayed frommetadata["file_path"]. - If source evidence is absent or weak, debug retrieval/data/index settings before treating it as a UI problem.
- For model/provider errors, route back to builder/configuration because the chat page uses the agent created from those settings.
Read references/chat-workflow.md for detailed
query and source-display flow. Read
references/api-reference.md for response and
helper behavior. Read references/troubleshooting.md
for known failure symptoms.
Important Operating Facts
- The chat page initializes
agent_messageswith"Ask me a question!". - It only enables chat when the selected cache has a live generated agent.
display_sourcessplitsresponse.source_nodesinto image and text nodes.- Image nodes need a local
file_pathmetadata value; text nodes useMetadataMode.ALLto include metadata in displayed content. - Default agent construction creates a vector search tool and may add a
summarization tool when
include_summarization=True. - External model calls and URL/web-search behavior require credentials and network access; the safe skill verification did not execute them.
Boundaries
Do not promise that a source list exists for every response. Some chat engines
or error paths may not provide source_nodes, and poor retrieval settings can
produce empty or irrelevant sources. Debug the data/index/config route before
rewriting chat UI behavior.
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).