Skip to content
cccskills
FreePublished on GitHub

rag-query-transformation

Query expansion, HyDE, and multi-query generation for improved retrieval

The English summary is being prepared. Showing the original description.

See how to install

Files included (2)

  • SKILL.md1.6 KB
  • README.md556 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

RAG Query Transformation Skill

Capabilities

  • Implement query expansion techniques
  • Configure Hypothetical Document Embeddings (HyDE)
  • Set up multi-query generation
  • Design query decomposition strategies
  • Implement step-back prompting
  • Configure query routing for specialized indices

Target Processes

  • advanced-rag-patterns
  • knowledge-base-qa

Implementation Details

Transformation Techniques

  1. Multi-Query Generation: Generate query variations
  2. HyDE: Generate hypothetical answer, embed that
  3. Query Decomposition: Break complex queries into sub-queries
  4. Step-Back Prompting: Generate higher-level queries
  5. Query Expansion: Add synonyms and related terms

Configuration Options

  • Number of query variations
  • LLM for query generation
  • Decomposition depth
  • Query routing rules
  • Result fusion strategy

Best Practices

  • Match technique to query complexity
  • Test with representative queries
  • Monitor retrieval quality changes
  • Balance latency vs quality tradeoffs

Dependencies

  • langchain
  • LLM provider

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Provide implementations of advanced data structures

The English summary is being prepared. Showing the original description.

a5c-ai/babysitter1.9KUpdated Sep 17, 2026

Fresh adversarial code review with binary PASS/FAIL verdicts, evidence citations, and anchoring bias prevention via fresh reviewer spawning.

The English summary is being prepared. Showing the original description.

a5c-ai/babysitter1.9KUpdated Sep 17, 2026

WASM-based instant code transforms for simple tasks, achieving 352x speedup over LLM inference with zero cost.

The English summary is being prepared. Showing the original description.

a5c-ai/babysitter1.9KUpdated Sep 17, 2026

Coordinate Crew (persistent) and Polecat (transient) agents using Gas Town's hook-based work distribution and GUPP principle.

The English summary is being prepared. Showing the original description.

a5c-ai/babysitter1.9KUpdated Sep 17, 2026

Generate visual representations of algorithm execution

The English summary is being prepared. Showing the original description.

a5c-ai/babysitter1.9KUpdated Sep 17, 2026

Hierarchical coordination and drift detection with frequent checkpoints, shared memory coherence validation, role specialization enforcement, and short task cycles.

The English summary is being prepared. Showing the original description.

a5c-ai/babysitter1.9KUpdated Sep 17, 2026

See all skills by a5c-ai

Report a problem with this skill