Skip to content
ActiveInferenceInstitutePublic

About

AI-powered system for generating personalized Active Inference and Free Energy Principle curricula, combining live research (Perplexity) with content generation (OpenRouter), multilingual support, and rich visualizations

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

8 stars

Watchers

4 watching

Forks

Latest commit

Β 

History

131 Commits

Folders and files

Repository files navigation

START: Scalable, Tailored Active-inference Research & Training

Python 3.11+ License: CC BY-SA 4.0 Code style: black

An advanced AI-powered system for creating personalized Active Inference and Free Energy Principle curricula Quick links: activeinference.institute β€’ activities.activeinference.institute β€’ x.com/InferenceActive β€’ discord.activeinference.institute β€’ donate.activeinference.institute β€’ youtube.com/c/ActiveInference β€’ video.activeinference.institute

START combines optional live research capabilities with sophisticated content generation to produce personalized educational materials for Active Inference and the Free Energy Principle. Every generated artifact carries an evidence status; synthetic foundation material is not presented as live research.

πŸ“Œ Start here: here.md β€” interactive landing for the full experience. Also see the Docs Hub and this README for GitHub-oriented navigation.

Contents

Status

  • Runs offline by default. The test suite, repository validation, output validation, deterministic offline fixtures, and the docs build need no network or API keys.
  • Live research and generation need credentials. The Perplexity and OpenRouter stages require PERPLEXITY_API_KEY and OPENROUTER_API_KEY (see Environment); without them, use the offline fixture path (uv run start-regenerate-offline) and the local provider-protocol tests.
  • The example visualizations are separate Node surfaces. examples/vfe/ and examples/efe/ need their own npm install; they are not part of the Python package or its test suite.
  • Outputs are generated and committed. Directories under data/ hold generated artifacts that carry provenance/evidence status; see Data & Outputs. Known repository defects and the forward backlog live in TODO.md.

🌐 Documentation (Live)

πŸ”— Quick Links

▢️ Run the Experience

  • Matrix Terminal UI (end-to-end interactive):
./run.sh
  • Documentation Website (serve, build, deploy):
# Serve locally with live reload
./run_docs.sh --serve

# Build static site to ./site and open it
./run_docs.sh --build

# Deploy to GitHub Pages and open the URL
./run_docs.sh --deploy

πŸ“š Documentation Overview

  • High-level docs live under docs/. Each page is modular and links to deeper guides.
  • Start with the Docs Hub, then dive into:
    • Getting Started β€” install, first research session, generate outputs
    • Environment β€” prerequisites, API keys, CI parity
    • Pipeline β€” architecture, stages, data layout
    • Testing β€” policies, markers, offline/CI rules
    • Configuration β€” YAML schemas and CLI usage
    • Examples β€” where to find generated artifacts

πŸš€ Key Features

graph LR
  A[START] --> R[Research]
  A --> C[Content Generation]
  A --> V[Visualizations]
  A --> T[Translation]
  A --> Q[Quality & Testing]
  R --> R1[Perplexity API]
  C --> C1[OpenRouter LLMs]
  V --> V1[Charts & Mermaid]
  T --> T1[Configured languages]
  Q --> Q1[pytest, ruff, black]

  click R "docs/architecture/pipeline.md" "Pipeline"
  click Q "docs/development/TESTING.md" "Testing"
  click V "docs/architecture/pipeline.md" "Visualizations"
  click T "docs/architecture/pipeline.md" "Translation"
Loading

πŸ” Intelligent Research

  • Live Domain Analysis: Optional research using Perplexity API for current industry insights
  • Personalized Learner Profiling: In-depth analysis of individual learning needs and backgrounds
  • Configurable Professional Domains: Life sciences, technology, business, healthcare, education, and more
  • Configuration-Driven: YAML-based target management with priority and category filtering
  • Enhanced Error Handling: Robust validation and retry mechanisms for reliable operation

✍️ Advanced Content Generation

  • Structured Curricula: Prompt-guided learning programs whose actual scope is checked by output quality gates
  • Prompt-defined Modules: structured learning units with integrated assessment prompts; generated scope is recorded and requires review
  • Prompt-Guided Analyses: Research and personalization prompts with explicit length, structure, citation, and evidence checks
  • Enhanced Prompts: Section frameworks with validation and quality assurance; generated length is not a factual guarantee
  • Content Quality Validation: Automatic checking for completeness and consistency

πŸ“Š Rich Visualizations

  • Data Charts: PNG visualizations of curriculum metrics and learning analytics
  • Process Diagrams: Mermaid flowcharts showing curriculum structure and pathways
  • Interactive Elements: Visual learning aids and conceptual frameworks
  • Metrics Dashboard: Comprehensive curriculum analysis and reporting

🌍 Multilingual Excellence

  • Configured Languages: Language and script mappings are loaded from data/config/languages.yaml
  • Cultural Adaptation: Full localization beyond literal translation
  • Quality Boundaries: Structural, parity, and script checks are automated; fluency and technical accuracy still require human review
  • Smart Language Handling: Configured language/script mappings with explicit warnings for unsupported or unverified outputs

πŸ§ͺ Comprehensive Testing & Quality Assurance

  • Test Suite: Unit, integration, CLI, GUI, repository, and pipeline coverage; run uv run pytest --collect-only -q for the current count
  • Provider Validation: Real local HTTP protocol tests by default; live provider probes are opt-in
  • Error Scenario Coverage: Comprehensive testing of edge cases and error conditions
  • Continuous Integration: every CI step is one uv run start-gate <arm>: lint, types, fast/full tests, docs and link validation, artifact contracts, dependency audit, and the pinned GNN conformance check
  • Reviewable methods: First-principles constraints, falsifiable engineering hypotheses, and a manuscript-facing evidence note

πŸ“¦ Core Pipeline Scripts

Configuration-Based Research

See docs/guides/getting_started.md for full command lists and script paths.

Learn More

  • Docs Hub: docs/README.md
  • Getting Started: docs/guides/getting_started.md
  • Configuration: docs/reference/configuration.md
  • Examples & Outputs: docs/guides/examples.md
  • Pipeline & Architecture: docs/architecture/pipeline.md
  • Environment & CI: docs/reference/environment.md
  • Testing Policy: docs/development/TESTING.md
  • Clone Management: docs/guides/clones.md

πŸ› οΈ Quick Installation

Prerequisites

Installation Steps

# Install uv package manager
curl -LsSf https://astral.sh/uv/install.sh | sh

# Clone and set up project
git clone https://github.com/ActiveInferenceInstitute/Start.git
cd Start

# Install dependencies
uv sync --all-extras --dev

# Download language models
uv run python -m spacy download en_core_web_sm

# Configure API keys
cp .env.example .env
$EDITOR .env  # Add PERPLEXITY_API_KEY and OPENROUTER_API_KEY

# Verify installation
uv run start-gate fast     # tests not marked slow/network/integration
uv run start-gate lint     # ruff, black, shell syntax

🎯 Getting Started

See docs/guides/getting_started.md for first-run commands, generation steps, and exploring outputs.

βš™οΈ Configuration System

See docs/reference/configuration.md for YAML examples and CLI usage.

πŸ“ˆ Generated Content Quality

Research Analysis (Enhanced with new prompts)

  • Domain Reports: Prompt-targeted professional landscape analysis, validated for structure and provenance
  • Entity Profiles: Prompt-targeted personalized learning strategies, validated before publication
  • Evidence-labeled Data: Live, source-material, synthetic, and offline-fixture outputs remain distinguishable
  • Source-aware Generation: Provider, model, prompt, input hashes, citations, and quality status are recorded when available

Curriculum Content (Professional-grade)

  • Structured Programs: Comprehensive learning experiences whose sections and quality status are recorded in manifests
  • Modular Design: Prompt-defined frameworks with integrated assessments where the generated artifact passes validation
  • Practical Applications: Real-world case studies and hands-on exercises
  • Professional Integration: Career development and workplace applications

Multilingual Adaptations (Cultural excellence)

  • Full Localization: Examples adapted to target cultures
  • Technical Accuracy: Precise translation of scientific terms
  • Educational Quality: Maintains pedagogical effectiveness across languages
  • Review Required: Translation completeness and script checks are automated; publication requires qualified language review

πŸ—οΈ System Architecture

flowchart TD
  A[data/config/*] --> B[Research]
  B --> C[Curriculum]
  C --> D[Visualizations]
  D --> E[Translations]
  E --> F[data/* outputs]

  click B "docs/architecture/pipeline.md" "Pipeline"
  click F "docs/README.md" "Docs Hub"
Loading

See docs/architecture/pipeline.md for architecture, templates, and data flow.

Prompt Template System

data/prompts/
β”œβ”€β”€ research_domain_analysis.md     # 6-section domain framework (3K-5K words)
β”œβ”€β”€ research_domain_curriculum.md   # Prompt-defined curriculum generation framework
β”œβ”€β”€ research_entity.md              # 6-section personalization (5K-8K words)
β”œβ”€β”€ curriculum_section.md           # Prompt target for a substantial module (not a duration guarantee)
└── translation.md                  # 7-section multilingual framework

Quality Assurance Framework

  • Comprehensive Testing: pytest with TDD approach
  • Code Quality: ruff linting and black formatting
  • API Integration: Real-time validation with Perplexity and OpenRouter
  • Content Standards: Structural, provenance, and quality-gate validation with explicit human-review boundaries

πŸ“Š Example Outputs

See docs/guides/examples.md for example outputs and paths.

🎯 Use Cases & Applications

Educational Institutions

  • University Courses: Neuroscience, psychology, AI program curricula
  • Professional Development: Corporate training for data science, healthcare, management
  • Research Training: Graduate-level courses with theory and implementation

Individual Learning

  • Self-Directed Study: Personalized curricula based on background and goals
  • Career Transition: Bridge existing expertise to Active Inference applications
  • Academic Research: Foundation for thesis work and research projects

Organizational Training

  • Technology Companies: AI ethics, decision frameworks, intelligent systems
  • Healthcare Organizations: Evidence-based practice, clinical decision support
  • Consulting Firms: Advanced analytical frameworks, problem-solving methodologies

πŸ“š Comprehensive Documentation

πŸš€ Getting Started Guides

  • See the Docs Hub for the complete documentation: docs/README.md
  • Environment Setup: docs/reference/environment.md
  • Pipeline Overview: docs/architecture/pipeline.md
  • Methods & evidence protocol: docs/architecture/methods.md
  • Manuscript-facing engineering note: docs/manuscript/README.md
  • Usage Guide: learning/curriculum_creation/USAGE_GUIDE.md

πŸ”§ Technical References

  • API Documentation: learning/curriculum_creation/README.md
  • Configuration Reference & Docs Hub: docs/README.md
  • Clone Management: docs/guides/clones.md

πŸ“‹ Advanced Topics

  • Prompt Engineering: Custom templates in data/prompts/
  • Extension Development: Adding new domains and entities
  • Integration Patterns: Incorporating START into existing workflows

🀝 Active Inference Ecosystem Integration

See also: implementation repos and knowledge resources in docs/guides/clones.md.

πŸ”„ Development Roadmap

The actionable forward backlog is maintained in TODO.md, the sole canonical list of future work.

🀝 Contributing

We welcome contributions! See our Contributing Guide for details on:

  • Code style and development process
  • Pull request procedure and review guidelines
  • Community guidelines and communication
  • Testing requirements and quality standards

Development Workflow

# Set up development environment
uv sync --all-extras --dev

# Run quality checks through the one gate entry point (see docs/development/gate.md)
uv run start-gate          # default arm: fast selection
uv run start-gate lint     # ruff, black, shell syntax
uv run start-gate full     # full suite with the coverage floor

# Stable installed entry points
uv run start-curriculum --help
uv run start-clone --help
uv run start-validate-outputs --check

πŸ§ͺ Development & Testing

Testing Framework

The project includes a comprehensive testing framework covering:

  • Unit Tests: Individual component testing with local protocols and temporary data
  • Integration Tests: End-to-end pipeline validation
  • Provider Tests: Local HTTP completion servers exercising the production client protocol
  • Error Handling: Edge cases and failure scenarios
  • Repository Gates: Authored terminology, stale path, Markdown link, and tracked JSON/YAML/TOML validation

Running Tests

# One entry point, one command per arm; CI calls the same arms
uv run start-gate          # default arm: fast selection
uv run start-gate full     # full suite, 80% branch-aware coverage floor
uv run start-gate docs     # mkdocs build --strict + link/config validation
uv run start-gate --list   # every arm with its exact argv

# Focused local runs
uv run pytest tests/test_domain.py     # Specific test file
uv run pytest -m integration           # Only integration-marked tests

# Measured arm runtimes, selection counts, and coverage
# docs/_generated/gate-timings.md (rewritten by `uv run start-gate measure`)

Development Guidelines

  • Code Quality: Black formatting, Ruff linting, comprehensive type hints
  • Testing: Write tests for all new functionality using real local I/O
  • Documentation: Include docstrings and update relevant docs
  • Error Handling: Implement graceful degradation and user-friendly messages

Project Structure

β”œβ”€β”€ src/                    # Core system modules
β”‚   β”œβ”€β”€ common/            # Shared utilities
β”‚   β”œβ”€β”€ perplexity/        # API integrations  
β”‚   β”œβ”€β”€ system/            # System utilities
β”‚   └── terminal/          # CLI components
β”œβ”€β”€ learning/              # Educational pipeline scripts
β”œβ”€β”€ tests/                 # Test suite (run pytest --collect-only for the current count)
β”œβ”€β”€ docs/                  # Documentation
β”‚   β”œβ”€β”€ TESTING.md         # Testing guide
β”‚   └── environment.md     # Setup instructions
└── data/                  # Generated content storage

For detailed testing information, see docs/development/TESTING.md.

πŸ“„ License & Citation

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License - see the LICENSE file for details.

DOI & Archive

DOI

This repository is archived and citable via Zenodo: 10.5281/zenodo.17047617

Citation

If you use START in academic work, please cite:

Daniel Ari Friedman, & Active Inference Institute. (2025). 
ActiveInferenceInstitute/Start: v1 (v1). Zenodo. 
https://doi.org/10.5281/zenodo.17047617

START: Scalable, Tailored Active-inference Research & Training
Active Inference Institute (2024)
https://github.com/ActiveInferenceInstitute/Start
Licensed under Creative Commons Attribution-ShareAlike 4.0 International

πŸ™ Acknowledgments

  • Active Inference Institute for foundational research and community support
  • Contributors to pymdp, ActiveInference.jl, RxInfer.jl, and related implementation packages
  • Educational partners providing feedback and validation for curriculum effectiveness
  • Open source community for tools, libraries, and collaborative development

πŸ“¬ Contact & Support

🌟 Join the Community

Together we're building tools to make Active Inference accessible and adaptable across domains, languages, and perspectives. START represents a new paradigm in AI-powered educational content creation - join us in making advanced neuroscience and cognitive science accessible to learners worldwide!

πŸ“š Explore Documentation | πŸš€ Get Started | 🀝 Join Community

Institute Shortlinks (email-friendly)

InstituteOS sidecar

This repository carries a committed .aii/ sidecar with curated InstituteOS metadata (aii-sidecar/v1): category, maturity, ecosystem relations, key artifacts, provenance, and portable tasks. It is read by InstituteOS tooling and does not affect the project's build or runtime.

About

AI-powered system for generating personalized Active Inference and Free Energy Principle curricula, combining live research (Perplexity) with content generation (OpenRouter), multilingual support, and rich visualizations

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

8 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages