AGENT SKILL

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

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 response source_nodes contract.

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

  1. Confirm current_state.cache.agent exists. If not, route the user back to the builder flow.
  2. 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.
  3. Inspect sources using the response's source_nodes when available. Text sources are displayed as IDs and full metadata content; image sources are displayed from metadata["file_path"].
  4. If source evidence is absent or weak, debug retrieval/data/index settings before treating it as a UI problem.
  5. 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_messages with "Ask me a question!".
  • It only enables chat when the selected cache has a live generated agent.
  • display_sources splits response.source_nodes into image and text nodes.
  • Image nodes need a local file_path metadata value; text nodes use MetadataMode.ALL to 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

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351