원클릭으로
search-improver
Iterative retrieval diagnosis, corpus construction, experiment execution, and regression-gated improvement for RAG search.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Iterative retrieval diagnosis, corpus construction, experiment execution, and regression-gated improvement for RAG search.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | search-improver |
| description | Iterative retrieval diagnosis, corpus construction, experiment execution, and regression-gated improvement for RAG search. |
Iteratively diagnoses retrieval failures, builds controlled sub-100-doc corpora, runs deterministic ingestion + retrieval experiments, proposes validated improvements, and tracks experiments locally with regression gates.
Activate this skill when the user asks about:
Every engagement MUST follow this cycle. Do not skip steps.
Plan -> Instrument -> Experiment -> Reflect -> Queue next round (or stop)
All scripts live in the scripts/ directory relative to this skill.
| Script | Purpose |
|---|---|
build_corpus.py | Build curated, synthetic, or fixture corpora for controlled experiments |
run_experiment.py | Run ingestion + retrieval experiments end-to-end |
build_metrics.py | Derive aggregate metrics (MRR, recall, precision) and per-query traces |
compare_baseline.py | Compare current metrics against a baseline; enforce regression gate |
bootstrap_round.py | Create or update beads round tasks for campaign tracking |
These existing repo modules MUST be used rather than reimplemented:
scripts/ingest_obsidian_vault.py -- vault ingestion pipelinescripts/run_search_eval.py -- search evaluation runnersrc/catalog/catalog/eval/harness.py -- evaluation harnesssrc/catalog/catalog/eval/golden.py -- golden dataset managementsrc/catalog/catalog/search/service.py -- search servicesrc/catalog/catalog/search/models.py -- search models and typesEach experiment MUST be stored in a dated, slugged directory:
experiments/<YYYY-MM-DD>/<slug>/
spec.md -- Hypothesis, parameters, and expected outcomes (write before running)
run.json -- Execution metadata (written by run_experiment.py)
metrics.json -- Aggregated metrics (written by run_experiment.py, enriched by build_metrics.py)
results.jsonl -- Per-query retrieval results (written by run_experiment.py)
trace.jsonl -- Per-result rank traces (written by run_experiment.py)
recommendations.md -- Evidence-backed improvement proposals (write after reflecting)
diff.patch -- Code changes or commit references (capture after implementing)
# 1. Build corpus
uv run python scripts/build_corpus.py synthetic --output-dir /tmp/corpus --seed 42
# 2. Run experiment
uv run python scripts/run_experiment.py \
--corpus-dir /tmp/corpus \
--output-dir experiments/2026-02-15/heading-bias-v1 \
--slug heading-bias-v1
# 3. Enrich metrics (adds nDCG@k, heading-dominance rate)
uv run python scripts/build_metrics.py enrich \
--experiment-dir experiments/2026-02-15/heading-bias-v1
# 4. Compare against baseline
uv run python scripts/compare_baseline.py \
--current experiments/2026-02-15/heading-bias-v1/metrics.json \
--baseline reports/evals/baselines/latest.json
# 5. View summary
uv run python scripts/build_metrics.py summary \
--experiment-dir experiments/2026-02-15/heading-bias-v1
src/catalog/tests/corpus/vault-smallsrc/catalog/tests/rag_v2/fixtures/golden_queries.jsonexperiments/ directory at repo rootreports/evals/ directory at repo root