Contributing¶
Contributions to UCEF are welcome! This guide covers the development setup and contribution process.
Development Setup¶
# Clone the repository
git clone https://github.com/ViewWay/UCEF.git
cd UCEF
# Create virtual environment
python -m venv .venv
source .venv/bin/activate # Linux/macOS
# .venv\Scripts\activate # Windows
# Install with dev dependencies
pip install -e ".[dev]"
Project Structure¶
UCEF/
├── src/ucef/ # Main source code
│ ├── core/ # Types, config, orchestrator
│ ├── retrieval/ # Hyperbolic & quantum retrieval
│ ├── compression/ # Adaptive compression strategies
│ ├── memory/ # Three-layer memory system
│ ├── quality/ # Quality feedback loop
│ ├── physics/ # RG & thermodynamic models
│ └── models/ # LLM adapters (OpenAI, Zhipu, etc.)
├── experiments/ # Benchmark scripts & results
├── paper/ # LaTeX paper drafts
├── tests/ # Test suite
└── docs/ # Documentation
Running Tests¶
Code Style¶
- Follow PEP 8
- Use type hints for all public APIs
- Add docstrings to all public functions and classes
- Keep functions focused — one responsibility per function
Pull Request Process¶
- Fork the repository
- Create a feature branch:
git checkout -b feature/my-feature - Make changes with tests
- Ensure all tests pass:
pytest tests/ -v - Submit a pull request with a clear description
Reporting Issues¶
Please use GitHub Issues to report bugs or request features.