Skip to main content

SAGE Applications - Real-world AI applications built on SAGE framework

Project description

SAGE Applications

Real-world AI applications built on the SAGE framework, showcasing end-to-end solutions for various domains.

Overview

isage-apps provides production-ready applications demonstrating SAGE's capabilities:

  • Video Intelligence: Multi-model video analysis pipeline with CLIP and MobileNetV3
  • Medical Diagnosis: AI-assisted medical image analysis for healthcare

Installation

Basic Installation

pip install isage-apps

Install with Specific Applications

# Video intelligence only
pip install isage-apps[video]

# Medical diagnosis only
pip install isage-apps[medical]

# All applications
pip install isage-apps[all]

Development Installation

cd packages/sage-apps
pip install -e ".[dev]"

๐Ÿ“– Quick Start

# Run video intelligence demo
pip install isage-apps[video]
python -m sage.apps.video.video_intelligence_pipeline --video path/to/video.mp4

# Run medical diagnosis demo
pip install isage-apps[medical]
python -m sage.apps.medical_diagnosis.run_diagnosis

Applications

1. Video Intelligence

Advanced video analysis pipeline combining multiple AI models:

  • Frame sampling and preprocessing
  • Zero-shot scene understanding (CLIP)
  • Object classification (MobileNetV3)
  • Temporal anomaly detection
  • Sliding-window summarization
  • Keyed event aggregation

Quick Start:

pip install isage-apps[video]
python -m sage.apps.video.video_intelligence_pipeline --video path/to/video.mp4

Features:

  • Multi-model inference pipeline
  • Real-time processing with SAGE operators
  • Structured JSON output (timeline, summary, events)
  • Console progress monitoring
  • Graceful degradation (works offline with cached models)

Documentation: See sage/apps/video/README_intelligence_demo.md

2. Medical Diagnosis

AI-assisted diagnostic system for medical imaging:

  • Multi-agent architecture (diagnostic, image analysis, report generation)
  • Knowledge-based reasoning
  • Structured medical reports
  • Training and evaluation tools

Quick Start:

pip install isage-apps[medical]
python -m sage.apps.medical_diagnosis.run_diagnosis

Features:

  • Agent-based diagnostic workflow
  • Medical knowledge base integration
  • Configurable diagnostic criteria
  • Report generation

Documentation: See sage/apps/medical_diagnosis/README.md

Package Structure

sage-apps/
โ”œโ”€โ”€ src/sage/apps/
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ video/                    # Video intelligence application
โ”‚   โ”‚   โ”œโ”€โ”€ video_intelligence_pipeline.py
โ”‚   โ”‚   โ”œโ”€โ”€ operators/            # SAGE operators for video
โ”‚   โ”‚   โ”œโ”€โ”€ config/               # Configuration files
โ”‚   โ”‚   โ””โ”€โ”€ README_intelligence_demo.md
โ”‚   โ””โ”€โ”€ medical_diagnosis/        # Medical diagnosis application
โ”‚       โ”œโ”€โ”€ run_diagnosis.py
โ”‚       โ”œโ”€โ”€ agents/               # Diagnostic agents
โ”‚       โ”œโ”€โ”€ config/               # Agent configurations
โ”‚       โ”œโ”€โ”€ data/                 # Medical datasets
โ”‚       โ””โ”€โ”€ README.md
โ””โ”€โ”€ tests/                        # Application tests

Dependencies

Core Framework

  • isage-common - Common utilities
  • isage-kernel - Runtime and operators
  • isage-middleware - Services (SageDB, SageFlow, NeuroMem)
  • isage-libs - Operator libraries

Application-Specific

Video Intelligence:

  • opencv-python - Video processing
  • torch - Deep learning
  • transformers - CLIP and language models

Medical Diagnosis:

  • pillow - Image processing
  • scikit-learn - ML utilities

Usage Examples

Video Intelligence

from sage.apps.video.video_intelligence_pipeline import main

# Run with custom video
main(["--video", "my_video.mp4", "--max-frames", "100"])

Medical Diagnosis

from sage.apps.medical_diagnosis.run_diagnosis import run_diagnosis

# Run diagnostic pipeline
run_diagnosis(config_path="config/agent_config.yaml")

Development

Running Tests

pytest tests/

Code Quality

# Format code
black src/

# Lint
ruff check src/

# Type checking
mypy src/

CI/CD Notes

Video Intelligence:

  • Requires HuggingFace model downloads (~170MB)
  • Tagged with @test:skip in CI due to network restrictions
  • Test locally with: python -m sage.apps.video.video_intelligence_pipeline

Medical Diagnosis:

  • Works in CI (uses local data)
  • Test with: pytest tests/test_medical_diagnosis.py

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT License - see LICENSE for details.

Related Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

isage_apps-0.2.1-py3-none-any.whl (476.3 kB view details)

Uploaded Python 3

File details

Details for the file isage_apps-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: isage_apps-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 476.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for isage_apps-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c05598dcafa6dbb8eabf472fd9ac654749bbb6baab8d8ae40e6a605cb2943a09
MD5 dbb9dfcc7a785e96dfd8b55c82c58f30
BLAKE2b-256 09892ed0d73ed4cd5d1e095fc7a629090f06a80fd4a53ebe3380cd593c974d44

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page