Spaces:
Running
AILIXIR Documentation Structure (Recommended)
Status: Documentation refactoring complete | Last Updated: May 2026
π Overview
The AILIXIR project has been refactored to follow modern open-source documentation standards:
- Concise main README (~800 lines, down from 2500+) focused on high-level overview
- Dedicated documentation files for specific topics
- Service-specific READMEs in each microservice directory
- Clear navigation with links between related documents
π Recommended Documentation File Structure
Root Documentation Files
ailixir-backend/
βββ README.md β
REFACTORED (concise, high-level)
βββ QUICK_START.md π REFERENCED (needs creation/verification)
βββ ARCHITECTURE.md β
EXISTS (link from README)
βββ DOCKER.md β
EXISTS (link from README)
βββ PRODUCTION_GUIDE.md π REFERENCED (needs creation/verification)
βββ TROUBLESHOOTING.md π REFERENCED (needs creation)
βββ API_REFERENCE.md π REFERENCED (needs creation)
βββ CONTRIBUTING.md β
REFERENCED (guidelines included in README)
βββ DOCKER_FIXES.md β
EXISTS (known issues)
βββ LICENSE β
EXISTS
Service Documentation Files
ai_apps/
βββ ADMIT/
β βββ README.md β
UPDATED (training + inference)
β βββ train_ADMET_model.ipynb β
EXISTS
β
βββ Drug Reporposing/
β βββ README.md β
GOOD (keep as-is)
β βββ QUICK_START.md β
EXISTS
β βββ PRODUCTION_GUIDE.md β
EXISTS
β βββ IMPLEMENTATION_SUMMARY.md β
EXISTS
β
βββ chemical-rag-system/
βββ README.md β
UPDATED (v2.1)
π Documentation Files Detail
1. README.md β (Completed)
Purpose: Landing page, high-level overview
Current Status: β Refactored and polished
Length: ~800 lines (reduced from 2500+)
Content:
- System overview and positioning
- Feature table
- Architecture diagram (ASCII, fixed alignment)
- Quick start (minimal, links to detailed guides)
- Services overview table
- API summary with examples
- Environment variables reference
- Project structure tree
- Links to all detailed documentation
Strengths:
- Professional and concise
- Clear navigation to other docs
- Suitable for GitHub landing page
- Impresses recruiters and contributors
2. QUICK_START.md π (Reference, needs verification)
Purpose: 5-minute setup for developers
Recommended Content:
- System requirements (minimal)
- Docker setup (3 commands)
- Local setup (per service, brief)
- Health check verification
- "Next Steps" links to detailed docs
File Structure:
# Quick Start
## Prerequisites
- Docker & Docker Compose v2+
- OR: PHP 8.2+, Python 3.10+, MariaDB
## Docker (5 minutes)
# 3-4 commands
## Local Development
# Brief per-service setup
## Verify Installation
# Health checks
## Next Steps
# Links to detailed guides
Cross-references: README.md β QUICK_START.md β DOCKER.md
3. ARCHITECTURE.md β (Exists, referenced)
Purpose: System design, diagrams, component details
Current Status: β Already comprehensive (use as-is)
Content:
- System-level architecture diagram (Mermaid)
- Component responsibilities table
- Data flow explanation
- Request lifecycle walkthrough
- Per-service component details
- Environment variables location guide
- Deployment notes and scaling
Cross-references: README.md β ARCHITECTURE.md
4. DOCKER.md β (Exists, referenced)
Purpose: Docker-specific setup and configuration
Current Status: β Comprehensive (use as-is)
Content:
- Docker requirements
- Quick start with docker-compose
- Service URLs and ports table
- Laravel AI integration endpoints
- Docker image details
- CI/CD workflow
- Environment configuration
Cross-references: README.md β DOCKER.md
5. PRODUCTION_GUIDE.md π (Reference, needs verification)
Purpose: Deployment architecture, scaling, monitoring, security
Recommended Content:
# Production Guide
## Pre-Deployment Checklist
- Configuration review
- Security setup
- Backup strategy
- Monitoring setup
## Deployment Architecture
- Architecture diagram (Kubernetes vs Docker Swarm)
- Service replication strategies
- Load balancing setup
- Database replication
## Scaling Strategies
- Horizontal scaling for stateless services
- Database scaling and replication
- Queue worker scaling
- Memory and resource limits
## Monitoring & Observability
- Health check endpoints
- Log aggregation setup
- Metrics collection (Prometheus)
- Alert configuration
## Security Hardening
- Environment variable management
- HTTPS/TLS setup
- API authentication
- Database security
## Performance Tuning
- Connection pooling
- Cache configuration
- Query optimization
- Rate limiting
Cross-references: README.md β PRODUCTION_GUIDE.md
6. TROUBLESHOOTING.md π (Reference, needs creation)
Purpose: Common issues and solutions
Recommended Content:
# Troubleshooting
## Quick Reference Table
| Problem | Cause | Solution |
| ... |
## Container Issues
- Service won't start
- Port already in use
- Out of memory
## Database Issues
- Connection failures
- Migration errors
- Data persistence
## AI Service Issues
- Model loading errors
- GPU out of memory
- Timeout issues
- FAISS index slow
## Development Issues
- Python environment setup
- Dependency conflicts
- CUDA not found
- Permission errors
## Debugging
- How to check logs
- Health check procedures
- Debug mode configuration
## FAQ
- Common questions
- Best practices
- Performance optimization
Cross-references: README.md β TROUBLESHOOTING.md
7. API_REFERENCE.md π (Reference, needs creation)
Purpose: Complete API endpoint documentation
Recommended Content:
# API Reference
## Overview
- Base URLs
- Authentication
- Error handling
- Rate limiting
## Laravel Orchestration API
- Health endpoints
- AI service proxy endpoints
- Job management endpoints
- Result retrieval endpoints
## ADMET Service API
- Health endpoint
- Info endpoint
- Predict endpoints (single & batch)
- Model status endpoint
## Drug Repurposing Service API
- Disease targets endpoint
- Drug library endpoint
- Screening endpoint
- Model status endpoint
## Chemical RAG Service API
- Retrieval-only endpoint
- Full RAG endpoint
- Health endpoint
- Stats endpoint
## Response Formats
- Success responses
- Error responses
- Status codes
## Examples
- Real curl requests for each endpoint
- Request/response pairs
- Error scenarios
Cross-references: README.md β API_REFERENCE.md, Service READMEs
8. CONTRIBUTING.md β (Referenced in README)
Purpose: Development guidelines
Current Status: β Guidelines included in README.md
Recommended Dedicated File:
# Contributing
## Getting Started
- Fork and clone
- Setup development environment
- Create feature branch
## Code Style
- PHP: PSR-12
- Python: PEP 8
- Commits: Conventional format
## Development Workflow
- Local development
- Testing requirements
- Documentation updates
- Pull request process
## Testing
- Unit tests
- Integration tests
- Running test suites
## Commit Messages
- Format guidelines
- Examples
## Pull Request Process
- Description template
- Code review expectations
- Merge requirements
π― Implementation Checklist
Completed β
- README.md refactored (concise, professional, links to docs)
- ARCHITECTURE.md (exists, comprehensive)
- DOCKER.md (exists, comprehensive)
- ADMET/README.md (updated with full training + inference)
- Chemical-RAG/README.md (updated with v2.1 focus)
- Drug Reporposing/README.md (already excellent, kept as-is)
Recommended Verification/Creation π
- QUICK_START.md - Verify or create based on template
- PRODUCTION_GUIDE.md - Create based on template
- TROUBLESHOOTING.md - Create based on template
- API_REFERENCE.md - Create based on template
- CONTRIBUTING.md - Extract to standalone file (optional)
π Documentation Standards Applied
Format & Structure
β Consistent markdown formatting across all files β Clear section hierarchy (H1-H4) β Emoji headers for visual organization β Markdown best practices (lists, tables, code blocks)
Navigation
β Table of contents in root README β Cross-references between related docs β Clear "Next Steps" links at end of each section β Service-specific READMEs with complete info
Content Quality
β Professional tone (enterprise-grade) β Concise main README with detailed docs β Real examples (ports, commands, endpoints) β Troubleshooting guides with solutions
GitHub Readability
β Clean whitespace between sections β Compact tables β Reduced code block sizes β Links instead of repetition
π Best Practices References
This documentation structure follows conventions from:
- Apache Software Foundation - Modular documentation
- Kubernetes - Clear architecture docs with links
- Popular open-source projects - Concise main README with satellite docs
- Enterprise software standards - Professional, scalable approach
π File Status Summary
| File | Status | Purpose |
|---|---|---|
| README.md | β Complete | High-level overview + navigation |
| ARCHITECTURE.md | β Exists | System design details |
| DOCKER.md | β Exists | Container setup |
| PRODUCTION_GUIDE.md | π Recommended | Deployment & scaling |
| TROUBLESHOOTING.md | π Recommended | Problem solving |
| API_REFERENCE.md | π Recommended | Endpoint documentation |
| CONTRIBUTING.md | β Included in README | Contributing guidelines |
| Service READMEs | β All updated | Component-specific docs |
π Next Steps
- Verify QUICK_START.md exists and is up-to-date
- Create or verify PRODUCTION_GUIDE.md using template
- Create TROUBLESHOOTING.md from existing content
- Create API_REFERENCE.md for clarity
- (Optional) Extract CONTRIBUTING.md as standalone file
- Update navigation links once all files are created
- Test all links render correctly on GitHub
π Questions?
Reference this document when:
- Creating new documentation files
- Updating existing docs
- Organizing repository documentation
- Onboarding new contributors
Maintain consistency: Keep all docs at the same quality level and style for professional appearance.
Last Updated: May 2026 | Status: Documentation structure defined β