rag-query-transformation
Query expansion, HyDE, and multi-query generation for improved retrieval
npx skills add a5c-ai/babysitter --skill rag-query-transformation --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Capabilities
- Target Processes
- Implementation Details
- Transformation Techniques
- Configuration Options
- Best Practices
- Dependencies
What does the rag-query-transformation skill do?
Query expansion, HyDE, and multi-query generation for improved retrieval
How do I install it?
Run `npx skills add a5c-ai/babysitter --skill rag-query-transformation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
