> ## Documentation Index
> Fetch the complete documentation index at: https://aivision.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Read the relevant procedure and prerequisites before suggesting commands. Cite the section and give an observable check. Treat sample data as illustrative. Report product actions and results only when verified in the user's environment.

# Architecture overview

> Understand query services, diagnosis and the three storage responsibilities.

AI Vision connects execution records, space authorization and diagnosis tasks. Knowing which service owns each step helps explain why a working web page may still show no data.

This chapter is for developers deploying, maintaining, or studying the implementation. For first-time use, complete the [Agent tutorial](https://aivision.mintlify.site/en/web-quickstart.md) or [SDK tutorial](https://aivision.mintlify.site/en/integrations/langfuse.md), then return with a concrete question.

## Query and storage boundaries

[![Platform queries and storage boundaries](https://mintcdn.com/aivision/IXZvq4am8qG0NjqT/assets/architecture/overview.en.light.svg?fit=max\&auto=format\&n=IXZvq4am8qG0NjqT\&q=85\&s=5ec7b6a894c5a6aa3cdfc9ab2a68f563)](https://aivision.mintlify.site/assets/architecture/overview.en.light.svg)

[![Platform queries and storage boundaries](https://mintcdn.com/aivision/IXZvq4am8qG0NjqT/assets/architecture/overview.en.dark.svg?fit=max\&auto=format\&n=IXZvq4am8qG0NjqT\&q=85\&s=e764303862ada19340058e6f1e3feb25)](https://aivision.mintlify.site/assets/architecture/overview.en.dark.svg)

Platform queries and storage boundaries

Select the diagram to open the full-size SVG in a new tab.

Arrows show calls or read/write direction. See [Data flow and identity](https://aivision.mintlify.site/en/architecture/data-flow.md) for ingestion and [Diagnosis architecture](https://aivision.mintlify.site/en/architecture/diagnosis.md) for result writes.

| Component | Responsibility | What to check |
| - | - | - |
| Web (React / Vite) | Dashboards, traces, sessions and diagnosis results | Selected space, Agent, source and time range. |
| Django | User and space authorization, ingestion credentials, query routing and diagnosis API proxy | Permissions, Agent bindings and downstream reachability. |
| Antcollector | Verify ingestion tokens, stamp trusted identity and batch OTLP forwarding | Client access to ingestion and valid credentials. |
| SigNoz | Accept telemetry and provide observation query APIs | Ingestion, query access and OceanBase telemetry storage. |
| AgentLens | Manage diagnosis configuration, schedule and execute Tasks, query results and statistics | Dataset, window, task state and diagnoser applicability. |

SigNoz is a deployment dependency whose service source is outside this monorepo. Its interfaces here are described from deployment configuration and caller code.

## Three databases do not imply three clusters

The default deployment initializes the logical databases `aivision`, `agentlens` and `signoz`. They can share one OceanBase instance; separate boxes distinguish their responsibilities. Docker can also use OceanBase seekdb for these three logical databases, with the same service responsibilities and data flow. See [Docker deployment](https://aivision.mintlify.site/en/deployment/docker.md) for the selection and support boundaries.

* **`aivision`**: users, spaces, Agents, ingestion configuration and other platform state.
* **`agentlens`**: Diagnosers, Datasets, Jobs, Tasks, leader leases, heartbeats and terminal statistics.
* **`signoz`**: raw telemetry, DiagnosisRecords and terminal TaskStats used by analytical queries.

Django uses the SigNoz HTTP API for observation queries. AgentLens reads traces, diagnosis records and statistics directly from telemetry tables over the OceanBase MySQL protocol. It writes results through Antcollector using OTLP. The platform database does not store raw traces.

## Deployment changes the entry point

The [deployment overview](https://aivision.mintlify.site/en/deployment/overview.md) compares Docker CLI, [product Compose](https://aivision.mintlify.site/en/deployment/compose.md) and [fixed Kubernetes deployment](https://aivision.mintlify.site/en/deployment/kubernetes.md). All three retain the same five application roles—`frontend`, `backend`, `diagnosis`, `ingest-gateway` and `data-backend`—plus the database engine. These role names do not rename existing resources or change storage ownership. Docker supports managed or external CE / seekdb; fixed Kubernetes supports only OB Operator-managed CE.

Fixed Kubernetes uses one Ingress for Web and OTLP HTTP, routing each path to its service. See [Kubernetes deployment](https://aivision.mintlify.site/en/deployment/kubernetes.md) for public addresses and TLS, and [initialization and readiness](https://aivision.mintlify.site/en/deployment/overview.md#initialization-goes-beyond-starting-containers) for the distinction between starting processes and completing product setup.

`aiv` is a client for deployment, onboarding and queries. It does not add a persistent query service.

## Follow the symptom

| Symptom | Start here |
| - | - |
| Web works but traces are missing | [Ingestion, identity and query scope](https://aivision.mintlify.site/en/architecture/data-flow.md). |
| Traces exist but diagnosis results do not | [Task reads, execution and persistence](https://aivision.mintlify.site/en/architecture/diagnosis.md). |
| Browser access works but Agent exports fail | [Ingress routes and public addresses](https://aivision.mintlify.site/en/deployment/kubernetes.md). |

Match your deployed version, data source, and public addresses before using these service boundaries to narrow an investigation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.