rag-quality
RAG 시스템 품질 평가 및 개선을 위한 스킬입니다. RAGAS 기반 LLM-as-Judge 평가, 사용자 페르소나 시뮬레이션, 합성 데이터 생성, 평가 결과 저장 및 분석 기능을 제공합니다.
npx skills add majiayu000/claude-skill-registry --skill rag-quality-backup-dir --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 Quality Evaluation Skill RAG 시스템의 품질을 평가하고 개선하기 위한 포괄적인 스킬입니다. ## 핵심 기능 ### 1. RAGAS 기반 자동 평가 ```python from src.rag.domain.evaluation import RAGQualityEvaluator from src.rag.infrastructure.storage import EvaluationStore # 평가기 초기화 evaluator = RAGQualityEvaluator(judge_model="gpt-4o") store = EvaluationStore() # 단일 턴 평가 result = evaluator.evaluate_single_turn( query="휴학 절차가 어떻게 되나요?", contexts=["학칙 제15조에 따르면..."], answer="학칙 제15조에 따라 휴학 신청은..." ) # 결과 저장 및 분석 store.save_evaluation(result) print(f"전체 점수: {result.overall_score:.2f}") print(f"합격 여부: {result.passed}") ``` ### 2. 사용자 페르소나 테스트 ```python from src.rag.domain.evaluation.personas import PersonaManager persona_mgr = PersonaManager() # 특정 페르소나로 테스트 freshman_queries = persona_mgr.generate_queries( persona="freshman", count=10, topic="휴학" ) # 모든 페르소나로 통합 테스트 all_queries = persona_mgr.generate_all_personas_queries( queries_per_persona=5 ) ``` ### 3. 합성 테스트 데이터 생성 ```python from src.rag.domain.evaluation.synthetic_data import SyntheticDataGenerator from src.rag.infrastructure.json_loader import JSONDocumentLoader loader = JSONDocumentLoader("data/output/규정집.json") generator = SyntheticDataGenerator(loader) # 문서에서 질문 자동 생성 que
- 핵심 기능
- 1. RAGAS 기반 자동 평가
- 2. 사용자 페르소나 테스트
- 3. 합성 테스트 데이터 생성
- 4. 평가 결과 분석
- 워크플로우
- 기준선 평가 실행
- 개선 루프 실행
- 대시보드 실행
- 4가지 핵심 메트릭
- 사용자 페르소나
- 출력 파일
uv run python -c " from src.rag.domain.evaluation import RAGQualityEvaluator from src.rag.domain.evaluation.personas import PersonaManager from src.rag.infrastructure.storage import EvaluationStore evaluator = RAGQualityEvaluator() store = EvaluationStore() persona_mgr = PersonaManager() for persona_id in persona_mgr.list_personas(): queries = persona_mgr.generate_queries(persona_id, count=5) for query in queries:
What does the rag-quality skill do?
RAG 시스템 품질 평가 및 개선을 위한 스킬입니다. RAGAS 기반 LLM-as-Judge 평가, 사용자 페르소나 시뮬레이션, 합성 데이터 생성, 평가 결과 저장 및 분석 기능을 제공합니다.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill rag-quality-backup-dir --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 majiayu000/claude-skill-registry, a repository with 534 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.
