ARIA is a multi-agent research platform that turns complex business questions into structured, source-backed reports.
It decomposes a query into a validated task graph, delegates work to specialized agents, combines web research with long-term memory, performs analysis in an isolated execution environment, and produces a reviewed Markdown and JSON report.
Project status: Active engineering project. The core orchestration pipeline, FastAPI API, agent skills, guardrails, observability, and evaluation framework are implemented. Production hardening, security review, and reliability testing remain important before exposing ARIA to untrusted users.
Research-heavy workflows typically require people to:
- Break a broad question into smaller tasks
- Search multiple sources
- Retrieve and reuse prior research
- Perform calculations or generate charts
- Write and edit a coherent report
- Validate citations and answer quality
- Track cost, latency, and failures
ARIA automates this workflow through a coordinated set of agents with typed contracts, task dependencies, retry and fallback behavior, guardrails, persistent memory, and evaluation hooks.
- Competitive and market research
- Technology and industry analysis
- Executive briefing generation
- Evidence-backed business recommendations
- Research synthesis across repeated sessions
- Numerical analysis and chart generation
- Quality evaluation of AI-generated reports
A request follows this general flow:
User query
│
▼
FastAPI /run endpoint
│
▼
Prompt-injection detection + PII masking
│
▼
Orchestrator
│
├── Plans a validated TaskDAG
├── Routes tasks through the skill registry
├── Executes independent tasks concurrently
└── Enforces timeouts and token budgets
│
├── Researcher
│ ├── Tavily web search
│ ├── Qdrant retrieval
│ └── Research summarisation
│
├── Analyst
│ ├── E2B Python execution
│ ├── Metrics calculation
│ └── Chart generation
│
└── Writer
├── Drafts report sections
├── Self-critiques each section
├── Revises failed sections
└── Produces Markdown and JSON
│
▼
Final report
│
├── Long-term memory persistence
├── Langfuse tracing
└── MLflow cost and evaluation logging
The Orchestrator creates a dependency-aware task graph using TaskDAG. Tasks with satisfied dependencies can run concurrently, while downstream writing tasks receive the outputs of completed research and analysis tasks.
ARIA is implemented as a single FastAPI application with in-process worker agents and supporting infrastructure managed through Docker Compose.
| Agent | Responsibility |
|---|---|
| Orchestrator | Plans the task graph, routes tasks, manages execution, enforces limits, and assembles the final report |
| Researcher | Performs web search, retrieves relevant prior research, and summarises source material |
| Analyst | Runs numerical analysis and chart generation in E2B, and evaluates report quality |
| Writer | Drafts report sections, applies self-critique, revises content, and formats the final report |
Agents expose typed SkillSpec definitions through skills/registry.py.
Skills include:
web_searchrag_retrievesummariserun_pythoncompute_metricschartdraft_sectionself_critiqueformat_report
Each skill specifies its input and output schema, owning agent, risk level, timeout, token limit, and tags. The Orchestrator uses this registry when planning and routing tasks.
ARIA uses two memory layers:
- Session state: Redis-backed state and message handling
- Long-term memory: Qdrant vector storage for cross-session retrieval and research reuse
If the Redis checkpointer dependency is unavailable, development and test environments can fall back to LangGraph's in-memory saver. In-memory state does not survive process restarts.
All application LLM calls are routed through LiteLLM. The configured aliases are:
| Alias | Primary responsibility | Configured model |
|---|---|---|
aria/primary |
Orchestrator and Writer | DeepSeek via OpenRouter |
aria/fast |
Researcher and high-volume calls | Claude Haiku via OpenRouter |
aria/reasoning |
Analyst and code-oriented tasks | Gemini Pro via OpenRouter |
aria/local |
Local fallback | Ollama |
aria/embed |
Embeddings | OpenAI-compatible embedding model via OpenRouter |
The aliases are defined in litellm_config.yaml, allowing model providers to be changed without modifying agent code.
.
├── agents/
│ ├── base.py # Shared agent lifecycle and utilities
│ ├── orchestrator.py # Planning, routing, execution, and report assembly
│ ├── researcher.py # Web search, RAG retrieval, and summarisation
│ ├── analyst.py # Code execution, metrics, and charts
│ ├── writer.py # Draft, critique, revision, and report formatting
│ └── task_dag.py # Validated task graph and execution results
├── api/
│ ├── main.py # FastAPI application and startup wiring
│ ├── routes.py # Run, status, resume, health, and registry endpoints
│ └── session_store.py # Run/session status persistence
├── bus/
│ ├── broker.py # Redis broker
│ └── messages.py # Typed agent-to-agent messages
├── evals/
│ ├── generate_dataset.py # Generate evaluation data from ARIA runs
│ ├── run_fast_evals.py # Offline ROUGE-L and structural checks
│ └── run_full_evals.py # DeepEval and MLflow-backed evaluations
├── guardrails/
│ ├── injection.py # Heuristic and LLM-based injection detection
│ └── pii.py # Presidio-based reversible PII masking
├── memory/
│ ├── session.py # LangGraph Redis checkpointer
│ └── longterm.py # Qdrant-backed long-term memory
├── observability/
│ └── tracing.py # Langfuse spans and MLflow cost logging
├── pipelines/
│ └── aria_pipeline.py # OpenWebUI integration
├── skills/
│ ├── registry.py # SkillSpec and SkillRegistry
│ ├── researcher_skills.py # Researcher capabilities
│ ├── analyst_skills.py # Analyst capabilities
│ └── writer_skills.py # Writer capabilities
├── tools/
│ ├── search.py # Tavily integration
│ ├── rag.py # Qdrant ingestion and retrieval
│ ├── sandbox.py # E2B execution wrapper
│ └── structured_output.py # Pydantic report schemas
├── tests/ # Unit, agent, bus, orchestration, and eval tests
├── docker-compose.yml # Local infrastructure stack
├── Dockerfile # ARIA API image
├── litellm_config.yaml # Model aliases and fallback configuration
├── pyproject.toml # Python dependencies and tooling
└── .env.example # Environment variable template
- Python 3.12+
- FastAPI and Uvicorn
- LangChain and LangGraph
- LiteLLM
- Redis
- Qdrant
- Tavily
- E2B Code Interpreter
- Pydantic
- Presidio and spaCy
- Langfuse
- MLflow
- DeepEval and ROUGE
- Docker Compose
- OpenWebUI integration
Install the following before starting:
- Docker Desktop or Docker Engine with Compose
- Python 3.12+
uv, or a working Python virtual environment- An OpenRouter API key for hosted models
- A Tavily API key for live web search
- An E2B API key for production-grade code execution
git clone https://github.com/glaborie/ARIA.git
cd ARIAcp .env.example .envAt minimum, review and configure:
OPENROUTER_API_KEY=sk-or-...
TAVILY_API_KEY=tvly-...
E2B_API_KEY=e2b_...For a local development environment, the remaining services use defaults supplied by docker-compose.yml. Change default passwords and secrets before using the stack outside a local machine.
docker compose up -dThis starts the ARIA API and supporting services, including:
- Redis
- Qdrant
- LiteLLM
- Ollama
- PostgreSQL
- Langfuse
- MLflow
- OpenWebUI
- ARIA Pipelines
curl http://localhost:8000/healthOpen the API documentation at:
http://localhost:8000/docs
curl -X POST http://localhost:8000/run \
-H "Content-Type: application/json" \
-d '{
"query": "What are the most important enterprise AI trends for 2026?"
}'The response contains a run_id and session_id.
Poll the run:
curl http://localhost:8000/status/<run_id>A completed result includes Markdown and JSON report representations.
POST /runRequest:
{
"query": "Assess the current market for AI coding assistants.",
"session_id": ""
}The query must be between 5 and 2,000 characters.
Response:
{
"run_id": "run-id",
"session_id": "session-id",
"status": "pending",
"message": "Query accepted — poll /status/{run_id} for progress"
}GET /status/{run_id}The response may include:
- Current status
- Final report
- Error details
- Clarification question
- Clarification options
- Timestamps
POST /resume/{run_id}Request:
{
"answer": "Focus on companies with more than 1,000 employees."
}GET /sessionsOptional query parameter:
GET /sessions?limit=20
GET /healthReturns Redis connectivity, registered skill count, and active worker names.
GET /registryInstall the package and development dependencies:
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"On Windows PowerShell:
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -e ".[dev]"Run the API:
uvicorn api.main:app --reload --port 8000Some integrations have development fallbacks:
- Without
TAVILY_API_KEY, web search returns mock results. - Without
E2B_API_KEY, code execution uses a restricted local development fallback. - Without the Redis checkpointer package, session checkpointing falls back to memory.
The local Python execution fallback is not a security boundary. Use E2B for any environment that executes untrusted or model-generated code.
Run the full test suite:
pytestRun fast bus tests without external services:
pytest tests/test_bus.py -k "not integration"Run Redis-dependent integration tests:
docker compose up -d redis
pytest tests/test_bus.py -m integrationRun with coverage:
pytest --cov=. --cov-report=term-missingRun linting:
ruff check .Run type checking:
mypy agents api bus memory observability skills toolsARIA includes two evaluation paths.
Fast evaluations do not require live services:
python evals/run_fast_evals.pyThey check:
- ROUGE-L score
- Minimum report section count
- Citation presence
- Regression against the committed baseline
To update the baseline after a deliberate quality change:
python evals/run_fast_evals.py --update-baselineFull evaluations require the API and infrastructure stack:
ARIA_BASE_URL=http://localhost:8000 \
LITELLM_BASE_URL=http://localhost:4000 \
MLFLOW_TRACKING_URI=http://localhost:5000 \
python evals/run_full_evals.pyFull evaluations use DeepEval metrics including:
- Answer relevancy
- Faithfulness
- Contextual recall
Results are logged to MLflow.
ARIA applies several controls before and during execution:
User queries pass through:
- A heuristic detector for common injection patterns
- An optional LLM-based judge for more subtle attempts
Blocked queries raise PromptInjectionError.
Presidio detects supported entities such as:
- Email addresses
- Phone numbers
- IBANs
- Names
- Credit card numbers
- US Social Security numbers
- Locations
Detected PII is replaced with reversible placeholders before LLM calls. The final report can be de-masked for the original requester.
Model-generated Python is intended to run in E2B ephemeral environments. The local fallback exists only for development and testing.
The Orchestrator enforces:
- Maximum concurrent tasks
- Per-task timeout
- Planning timeout
- Session token budget
- LiteLLM request timeout
- LiteLLM retry and fallback behavior
These controls should be reviewed and tuned before production deployment.
When configured, ARIA exposes operational and quality data through:
| Service | URL | Purpose |
|---|---|---|
| FastAPI / Swagger | http://localhost:8000/docs |
API exploration |
| Langfuse | http://localhost:3000 |
LLM traces and spans |
| MLflow | http://localhost:5000 |
Evaluations, experiments, and cost metrics |
| Qdrant | http://localhost:6333/dashboard |
Vector collections and points |
| OpenWebUI | http://localhost:8080 |
Chat interface |
| LiteLLM | http://localhost:4000 |
Model proxy and routing |
ARIA tracing is designed to fail gracefully: if Langfuse or MLflow is unavailable, the core orchestration pipeline continues with warning logs.
The repository includes pipelines/aria_pipeline.py, which exposes ARIA as an OpenWebUI-compatible pipeline.
The Docker Compose stack starts the pipeline service on:
http://localhost:9099
Configure OpenWebUI to use the pipeline endpoint, then select ARIA Research as a model. The pipeline submits the user's message to /run, polls /status/{run_id}, and streams the completed Markdown report back to the chat interface.
The primary configuration files are:
.env.example— environment variable templatedocker-compose.yml— local service topologylitellm_config.yaml— model aliases, fallbacks, retries, and budget settingspyproject.toml— Python package, test, lint, and build configuration
Important application variables include:
OPENROUTER_API_KEY=
TAVILY_API_KEY=
E2B_API_KEY=
REDIS_URL=
QDRANT_URL=
QDRANT_API_KEY=
QDRANT_COLLECTION=aria_memory
LANGFUSE_PUBLIC_KEY=
LANGFUSE_SECRET_KEY=
LANGFUSE_HOST=
MLFLOW_TRACKING_URI=
LOG_LEVEL=INFO
ARIA_DEFAULT_MODEL=
ARIA_SESSION_TOKEN_BUDGET=60000Recommended next steps before production adoption:
- Add authentication and authorization to the API.
- Add tenant isolation for sessions, memory, traces, and reports.
- Replace permissive CORS defaults with an explicit allowlist.
- Add API rate limiting and request quotas.
- Move long-running execution from FastAPI background tasks to a durable worker queue.
- Add stronger provenance and citation verification.
- Add end-to-end tests against a controlled service environment.
- Harden secret management and remove development credentials from default deployments.
- Define report-quality SLOs for latency, citation coverage, faithfulness, and failure rate.
- Add persistent run cancellation and retry controls.
- Review the E2B package-install path and sandbox permissions.
- Add production deployment manifests and backup/restore procedures.
- Create a feature branch.
- Add or update tests for behavioral changes.
- Run formatting, linting, type checks, and fast evaluations.
- Document new skills, endpoints, configuration, or infrastructure dependencies.
- Open a pull request describing:
- The product or engineering problem
- The proposed change
- Operational impact
- Evaluation results
- Security considerations
Before submitting:
pytest
ruff check .
mypy agents api bus memory observability skills tools
python evals/run_fast_evals.pyARIA is released under the MIT License.