[SubgraphRetriever] - retrieve_neighborhood(entity_id, hops): N-hop 이웃 추출 - retrieve_context(entity_ids): 다중 엔티티 공통 경로 검색 - retrieve_induced_subgraph(entity_ids): 유도 부분 그래프 생성 - Cypher 최적화로 2-hop 쿼리 < 200ms [PatternMatcher] - find_paths(start, end, max_length): 경로 탐색 (깊이 우선) - find_cycles(min_length): 순환 의존성 감지 - find_strongly_connected_components(): SCC 분석 - find_motifs(type): 삼각형/체인/별 모티프 검출 - analyze_entity_connectivity(entity_id): 연결 메트릭 [테스트] - test_phase5_subgraph_retriever.py (6 테스트 통과) - test_phase5_pattern_matcher.py (10 테스트 통과) - test_phase5_integration_graphrag.py (6 통합 테스트 통과) Phase 5.2 (Graph Analytics) 준비 완료 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
41 lines
2.9 KiB
JSON
41 lines
2.9 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(Get-ChildItem -Force)",
|
|
"Bash(Select-Object Name, Mode)",
|
|
"Bash(Format-Table)",
|
|
"Bash(pip install *)",
|
|
"Bash(python -c \"import ont_platform; print\\('✓ 패키지 임포트 성공'\\)\")",
|
|
"Bash(python -c \"import ont_platform; print\\('OK'\\)\")",
|
|
"Bash(python ../test_phase0_extraction.py https://example.com)",
|
|
"Bash(python test_phase0_extraction.py https://example.com)",
|
|
"Bash(python test_extraction.py https://example.com)",
|
|
"PowerShell(cd \"$env:USERPROFILE\\\\MyProject\\\\AI\\\\.claude\\\\worktrees\\\\infallible-mayer-01d511\"; python test_extraction.py https://example.com)",
|
|
"Bash(Start-Sleep -Seconds 3)",
|
|
"Bash(curl -X POST \"http://127.0.0.1:8000/api/v1/extract/url?url=https://example.com\" -H \"Content-Type: application/json\")",
|
|
"Bash(ConvertFrom-Json)",
|
|
"Bash(ConvertTo-Json)",
|
|
"Bash(curl -s -X POST \"http://127.0.0.1:8000/api/v1/extract/url?url=https://example.com\" -H \"Content-Type: application/json\")",
|
|
"Bash(curl -s -X POST \"http://127.0.0.1:8000/api/v1/extract/url?url=https://example.com\")",
|
|
"Bash(curl -v http://127.0.0.1:8000/health)",
|
|
"Bash(curl -s http://127.0.0.1:8000/health)",
|
|
"Bash(curl -s -X POST \"http://127.0.0.1:8000/api/v1/extract/url?url=https://en.wikipedia.org/wiki/Python_\\(programming_language\\)\" -H \"Content-Type: application/json\")",
|
|
"Bash(python -m json.tool)",
|
|
"Bash(python)",
|
|
"Bash(python -c \"import crawl4ai; print\\(f'Crawl4AI {crawl4ai.__version__} installed'\\)\")",
|
|
"Bash(python -c \"import sys, json; data=json.load\\(sys.stdin\\); print\\(f'URL: {data[\\\\\"url\\\\\"]}'\\); print\\(f'Title: {data[\\\\\"title\\\\\"]}'\\); print\\(f'Profile: {data[\\\\\"profile_used\\\\\"]}'\\); print\\(f'Entities: {data[\\\\\"entity_count\\\\\"]}'\\); print\\(f'Time: {data[\\\\\"extraction_time_sec\\\\\"]}s'\\)\")",
|
|
"Bash(python -c \"import guardrails; print\\(f'Guardrails {guardrails.__version__} installed'\\)\")",
|
|
"Bash(pip search *)",
|
|
"Bash(python -c \"import sys, json; data=json.load\\(sys.stdin\\); print\\(f'Validation passed: {data[\\\\\"validation_passed\\\\\"]}'\\); print\\(f'Entities: {data[\\\\\"entity_count\\\\\"]}'\\); print\\(f'Relations: {data[\\\\\"relation_count\\\\\"]}'\\); print\\(f'Warnings: {len\\(data[\\\\\"warnings\\\\\"]\\)}'\\)\")",
|
|
"Bash(python -c \"import sentence_transformers, neo4j; print\\(f'sentence-transformers {sentence_transformers.__version__} OK'\\); print\\(f'neo4j {neo4j.__version__} OK'\\)\")",
|
|
"Bash(docker-compose -f docker-compose.neo4j.yml up -d)",
|
|
"Bash(python test_phase4_integration.py)",
|
|
"Bash(git add *)",
|
|
"Bash(git commit *)",
|
|
"Bash(python test_phase5_entity_resolver.py)",
|
|
"Bash(cd /d C:\\\\Users\\\\lasta\\\\MyProject\\\\AI\\\\.claude\\\\worktrees\\\\infallible-mayer-01d511)",
|
|
"Bash(python test_phase5_subgraph_retriever.py)"
|
|
]
|
|
}
|
|
}
|