Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

retrieval-search-orchestration

БесплатноБез исполняемых скриптовНе проверен

Designs retrieval strategies for querying knowledge graphs in RAG systems, covering pattern selection (global-first, local-first, U-shaped hybrid), query…

lyndonklот lyndonkl★ 208 звёзд на GitHub

Об этом скилле

Table of Contents

Retrieval & Search Orchestration

Workflow

Copy this checklist and work through each step:

  • 1. Analyze query types and requirements
  • 2. Select retrieval pattern
  • 3. Design query decomposition strategy
  • 4. Configure ranking and constraints
  • 5. Design provenance tracking
  • 6. Define fallback strategies
  • 7. Produce retrieval strategy specification

Step Descriptions

Step 1: Analyze Query Types and Requirements

Classify the queries your system must handle. Common categories include:

  • Factoid lookups: single-entity, single-hop (e.g., "What is the capital of France?")
  • Exploratory/thematic: broad questions requiring aggregation across many entities (e.g., "What are the main themes in this corpus?")
  • Multi-hop reasoning: questions requiring traversal of multiple relationships (e.g., "Which drugs treat diseases caused by gene X?")
  • Temporal queries: questions bounded by time ranges or requiring sequence understanding
  • Constrained queries: questions with type or attribute filters (e.g., "List all clinical trials after 2020 for drug Y")

Identify the distribution of these query types in your use case to guide pattern selection.

Step 2: Select Retrieval Pattern

Use the Retrieval Pattern Selection Guide below to choose the right approach for your query distribution. See resources/methodology.md for detailed implementation guidance on each pattern.

Step 3: Design Query Decomposition Strategy

For complex queries, break them into sub-queries that can be independently resolved and then aggregated. Approaches include LLM-as-controller decomposition, self-ask chains, and ReAct-style interleaved reasoning and retrieval. See the Query Decomposition Patterns section below and resources/methodology.md for details.

Step 4: Configure Ranking and Constraints

Define how retrieved results are scored, ranked, and filtered:

  • Embedding similarity thresholds
  • Graph distance penalties
  • Type-based pre-filters or post-filters
  • Confidence score minimums
  • Temporal decay functions for time-sensitive data

Step 5: Design Provenance Tracking

Ensure every piece of retrieved information carries metadata about its origin. This includes source document IDs, extraction timestamps, confidence scores, and evidence chain construction. See resources/provenance-patterns.md for annotation approaches, confidence scoring, and LLM integration patterns.

Step 6: Define Fallback Strategies

Design what happens when primary retrieval fails or returns insufficient results:

  • Iterative deepening (expand hop count)
  • Query relaxation (remove constraints progressively)
  • Parallel exploration (try multiple patterns simultaneously)
  • Graceful degradation (return partial results with confidence indicators)

Step 7: Produce Retrieval Strategy Specification

Compile the full specification using the Output Template below.


Retrieval Pattern Selection Guide

Pattern Best For Mechanism Trade-offs Section Ref
Global-First Broad thematic queries, corpus-level summaries Community detection, top-down traversal of summarized indexes High-level coverage; may miss specific details 3.1
Local-First Entity-centric lookups, neighborhood exploration Seed entity linking, 1-2 hop neighborhood expansion with embedding gates High precision for known entities; limited scope 3.2
U-Shaped Hybrid Complex queries needing both breadth and depth Coarse-to-fine bidirectional search, top-down then bottom-up refinement Best coverage; higher latency and complexity 3.3
Query Decomposition Multi-hop reasoning, composite questions LLM breaks query into sub-queries, sequential retrieval, aggregation Handles complex questions; depends on decomposition quality 3.4
Temporal Time-bounded or sequence-dependent queries Time-slice filtering, episodic windowing, time-decay ranking Captures temporal dynamics; needs temporal metadata 3.5
Constraint-Guided Type-filtered or rule-bounded queries Pre-filter + vector search, symbolic query then neural re-rank Reduces search space; requires well-typed schema 3.6

Selection heuristic: Start with the dominant query type in your system. If queries are mixed, consider U-Shaped Hybrid as a default with fallback to specialized patterns.


Query Decomposition Patterns

LLM-as-Controller

The LLM receives the original query and generates a plan of sub-queries:

Original: "Which drugs treat diseases linked to mutations in BRCA1?"
Sub-query 1: "What diseases are linked to mutations in BRCA1?"
Sub-query 2: "What drugs treat [diseases from sub-query 1]?"
Полный SKILL.md на GitHub

Установить retrieval-search-orchestration в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

resources/evaluators/rubric_retrieval.jsonresources/methodology.mdresources/provenance-patterns.md

FAQ

Что делает скилл retrieval-search-orchestration?

Designs retrieval strategies for querying knowledge graphs in RAG systems, covering pattern selection (global-first, local-first, U-shaped hybrid), query decomposition for multi-hop reasoning, ranking and constraint configuration, and provenance tracking for citation. Use when designing retrieval pipelines, orchestrating search over knowledge graphs, or when user mentions retrieval strategy, search orchestration, query decomposition, multi-hop reasoning, provenance tracking, or citation in GraphRAG.

Как установить скилл retrieval-search-orchestration?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл retrieval-search-orchestration запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить retrieval-search-orchestration с