How opea-project/genaistudio works
GenAI Studio is a low-code platform for building GenAI workflows, testing them in Kubernetes sandboxes, evaluating and monitoring performance, and generating deployment packages. The main path runs from canvas workflow design through sandbox management and evaluation to package export/deployment. The repository also contains a sandbox chat application and OPEA service templates. Edges are limited to relationships shown in excerpts, the SOURCE INDEX, or README; unsampled integrations are omitted or marked unverified.
Main entry points: sandbox_router.py Sandbox Routes · eval_router.py Evaluation API · dataset_service.py Dataset Service · src Studio UI
Components 27
Workflow Design
- Studio UI
studio-frontend/packages/ui/src - Workflow Canvas
studio-frontend/packages/ui/src/views/canvas/NodeInputHandler.jsx
Studio Backend
- Workflow Model
studio-backend/app/models/pipeline_model.py - Studio API
studio-backend/app/main.py - Sandbox Routes
studio-backend/app/routers/sandbox_router.py - Workflow Analysis
studio-backend/app/services/workflow_info_service.py - Namespace Manager
studio-backend/app/services/namespace_service.py
Evaluation
- Evaluation API
studio-eval/app/routers/eval_router.py - Dataset Service
studio-eval/app/services/dataset_service.py - Run Service
studio-eval/app/services/eval_service.py - Evaluation Models
studio-eval/app/models/eval_models.py - Evaluation Database
studio-eval/app/db/database.py - Ollama Integration
studio-eval/app/services/ollama_service.py
Sandbox Runtime
- Sandbox Chat App
app-frontend/react/src/pages/Chat/ChatView.tsx - Chat Runtime
app-backend/orchestrator.py - OPEA Megaservice
app-backend/megaservice.py - Service Templates
app-backend/templates/microservices
Deployment and Monitoring
- Package Download API
studio-backend/app/routers/download_router.py - Package Exporter
studio-backend/app/services/exporter_service.py - Export Utilities
studio-backend/app/utils/exporter_utils.py - Click Deploy API
studio-backend/app/routers/clickdeploy_router.py - Remote Deployment
studio-backend/app/services/clickdeploy_service.py - Trace Inspection API
studio-backend/app/routers/llmtraces_router.py
Other components
- Developer
- Ollama
- ClickHouse Traces
- Prometheus and Grafana
Connections 32
- Developer → Studio UI: uses
README.md - Studio UI → Workflow Canvas: opens canvas
README.md - Workflow Canvas → Workflow Model: configures workflow
- Studio UI → Studio API: manages workflows
- Studio API → Sandbox Routes: routes requests
studio-backend/app/main.py - Sandbox Routes → Workflow Model: accepts workflow
studio-backend/app/routers/sandbox_router.py - Sandbox Routes → Workflow Analysis: requests analysis
studio-backend/app/routers/sandbox_router.py - Sandbox Routes → Namespace Manager: manages namespace
studio-backend/app/routers/sandbox_router.py - Developer → Evaluation API: requests evaluation
README.md - Evaluation API → Run Service: starts runs
studio-eval/app/routers/eval_router.py - Evaluation API → Dataset Service: manages datasets
studio-eval/app/routers/eval_router.py - Evaluation API → Ollama Integration: lists models
studio-eval/app/routers/eval_router.py - Run Service → Evaluation Database: persists evaluation
studio-eval/app/services/eval_service.py - Run Service → Evaluation Models: uses records
studio-eval/app/services/eval_service.py - Dataset Service → Evaluation Database: persists datasets
studio-eval/app/services/dataset_service.py - Dataset Service → Evaluation Models: uses records
studio-eval/app/services/dataset_service.py - Dataset Service → Ollama Integration: uses models
studio-eval/app/services/dataset_service.py - Ollama Integration → Ollama: calls API
studio-eval/app/services/ollama_service.py - Developer → Package Download API: downloads package
README.md - Package Download API → Package Exporter: generates package
studio-backend/app/routers/download_router.py - Package Exporter → Export Utilities: uses utilities
studio-backend/app/services/exporter_service.py - Developer → Click Deploy API: requests deployment
- Click Deploy API → Remote Deployment: delegates deployment
studio-backend/app/routers/clickdeploy_router.py - Remote Deployment → Package Exporter: uses package generation
studio-backend/app/services/clickdeploy_service.py - Remote Deployment → Workflow Analysis: reads workflow analysis
studio-backend/app/services/clickdeploy_service.py - Developer → Sandbox Chat App: tests pipeline
README.md - Sandbox Chat App → Chat Runtime: sends chat requests
- Chat Runtime → OPEA Megaservice: orchestrates services
- OPEA Megaservice → Service Templates: uses templates
- Developer → Trace Inspection API: inspects traces
- Trace Inspection API → ClickHouse Traces: queries traces
studio-backend/app/routers/llmtraces_router.py - Sandbox Chat App → Prometheus and Grafana: monitors utilization
README.md