A lightweight, high-performance platform for constructing automated AI workflows and generating comprehensive research reports using a multi-agent orchestration pipeline.
This platform combines:
- π€ Multi-Agent Research System
- β‘ Workflow Automation Engine
- π Local RAG (Retrieval-Augmented Generation)
- π Semantic Search
- π Authentication & Authorization
- π File Upload & Knowledge Management
- π Real-Time Execution Tracking
The project is designed to run with minimal setup while providing enterprise-style workflow orchestration capabilities.
- FastAPI
- SQLAlchemy ORM
- SQLite / PostgreSQL
- Google Gemini AI
- JWT Authentication
- Server-Sent Events (SSE)
- React SPA
- Tailwind CSS v4
- Zero-build architecture
- Browser-side JSX transpilation via Service Worker
- Multi-Agent Pipeline
- RAG Architecture
- Vector Similarity Search
- Embedding Generation
ai-orchestrator/
β
βββ backend/
β βββ main.py
β βββ models.py
β βββ database.py
β βββ auth.py
β βββ agents.py
β βββ vector_store.py
β βββ workflow_engine.py
β βββ requirements.txt
β βββ routes/
β βββ auth.py
β βββ agents.py
β βββ workflows.py
β βββ search.py
β βββ files.py
β
βββ frontend/
β βββ index.html
β βββ sw.js
β βββ app.js
β βββ components/
β βββ auth/
β βββ workflow/
β βββ research/
β βββ search/
β βββ files/
β
βββ .gitignore
βββ .env.example
βββ README.md
git clone https://github.com/<your-username>/ai-orchestrator.git
cd ai-orchestratorCopy the environment template:
cp .env.example backend/.envOpen backend/.env and add:
GEMINI_API_KEY=your_api_key_hereVisit:
Generate a new API key and paste it into the .env file.
Instead of SQLite:
DATABASE_URL=postgresql://postgres:<password>@<host>.supabase.co:5432/postgres
SUPABASE_URL=https://<project-ref>.supabase.co
SUPABASE_SERVICE_ROLE_KEY=<service-role-key>Run inside Supabase SQL Editor:
CREATE EXTENSION IF NOT EXISTS vector;Never commit:
.env
database credentials
API keys
service role keys
SQLite database files
The provided .gitignore already excludes these files.
Navigate to backend:
cd backendpython -m venv venv
venv\Scripts\activatepython -m venv venv
source venv/bin/activatepip install -r requirements.txtpython main.pyBackend runs at:
http://localhost:8000
The SQLite database will be created automatically.
Because the frontend uses a Service Worker for browser-side JSX compilation, it must be served through an HTTP server.
Run backend:
python main.pyOpen:
http://localhost:8000
FastAPI automatically serves frontend assets.
cd frontend
python -m http.server 3000Open:
http://localhost:3000
Ensure backend is running on port 8000.
The Research module uses a chain of specialized AI agents:
Creates structured research sections.
Collects information and notes.
Reviews findings for:
- Bias
- Logic gaps
- Missing information
Generates the final report.
Adds references and bibliography.
Progress is streamed using:
Server-Sent Events (SSE)
Users can watch research progress live.
Build custom DAG workflows using:
- Triggers
- LLM Nodes
- Delay Nodes
- API Request Nodes
- Conditional Logic
{{node_id.output}}
Outputs can be passed between nodes dynamically.
Upload your documents through the Files Manager.
The system will:
- Chunk documents
- Generate embeddings
- Store vectors
- Enable semantic retrieval
Supported use cases:
- Knowledge bases
- Internal documentation
- Research archives
- Company policies
Search across uploaded knowledge using vector similarity.
Features:
- Context-aware retrieval
- Similarity ranking
- Fast local lookup
- AI-enhanced responses
Supports:
- JWT Authentication
- Password Hashing (bcrypt)
- Protected API Routes
- Session Management
Planned features:
- Role-Based Access Control (RBAC)
- WebSockets
- Redis Caching
- Celery Workers
- Agent Marketplace
- Kubernetes Deployment
- LangGraph Integration
- OpenTelemetry Observability
- Multi-Tenant Architecture
- Fork the repository
- Create a feature branch
git checkout -b feature/new-feature- Commit changes
git commit -m "Add new feature"- Push
git push origin feature/new-feature- Open a Pull Request
MIT License
Feel free to use, modify, and distribute.
If you found this project useful:
β Star the repository
π΄ Fork the project
π οΈ Contribute improvements
π’ Share it with others