How rafaelob/ailine works
AiLine is an inclusive-learning platform: teachers submit classroom materials and accessibility profiles, and the API coordinates retrieval and multi-agent planning, quality review, refinement, and export. The frontend presents streamed progress and personalized results, while accessibility, tutoring, curriculum, and observability are substantial companion capabilities. Relationships shown below follow the README’s architecture and pipeline diagrams; sampled source confirms selected agent, ingestion, routing, and application responsibilities, but many runtime paths were not excerpted.
Main entry points: routers REST and SSE Routes · workflows Agent Workflows · plan_workflow.py Plan Workflow · page.tsx Web Application
Components 22
Teacher Experience
- Web Application
frontend/src/app/[locale]/(app)/plans/page.tsx - Pipeline Streaming
frontend/src/hooks/use-pipeline-sse.ts - Glass Box Viewer
frontend/src/components/pipeline/pipeline-viewer.tsx
API and Domain
- API Application
runtime/ailine_runtime/api/app.py - REST and SSE Routes
runtime/ailine_runtime/api/routers - Domain and Ports
runtime/ailine_runtime/domain
AI Planning
- Plan Workflow
runtime/ailine_runtime/workflow/plan_workflow.py - Agent Workflows
agents/ailine_agents/workflows - Planner Agent
agents/ailine_agents/agents/planner.py - Quality Gate
agents/ailine_agents/agents/quality_gate.py - Executor Agent
agents/ailine_agents/agents/executor.py
Learning Capabilities
- Material Ingestion
runtime/ailine_runtime/app/services/ingestion.py - RAG Service
runtime/ailine_runtime/app/services/rag.py - Curriculum Adapters
runtime/ailine_runtime/adapters/curriculum - Tutor Workflow
runtime/ailine_runtime/workflow/tutor_workflow.py - Accessibility and Exports
runtime/ailine_runtime/accessibility
Platform Services
- Smart LLM Router
runtime/ailine_runtime/adapters/llm/smart_router.py - LLM Providers
runtime/ailine_runtime/adapters/llm - Vector Store
runtime/ailine_runtime/adapters/vectorstores - Database and Repositories
runtime/ailine_runtime/adapters/db - Observability
runtime/ailine_runtime/shared/observability.py
Other components
- Teacher
Connections 22
- Teacher → Web Application: submits request
README.md - Web Application → Pipeline Streaming: starts streaming
README.md - Pipeline Streaming → REST and SSE Routes: sends SSE request
README.md - API Application → REST and SSE Routes: registers routes
runtime/ailine_runtime/api/app.py - REST and SSE Routes → Domain and Ports: uses domain
README.md - REST and SSE Routes → Plan Workflow: starts plan flow
- Plan Workflow → Agent Workflows: orchestrates agents
- Agent Workflows → Planner Agent: invokes planning
- Agent Workflows → Quality Gate: checks quality
- Agent Workflows → Executor Agent: runs tools
- Agent Workflows → Smart LLM Router: requests models
README.md - Smart LLM Router → LLM Providers: routes requests
README.md - REST and SSE Routes → Material Ingestion: ingests uploads
- Material Ingestion → Vector Store: stores embeddings
runtime/ailine_runtime/app/services/ingestion.py - Agent Workflows → RAG Service: retrieves context
- RAG Service → Vector Store: searches materials
- Plan Workflow → Curriculum Adapters: uses standards
- Plan Workflow → Accessibility and Exports: formats adaptations
README.md - Web Application → Glass Box Viewer: displays pipeline
README.md - REST and SSE Routes → Tutor Workflow: serves tutor chat
- REST and SSE Routes → Database and Repositories: reads and writes
- API Application → Observability: configures telemetry
runtime/ailine_runtime/api/app.py