-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.clinerules
More file actions
53 lines (46 loc) · 2.57 KB
/
.clinerules
File metadata and controls
53 lines (46 loc) · 2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# CRITICAL EVALUATION REQUIREMENTS
## Database Interaction Rules
- NO MOCKS, NO FALLBACKS, ONLY REAL DATABASE INTERACTION
- FAIL IF NO DATABASE CONNECTION AVAILABLE
- All pipeline evaluations MUST use actual IRIS database
- All evaluations MUST execute real pipelines with real data
- Mock modes are STRICTLY FORBIDDEN for production evaluations
## IRIS Database is FOUNDATIONAL - NO DEV/PROD DISTINCTION
- RAG systems are fundamentally database-dependent - RAG CANNOT WORK WITHOUT A DATABASE
- IRIS database availability is REQUIRED in ALL environments (dev, test, prod)
- There is NO distinction between development and production regarding database availability
- A RAG system without database access is a non-functional system
- Database unavailability = SYSTEM FAILURE, not "expected in development"
- Any code suggesting database absence is "normal" in development is ARCHITECTURALLY INCORRECT
## DOCKER INFRASTRUCTURE - EXTENSIVE STARTUP/TEARDOWN AUTOMATION
- Project has COMPLETE Docker infrastructure for IRIS database management
- Use `make docker-up` or `docker-compose up -d` to START IRIS container
- Use `make docker-down` or `docker-compose down` to STOP IRIS container
- Use `make docker-logs` to view container logs for debugging
- Files: docker-compose.yml (community), docker-compose.licensed.yml (enterprise)
- Container management utilities in tests/utils/ for automated lifecycle
- Makefile provides standardized commands for all Docker operations
- ALWAYS check if IRIS container is running before executing evaluations
- Connection failure means container is NOT STARTED, not missing infrastructure
## Pipeline Execution Rules
- Execute TRUE 10K+ document evaluations
- Use actual PMC biomedical documents
- Run complete RAGAS evaluation metrics
- Generate empirical statistical results
- All pipelines must be fully operational or evaluation fails
## PMC Document Requirements
- ONLY REAL PMC DOCUMENTS from PubMed Central
- NO synthetic or generated documents
- Minimum 1000+ real PMC documents for full evaluation
- Use PMC XML format with proper metadata
- Download from official PMC sources only
## Development Rules
- MUST perform codebase_search before creating any non-trivial new code file
- Search for existing implementations before writing new code
- Reuse and extend existing infrastructure when available
- Follow clean architecture and modular design principles
## No Compromises
- If database is not available, evaluation MUST FAIL
- If pipelines cannot connect, evaluation MUST FAIL
- No simulation, no approximation, no shortcuts
- Only real, production-quality evaluation results