rag-and-acceleration
Operate CoRAG chain-of-retrieval augmented generation and LLMA reference-based lossless decoding workflows.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- rag-and-acceleration
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Operate CoRAG chain-of-retrieval augmented generation and LLMA reference-based lossless decoding workflows.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/corag-workflows.md6.3 KB
- 参考文档references/llma-reference-decoding.md4.8 KB
- 参考文档references/troubleshooting.md4.9 KB
03 SKILL.md 正文
rag-and-acceleration
Use this sub-skill when the user asks about either of these LMOps workflow families:
- CoRAG: chain-of-retrieval augmented generation for multihop QA using an E5 search server, a vLLM OpenAI-compatible server, a CoRAG-tuned Llama model, and evaluation metrics.
- LLMA: reference-based lossless decoding acceleration when generated text overlaps retrieved documents, multi-turn context, or other reference passages.
Do not use this sub-skill for generic LLM serving, unrelated vLLM deployments, or in-context-example retriever training. Route retriever training, prompt pools, UPRISE, SE2, CED-ICL, and LLM Retriever work to ../example-retrieval/SKILL.md.
Operating route
- Classify the request:
- CoRAG service/evaluation orchestration: use
references/corag-workflows.md, then run the bundled plannerscripts/corag_service_plan.pyto produce a safe checklist before any external command is attempted. - LLMA acceleration fit, algorithm explanation, or small sanity check: use
references/llma-reference-decoding.md, then runscripts/llma_overlap_demo.pyon a tiny reference/target sample if the user needs an overlap demonstration. - Failures or ambiguous runtime symptoms: use
references/troubleshooting.mdfirst, then return to the relevant workflow reference.
- CoRAG service/evaluation orchestration: use
- Keep heavy operations explicit. CoRAG end-to-end inference expects model/data downloads, long-running servers, CUDA GPUs, and two occupied local ports. LLMA experiments expect converted LLaMA-family weights and a GPU for real model timing.
- Treat the bundled scripts as planning and demonstration utilities only. They do not download data, start servers, import repository code, load models, or run evaluation.
- For CoRAG, verify service order before evaluation: embeddings staged -> E5 server ready -> vLLM server ready with the intended model -> multihop QA inference.
- For LLMA, verify the lossless assumption: copied spans are only accepted after model verification. If references do not overlap likely generations, LLMA may add overhead rather than speed.
Bundled reference map
references/corag-workflows.md: CoRAG datasets/models, server order, ports/logs, inference flags, outputs, and metrics.references/llma-reference-decoding.md: LLMA algorithm, CLI parameters, data expectations, and fit criteria for RAG or multi-turn settings.references/troubleshooting.md: missing data/model/embeddings, E5/vLLM ordering, port/log issues, hardware notes, decode path length, metrics JSON, and reference-overlap assumptions.
Bundled scripts
scripts/corag_service_plan.py: prints a safe service/evaluation checklist and command concepts for CoRAG without executing anything.scripts/llma_overlap_demo.py: CPU-only toy demonstration of reference-overlap proposal and verification behavior without importing repository code.
Verification status
Creation-time verification for this sub-skill is static and CPU-only. End-to-end CoRAG server startup, model downloads, vLLM serving, E5 retrieval over full embeddings, and LLMA GPU timing are documented but not claimed as executed by this skill.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.