reindex-gold
Rebuild ChromaDB Gold layer indexes after source data changes. Invoke manually — deletes and recreates collections, do NOT trigger automatically.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Rebuild ChromaDB Gold layer indexes after source data changes. Invoke manually — deletes and recreates collections, do NOT trigger automatically.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run the LangSmith evaluation suite and display pass/fail results
Add a new LangChain tool to the Medox ReAct agent. Use when creating a new tool file, registering it in the graph, and writing its test.
Create a git commit with Medox conventions (co-author, conventional type/scope). Invoke manually with /commit — do NOT trigger automatically.
Audit code changes on the current branch and update docs/ + .claude/rules/ to stay in sync. Run before /pr.
Create or update a GitHub pull request following Medox conventions (author spicode-bot, reviewer spideystreet). Invoke manually with /pr — do NOT trigger automatically.
Fetch and display the full status of the current PR — CI checks, GitHub Actions runs, reviews, and code comments — using GitHub MCP tools. Invoke manually with /pr-status.
| name | reindex-gold |
| description | Rebuild ChromaDB Gold layer indexes after source data changes. Invoke manually — deletes and recreates collections, do NOT trigger automatically. |
| disable-model-invocation | true |
Use when: BDPM/ANSM source data has changed, Silver models were updated, or ChromaDB collections are missing/stale.
Ensure Docker stack is running:
docker compose up -d
docker ps # verify chromadb and postgres containers are healthy
Ensure Silver is up to date (run if source data changed):
uv run dotenv -f dbt/.env run -- uv run dbt run --project-dir dbt --profiles-dir dbt
uv run dotenv -f dbt/.env run -- uv run dbt test --project-dir dbt --profiles-dir dbt
Materialize the Gold asset:
uv run dotenv -f .env run -- uv run dagster asset materialize --select gold_embeddings
Verify collections via chromadb-inspector agent or directly:
uv run dotenv -f .env run -- python -c "
import chromadb, os
c = chromadb.HttpClient(host=os.environ['CHROMA_HOST'], port=int(os.environ['CHROMA_PORT']))
for name in ['idx_bdpm_medicament_v1', 'idx_ansm_interaction_v1']:
print(name, c.get_collection(name).count())
"
Smoke-test the agent tools:
uv run dotenv -f .env run -- python -c "
from medox.agent.tools.tool_search_drug import search_drug
from medox.agent.tools.tool_check_interactions import check_interactions
print(search_drug.invoke({'query': 'doliprane'}))
print(check_interactions.invoke({'substance_a': 'warfarine', 'substance_b': 'ibuprofene'}))
"
| Collection | Content | Rebuilt from |
|---|---|---|
idx_bdpm_medicament_v1 | Drug denominations + metadata | silver_bdpm__medicament |
idx_ansm_interaction_v1 | ANSM interaction pairs | silver_ansm__interaction |
gold_embeddings fails: check CHROMA_HOST/CHROMA_PORT in .env and Docker status