소스 정보
- 저장소
- AndrewSmigaj/OpenLLMRI
- 최근 소스 활동
- 2026년 3월 29일 03:02
- 감지된 SKILL.md 언어
- 영어
- 스타
- 5
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/AndrewSmigaj/OpenLLMRI --skill analyze명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | analyze |
| description | Analyze a saved clustering schema — read data, reason about patterns, write reports |
Analyze cluster/route data from a Concept MRI session. This is an LLM reasoning task — read actual sentences, distributions, and route patterns. NO keyword/regex hacks.
Can be invoked as /analyze {session_id} schema {schema_name} window {start}-{end}, e.g.:
/analyze session_1434a9be schema polysemy_explore window 22-23
When invoked with parameters, skip the identification step and go straight to loading the probe guide.
When window is specified, only analyze that window's layers — do NOT process other windows.
Ask the user which session and schema to analyze, or detect from context.
# List available schemas
curl http://localhost:8000/api/probes/sessions/{session_id}/clusterings
From session metadata, get sentence_set_name:
curl http://localhost:8000/api/probes/{session_id}
Then read the probe guide for experiment-specific analysis focus:
glob data/sentence_sets/**/{sentence_set_name}.md
Read the guide carefully — it explains what the probe is testing, what to look for in the data, and how to interpret routing patterns. This context is essential for meaningful labeling.
If a window parameter was given, analyze only that window. Otherwise start with the last-layer window (e.g., [22,23]) and work backward.
For each window, load cached data:
curl -X POST http://localhost:8000/api/experiments/analyze-cluster-routes \
-H "Content-Type: application/json" \
-d '{
"session_id": "...",
"window_layers": [X, Y],
"clustering_schema": "SCHEMA_NAME",
"output_grouping_axes": ["topic"]
}'
Examine the response:
Nodes (clusters): Read label_distribution, category_distributions, and ALL sentences in tokens. The API now returns every sentence in each cluster (no cap). Read them all — don't skip or sample. Understanding the full distribution is critical for accurate labeling.
Links (transitions): Read probability, label_distribution, and ALL link examples. Identify pure vs mixed routes.
Top Routes: Read ALL example_tokens, coverage, avg_confidence. Understand what sentences follow each path.
Output Nodes (if present): Which clusters route to which output categories? Any input/output mismatches?
For routes with confusion or unexpected patterns:
curl "http://localhost:8000/api/experiments/route-details?session_id=...&signature=ROUTE_SIG&window_layers=X,Y"
Read ALL sentences. Identify structural patterns, semantic themes, reasons for misclassification.
Per-window report (see docs/ANALYSIS.md for full template):
# Window L{start}-L{end} Analysis
## Cluster Summary
- **C0** (N probes): [name]. [label] ([purity]%). [description]
## Key Findings
1. [Most striking pattern]
2. [Anomalies]
## Routing Patterns
- [Top route interpretation]
- [Output category correlations]
## Sentence-Level Observations
- [Common patterns in key routes]
- [Why misrouted sentences confuse the model]
curl -X POST http://localhost:8000/api/probes/sessions/{id}/clusterings/{schema}/reports/w_{start}_{end} \
-H "Content-Type: application/json" \
-d '{"report": "..."}'
After analyzing each window, generate 1-2 sentence descriptions for every cluster node and top route visible in that window. These populate the click-to-inspect cards in the frontend.
Approach — comparative, not isolated:
Key format matches frontend descKey:
cluster-{id}-L{layer} (e.g., cluster-3-L22)route-{signature} (e.g., route-L22C3→L23C1)curl -X POST http://localhost:8000/api/probes/sessions/{id}/clusterings/{schema}/element-descriptions \
-H "Content-Type: application/json" \
-d '{"descriptions": {"cluster-3-L22": "Vehicle-dominant cluster...", "route-L22C3→L23C1": "Pure vehicle route..."}}'
Descriptions are merged with any existing ones (safe to call incrementally per window).
Fallback: If the API endpoint returns 404 (WSL2 reload issue — see server TROUBLESHOOTING.md), write directly to disk:
data/lake/{session_id}/clusterings/{schema}/element_descriptions.json
The file is a flat JSON dict of {descKey: description}. Merge with existing content if the file already exists.
IMPORTANT: This step is NOT optional. Every /analyze run MUST produce element descriptions alongside the report. The descriptions populate the click-to-inspect cards in the frontend — without them, users see "No AI description" on every card.
After multiple windows, write a synthesis covering:
Save as POST .../reports/synthesis.