-
Notifications
You must be signed in to change notification settings - Fork 0
Mindtrace Documentation Pipeline [1/2] #255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
34b1fca
initial document page
pankhuri-mt 80a0c37
add read me
pankhuri-mt 5366aa5
index update
pankhuri-mt 0dd0c8d
add mkdocs dependency
pankhuri-mt e14e470
format
pankhuri-mt b3d46b4
add mike
pankhuri-mt 2dfa8a8
add docs workflow
pankhuri-mt e2a231c
test on branch
pankhuri-mt f395d09
fix python version
pankhuri-mt 6dd7879
make dev as default
pankhuri-mt 0279e30
Merge remote-tracking branch 'origin/dev' into feature/docmentation
pankhuri-mt 14b331c
add favicon
pankhuri-mt 8d8b987
update index.md
pankhuri-mt 96cfe98
remove feature branch from docs workflow
vik-rant File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| name: Build and Publish Docs | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - dev | ||
| - main | ||
| workflow_dispatch: | ||
| release: | ||
| types: [published] | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event_name == 'push' && github.ref}} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pages: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| deploy: | ||
| name: Publish Docs | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.12"] | ||
| steps: | ||
| - name: Checkout the repository | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Install uv and set Python ${{ matrix.python-version }} | ||
| uses: astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc # v6.4.3 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| activate-environment: true | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| uv sync --group docs | ||
|
|
||
| - name: Configure git for github-actions | ||
| run: | | ||
| git config --global user.name "github-actions[bot]" | ||
| git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
|
|
||
| - name: Deploy Development Docs | ||
| if: (github.event_name == 'push' && github.ref == 'refs/heads/dev') || github.event_name == 'workflow_dispatch' | ||
| run: | | ||
| uv run mike deploy --push dev | ||
|
|
||
| - name: Set Default to Dev | ||
| if: (github.event_name == 'push' && github.ref == 'refs/heads/dev') || github.event_name == 'workflow_dispatch' | ||
| run: | | ||
| uv run mike set-default dev --push | ||
|
|
||
| - name: Deploy Release Docs | ||
| if: github.event_name == 'release' && github.event.action == 'published' | ||
| run: | | ||
| latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`) | ||
| uv run mike deploy --push --update-aliases $latest_tag latest | ||
|
|
||
| - name: Deploy Main Docs | ||
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
| run: | | ||
| uv run mike deploy --push main |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../mindtrace/cluster/README.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Cluster Package API Reference | ||
| ::: mindtrace.cluster | ||
| options: | ||
| show_root_heading: false | ||
| show_source: false | ||
| heading_level: 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../mindtrace/core/README.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Core Package API Reference | ||
| ::: mindtrace.core | ||
| options: | ||
| show_root_heading: false | ||
| show_source: false | ||
| heading_level: 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../mindtrace/database/README.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Database Package API Reference | ||
| ::: mindtrace.database | ||
| options: | ||
| show_root_heading: false | ||
| show_source: false | ||
| heading_level: 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../mindtrace/hardware/README.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Hardware Package API Reference | ||
| ::: mindtrace.hardware | ||
| options: | ||
| show_root_heading: false | ||
| show_source: false | ||
| heading_level: 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,120 @@ | ||
| # :material-rocket-launch: Welcome to Mindtrace | ||
|
|
||
| Unifying asset inspection under a single package, Mindtrace brings together industrial hardware, machine learning, and automation, bridging the gap between edge devices and scalable intelligence. | ||
|
|
||
| Monitor, automate, and scale your on-prem AI solutions effortlessly with **Mindtrace** package. | ||
| From training robust AI models, hardware integration to deploying and scaling edge intelligence for **Asset inspection**, Mindtrace enables full-cycle orchestration. | ||
|
|
||
| It seamlessly connects **hardware, data, and machine learning**, empowering teams to deploy context-aware decision systems, derive real-time insights, and visualize results through interactive dashboards | ||
|
|
||
| --- | ||
|
|
||
| ## :material-star: Features | ||
|
|
||
|
|
||
| - :fontawesome-solid-network-wired: **Unified Architecture** | ||
| Integrates data ingestion, model training, deployment, and system coordination under one modular ecosystem that scales seamlessly across services and clusters. | ||
|
|
||
| - :material-cpu-64-bit: **Hardware-Aware Intelligence** | ||
| Connect directly to PLCs, cameras, and sensors for real-time inference, control, and closed-loop feedback across industrial environments. | ||
|
|
||
| - :material-brain: **ML-Native Design** | ||
| Provides end-to-end pipelines for dataset management, model registry, and distributed training workflows. | ||
|
|
||
| - :material-database: **Datalake Integration** | ||
| Built-in connectors and APIs for storing, indexing, and retrieving structured or unstructured data — powering analytics, retraining, and traceability. | ||
|
|
||
| - :material-cloud-sync: **Cluster-Aware Orchestration** | ||
| Enables coordinated operation across multiple nodes or services, supporting distributed execution and horizontal scaling. | ||
|
|
||
| - :material-account-group: **Service Collaboration Layer** | ||
| Seamlessly launch, register, and interconnect FastAPI or MCP-based microservices through a unified control plane and shared state system. | ||
|
|
||
|
|
||
| --- | ||
|
|
||
| ## :material-layers-triple: Layered Architecture | ||
|
|
||
| Mindtrace is organized into a layered workspace to support ML components as Python modules with clearly defined boundaries and dependencies. We use a level-based system for organizing modules based on dependency direction and build order. | ||
|
|
||
| ### **Level 1: Core** | ||
| - `core`: Foundational utilities and base classes used across all other modules. | ||
|
|
||
| ### **Level 2: Core Consumers** | ||
| - `jobs`: Job execution and backend interfaces. | ||
| - `registry`: Artifact and metadata management. | ||
| - `database`: Redis, Mongo, and DB access layers. | ||
| - `services`: Service base classes, authentication, and gateways. | ||
| - `storage`: Storage functionality for cloud storage integration. | ||
| - `ui`: Optional UI libraries and components. | ||
|
|
||
| ### **Level 3: Infrastructure Modules** | ||
| - `hardware`: Interfaces for cameras, PLCs, scanners, etc. | ||
| - `cluster`: Runtime cluster management, nodes, and workers. | ||
| - `datalake`: Dataset interfaces for HuggingFace and Mindtrace datasets. | ||
| - `models`: Core model definitions and leaderboard utilities. | ||
|
|
||
| ### **Level 4: Automation** | ||
| - `automation`: Integration of pipelines and orchestration using level 2–3 modules. | ||
|
|
||
| ### **Level 5: Applications** | ||
| - `apps`: End-user applications composed of all previous levels. | ||
| - E.g., Demo pipelines | ||
|
|
||
| --- | ||
|
|
||
| ## :material-arrow-down-bold: Dependency Flow | ||
|
|
||
| Each layer only depends on modules in lower levels. | ||
|
|
||
| | Module | Depends On | | ||
| |------------|------------------------------------------------------| | ||
| | `core` | – | | ||
| | `jobs` | `core` | | ||
| | `registry` | `core` | | ||
| | `database` | `core`, `registry` | | ||
| | `services` | `core` | | ||
| | `storage` | – | | ||
| | `ui` | `core` | | ||
| | `cluster` | `core`, `jobs`, `registry`, `database`, `services` | | ||
| | `datalake` | `core`, `registry`, `database`, `services` | | ||
| | `models` | `core`, `registry`, `services` | | ||
| | `hardware` | `core`, `services`, `storage` | | ||
| | `automation` | `core`, `registry`, `database`, `services`, `datalake`, `models`, `cluster` | | ||
| | `apps` | `core`, `registry`, `database`, `services`, `datalake`, `models`, `cluster`, `jobs`, `hardware`, `ui`, `automation` | | ||
|
|
||
| --- | ||
|
|
||
| ## :material-link: Useful Links | ||
|
|
||
| - :material-github: [GitHub Repository](https://github.com/Mindtrace/mindtrace) | ||
| - :material-package: [PyPI Package](https://pypi.org/project/mindtrace/) | ||
|
|
||
| --- | ||
| ## :material-console: Quick Start | ||
|
|
||
| ### :material-download: Installation | ||
|
|
||
| ```bash | ||
| # Install the full Mindtrace package | ||
| uv add mindtrace | ||
|
|
||
| # Or install a minimal dependency chain | ||
| uv add mindtrace-datalake | ||
| ``` | ||
|
|
||
| ### :material-code-tags: Basic Usage | ||
|
|
||
| ```python | ||
| from mindtrace import core, registry, database, services | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## :material-rocket: Contribute | ||
|
|
||
| We welcome contributions! Whether you're fixing bugs, adding features, or improving documentation, your help makes Mindtrace better. | ||
|
|
||
| - :material-book-open: [Contributing Guide](https://github.com/Mindtrace/mindtrace/blob/dev/CONTRIBUTING.md) - Learn how to get started | ||
| - :material-github: [GitHub Issues](https://github.com/Mindtrace/mindtrace/issues) - Report bugs or suggest features | ||
| - :material-source-branch: [Pull Requests](https://github.com/Mindtrace/mindtrace/pulls) - Submit your contributions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../mindtrace/jobs/README.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Jobs Package API Reference | ||
| ::: mindtrace.jobs | ||
| options: | ||
| show_root_heading: false | ||
| show_source: false | ||
| heading_level: 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../mindtrace/services/README.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Services Package API Reference | ||
| ::: mindtrace.services | ||
| options: | ||
| show_root_heading: false | ||
| show_source: false | ||
| heading_level: 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../mindtrace/storage/README.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Storage Package API Reference | ||
| ::: mindtrace.storage | ||
| options: | ||
| show_root_heading: false | ||
| show_source: false | ||
| heading_level: 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.