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

# Observatory

> Observe, govern, and prove the value of every AI agent running on FlowX from one platform.

FlowX Observatory is the operational layer for AI agents. It turns raw LLM telemetry into the four things you need to run agents in production: visibility, control, regulatory evidence, and a credible ROI story.

## What problem this solves

Generic LLM dashboards stop where the hard work starts. Observatory covers the full path: from the first trace your SDK emits to the EU AI Act control your auditor wants signed off, and the Net Present Value your CFO wants to see.

Reach for Observatory when you need to:

* See exactly what every agent, chain, and tool call did
* Enforce policies before unsafe behaviour reaches users
* Stay continuously aligned with EU AI Act, NIST AI RMF, or ISO 42001
* Quantify the financial impact of AI investments

## The four pillars

<CardGroup cols={2}>
  <Card title="Observability" icon="eye" href="./observability/overview">
    Real-time tracing, cost and latency analytics, drift detection, and threshold alerts for every LLM call.
  </Card>

  <Card title="Governance" icon="shield" href="./governance/overview">
    Policy engine, risk scoring, evidence collection, and assessments to keep agents accountable.
  </Card>

  <Card title="Compliance" icon="circle-check" href="./compliance/overview">
    EU AI Act, NIST AI RMF, and ISO 42001 controls mapped to your runtime with automated evaluation.
  </Card>

  <Card title="ROI & value" icon="dollar-sign" href="./roi/overview">
    Risk-adjusted financial ROI, payback, NPV, and Monte Carlo sensitivity per agent and per project.
  </Card>
</CardGroup>

***

## How the pieces fit together

```mermaid theme={"system"}
flowchart LR
    subgraph apps [Your apps]
        SDK[Observatory SDK]
    end

    subgraph platform [Observatory platform]
        API[Observatory API]
        DB[("PostgreSQL<br/>+ pgvector")]
        Guards[Observatory Guards]
    end

    subgraph ui [Observatory UI]
        Obs[Observability]
        Gov[Governance]
        Comp[Compliance]
        ROI[ROI & value]
    end

    SDK -->|/api/report| API
    API --> DB
    API -.->|safety checks| Guards
    DB --> Obs
    DB --> Gov
    DB --> Comp
    DB --> ROI
```

The SDK decorates your agents, chains, and tools and streams events to the Observatory API. The API stores telemetry in PostgreSQL with the `pgvector` extension and optionally forwards content through Observatory Guards for safety checks. Every pillar of the UI reads from the same data — what you observe is what you govern, certify, and report on.

***

## Concept glossary

| Term           | What it means in Observatory                                              |
| -------------- | ------------------------------------------------------------------------- |
| **Org**        | The top-level tenant. Owns apps, datasets, prompts, and experiments.      |
| **App**        | A single AI app. Owns runs and API keys.                                  |
| **Run**        | One execution trace of an agent, chain, or tool.                          |
| **Event**      | A log entry inside a run — for example `chain_start`, `tool_end`, `chat`. |
| **Dataset**    | A test set of inputs used for evaluations.                                |
| **Prompt**     | A versioned prompt template.                                              |
| **Experiment** | An evaluation run that scores a prompt or model against a dataset.        |
| **Policy**     | A governance rule evaluated against runs.                                 |
| **Evidence**   | An artefact that proves a control is met.                                 |
| **Risk score** | A six-dimensional score per app.                                          |

***

## Where to go next

<CardGroup cols={2}>
  <Card title="Getting started" icon="rocket" href="./getting-started">
    Connect your first project and emit your first trace in 15 minutes.
  </Card>

  <Card title="SDK reference" icon="code" href="./sdk/overview">
    Install the SDK and learn the `@agent`, `@chain`, and `@tool` decorators.
  </Card>

  <Card title="Self-hosted setup" icon="wrench" href="./setup/self-hosted">
    Stand up Observatory with Docker Compose for development or on-premise deployments.
  </Card>

  <Card title="AI Platform" icon="hand-sparkles" href="/5.9/ai-platform/ai-in-flowx">
    Build the agents that Observatory observes.
  </Card>
</CardGroup>
