How redhat-community-ai-tools/unifai works
UnifAI combines a visual and API-driven multi-agent workflow platform with an enterprise-knowledge ingestion and retrieval system. The main user path is to compose a blueprint, submit a session, execute its graph locally or through Temporal, and stream node results; agents can retrieve indexed document and Slack content. The graph preserves major README capabilities, including templates, the element catalog, collaboration, and asynchronous ingestion. Some subsystem links are documented rather than shown in sampled implementation; those edges cite the README, and unsampled details are not inferred.
Main entry points: App.tsx Web UI · user_session_manager.py Session Manager · flask_app.py Flask API · session_engine.py Distributed Execution
Components 24
User Interfaces
Multi-Agent Workflows
- Blueprints
multi-agent/lib/mas/blueprints/service.py - Element Catalog
multi-agent/lib/mas/catalog/service.py - Workflow Templates
multi-agent/lib/mas/resources/builtin_service.py - Session Manager
multi-agent/lib/mas/session/management/user_session_manager.py - Graph State
multi-agent/lib/mas/graph/state/graph_state.py - Local Execution
multi-agent/adapters/outbound/langgraph/executor.py - Distributed Execution
multi-agent/adapters/outbound/temporal/session_engine.py - Result Streaming
multi-agent/adapters/inbound/flask/streaming/heartbeat_stream.py - Session Collaboration
multi-agent/lib/mas/collaboration/service.py
Knowledge Ingestion
- RAG API
rag/infrastructure/http/pipelines.py - Pipeline Dispatcher
rag/infrastructure/celery/pipeline_dispatcher.py - Document Ingestion
rag/core/data_sources/types/document/pipeline_handler.py - Slack Ingestion
rag/core/data_sources/types/slack/pipeline_handler.py - Vector Search
rag/core/retrieval/service.py
Runtime Infrastructure
- Session Repository
multi-agent/adapters/outbound/mongo/session_repository.py - RAG Metadata Store
rag/infrastructure/mongo/pipeline_repository.py - Celery Workers
rag/infrastructure/celery/workers/pipeline_tasks.py - Vector Database
rag/core/vector/domain/model.py - Temporal Service
multi-agent/adapters/temporal/client.py
Other components
- Workflow User
- RabbitMQ
Connections 32
- Workflow User → Web UI: composes workflows
README.md - Workflow User → CLI: runs workflows
README.md - Web UI → Flask API: submits requests
README.md - CLI → Flask API: calls API
- Flask API → Blueprints: uses blueprints
README.md - Blueprints → Element Catalog: resolves elements
README.md - Web UI → Element Catalog: browses elements
README.md - Web UI → Workflow Templates: instantiates templates
README.md - Flask API → Session Manager: manages sessions
multi-agent/lib/mas/session/management/user_session_manager.py - Session Manager → Blueprints: loads blueprint
multi-agent/lib/mas/session/management/user_session_manager.py - Session Manager → Session Repository: persists sessions
multi-agent/lib/mas/session/management/user_session_manager.py - Session Manager → Local Execution: builds execution
multi-agent/lib/mas/session/management/user_session_manager.py - Session Manager → Distributed Execution: submits background run
multi-agent/adapters/outbound/temporal/session_engine.py - Distributed Execution → Temporal Service: starts workflow
multi-agent/adapters/outbound/temporal/session_engine.py - Local Execution → Graph State: updates state
- Distributed Execution → Graph State: executes graph state
multi-agent/adapters/outbound/temporal/session_engine.py - Graph State → Result Streaming: streams progress
README.md - Flask API → Session Collaboration: supports collaboration
README.md - Workflow User → RAG API: uploads sources
README.md - RAG API → Pipeline Dispatcher: dispatches ingestion
README.md - Pipeline Dispatcher → RabbitMQ: sends tasks
rag/infrastructure/celery/pipeline_dispatcher.py - RabbitMQ → Celery Workers: delivers tasks
- Celery Workers → Document Ingestion: runs document pipeline
rag/infrastructure/celery/workers/pipeline_tasks.py - Celery Workers → Slack Ingestion: runs Slack pipeline
rag/infrastructure/celery/workers/pipeline_tasks.py - Document Ingestion → Vector Database: embeds chunks
rag/core/data_sources/types/document/pipeline_handler.py - Slack Ingestion → Vector Database: embeds chunks
rag/core/data_sources/types/slack/pipeline_handler.py - Document Ingestion → RAG Metadata Store: tracks pipeline
- Slack Ingestion → RAG Metadata Store: tracks pipeline
- Web UI → Vector Search: queries dashboard
README.md - Vector Search → Vector Database: searches vectors
README.md - Local Execution → Vector Search: retrieves knowledge
README.md - Temporal Service → Distributed Execution: runs workflows
multi-agent/adapters/outbound/temporal/session_engine.py