configuration
Use this RAGs sub-skill to inspect, edit, update, delete, and troubleshoot generated RAG agent configuration and cache state.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- configuration
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use this RAGs sub-skill to inspect, edit, update, delete, and troubleshoot generated RAG agent configuration and cache state.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/cache-registry.md2.4 KB
- 参考文档references/configuration.md2.9 KB
- 参考文档references/troubleshooting.md2.5 KB
- 脚本scripts/inspect_agent_cache.py4.9 KB
03 SKILL.md 正文
RAGs Configuration
Use this sub-skill when a RAGs agent already exists and the task is to inspect or change its settings, understand persisted cache state, recover from stale cache issues, or delete an agent safely.
Read This When
- The user is on the RAG Config page or mentions
Update Agent,Delete Agent,agent_id,top_k,chunk_size,embed_model,llm, or additional tools. - The sidebar shows an agent but loading, updating, or deleting it fails.
- The task involves
AgentCacheRegistry,ParamCache,agent_ids.json,cache.json, or vector-indexstorage. - The app was upgraded and old cache files appear to break launch.
For initial bot construction, read ../builder/SKILL.md.
For asking questions to an existing bot, read ../chat/SKILL.md.
Core Workflow
-
Confirm an agent is selected. The config page only exposes editable controls when the current state has an
agent_builderand cache. -
Inspect current fields: agent ID, system prompt, loaded data summary, summarization flag, additional tools,
top_k,chunk_size, embed model, and LLM. -
Before editing cache files directly, run the read-only inspector:
python sub-skills/configuration/scripts/inspect_agent_cache.py --cache-dir cache/agents -
Use the app's
Update Agentpath for normal changes. It deletes the old cache entry, updates selected fields, reconstructs the agent, and saves the new cache. -
Use the app's delete route for unwanted agents. Manual deletion is a last resort for stale or corrupt cache directories.
Read references/configuration.md for field
semantics and update/delete workflows. Read
references/cache-registry.md before editing or
inspecting persisted cache. Read
references/troubleshooting.md for known
failure modes.
Important Operating Facts
- The cache root is conceptually
cache/agentsrelative to a RAGs checkout. AgentCacheRegistry.get_agent_ids()returns an empty list whenagent_ids.jsonis absent.ParamCache.save_to_diskrequires a vector index and writes both serialized cache metadata and vector-index storage.RAGAgentBuilder.update_agentdeletes the old cache for the current agent ID, sets the requested fields, callsset_rag_params, updates tools when provided, and then callscreate_agent.- Additional tools are currently limited to
web_search.
Safety Boundaries
The bundled cache inspector is read-only. Do not delete cache directories or
rewrite agent_ids.json unless the user explicitly asks for destructive
recovery and understands that generated agents may need to be rebuilt.
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).