Production-ready application examples for the SAGE framework.
sage-examples showcases production application examples for SAGE:
- π― Examples: Complete, runnable application demonstrations
- π¦ apps Package: Installable application library (published to PyPI as
iapps)
οΏ½ Looking for tutorials? Visit SAGE/tutorials for learning materials.
# Clone this repository
git clone https://github.com/intellistream/sage-examples.git
cd sage-examples
# Install (all dependencies included)
pip install -e .
# Run an application example
python examples/run_video_intelligence.pyNew to SAGE? Start with SAGE/tutorials first.
sage-examples/
βββ examples/ # π― Production application examples
β βββ run_video_intelligence.py
β βββ run_medical_diagnosis.py
β βββ run_smart_home.py
β βββ ...
β
βββ apps/ # π¦ Installable application package
β βββ src/sage/apps/ # Application implementations
β βββ tests/ # Package tests
β
βββ docs/ # π Project documentation
βββ pyproject.toml # Project configuration
| Your Goal | Repository |
|---|---|
| Learn SAGE basics | SAGE/tutorials |
| See production examples | sage-examples (this repo) |
| Install applications | pip install iapps |
Complete, runnable applications demonstrating real-world use cases:
| Application | Description | Script |
|---|---|---|
| π¬ Video Intelligence | Multi-model video analysis | examples/run_video_intelligence.py |
| π₯ Medical Diagnosis | AI medical image analysis | examples/run_medical_diagnosis.py |
| π Smart Home | IoT automation system | examples/run_smart_home.py |
| π° Article Monitoring | News monitoring pipeline | examples/run_article_monitoring.py |
| π¬ Auto-scaling Chat | Dynamic scaling chat | examples/run_auto_scaling_chat.py |
| π Literature Recommendation | Personalized scientific paper recommendation | examples/run_literature_report_assistant.py |
| π§ Patent Landscape Mapper | Patent clustering and whitespace opportunity mapping | examples/run_patent_landscape_mapper.py |
| π Student Improvement | Stateful learning diagnosis and score improvement MVP | examples/run_student_improvement.py |
See examples/README.md for details.
# Clone repository
git clone https://github.com/intellistream/sage-examples.git
cd sage-examples
# Install (all dependencies included by default)
pip install -e .
# Or install from PyPI
pip install isage-examples
# Development mode (includes pytest, ruff, mypy)
pip install -e .[dev]Note: Following SAGE principles, all application dependencies are installed by default. No need for extra flags like
[video]or[medical].
SAGE uses a strict 6-layer architecture with unidirectional dependencies:
βββββββββββββββββββββββββββββββββββββββββββββββ
β L6: Interface β CLI, Web UI, Tools
βββββββββββββββββββββββββββββββββββββββββββββββ€
β L5: Applications β Production Apps
βββββββββββββββββββββββββββββββββββββββββββββββ€
β L4: Middleware β Domain Operators
βββββββββββββββββββββββββββββββββββββββββββββββ€
β L3: Core β Execution + Algorithms
β ββ Kernel (Batch/Stream Engine) β
β ββ Libs (RAG/Agents/Algorithms) β
βββββββββββββββββββββββββββββββββββββββββββββββ€
β L2: Platform β Scheduler, Storage
βββββββββββββββββββββββββββββββββββββββββββββββ€
β L1: Foundation β Config, Logging, LLM
βββββββββββββββββββββββββββββββββββββββββββββββ
Dependency Rule: Upper layers can depend on lower layers (L6βL5β...βL1), but never the reverse.
# Install development dependencies
pip install -e ".[dev]"
# Install pre-commit hooks
pre-commit install
# Run all checks
pre-commit run --all-files# Format code
ruff format .
# Lint code
ruff check .
# Auto-fix issues
ruff check --fix .
# Type checking
mypy .# Run all tests
pytest
# Run specific tests
pytest examples/test_apps.py
pytest apps/tests/
# With coverage
pytest --cov=. --cov-report=htmlSee docs/DEVELOPMENT.md for complete development guide.
- Examples Guide:
examples/README.md- Application examples - Development Guide:
docs/DEVELOPMENT.md- Contributing - SAGE Tutorials: SAGE/tutorials - Learn SAGE
- SAGE Docs: https://intellistream.github.io/SAGE
We welcome contributions! Please see:
- Development Guide:
docs/DEVELOPMENT.md - Code of Conduct: Follow respectful collaboration
- Issue Tracker: https://github.com/intellistream/sage-examples/issues
- Tutorials: Add to SAGE/tutorials
- Applications:
- Implementation β
apps/src/sage/apps/your_app/ - Entry script β
examples/run_your_app.py
- Implementation β
- Tests: Add tests and ensure they pass
- Dependencies: Update
pyproject.toml
- SAGE Main: https://github.com/intellistream/SAGE
- SAGE Benchmark: https://github.com/intellistream/sage-benchmark
- PyPI Packages: https://pypi.org/search/?q=isage
MIT License - see LICENSE for details.
- GitHub Issues: Bug reports and feature requests
- GitHub Discussions: Questions and community support
- GitHub Copilot: Use "SAGE Examples Assistant" chat mode
If you find this project helpful, please consider giving it a βοΈ!
Made with β€οΈ by the IntelliStream Team