OpenVortexAI Docs
Architecture

Architecture overview

The major OpenVortexAI components and how a request moves through the platform.

OpenVortexAI separates the browser interface, API policy layer, durable data, retrieval services, and optional search egress.

Request path

  1. A user authenticates through a local account or Entra ID.
  2. The web app calls the FastAPI service.
  3. The API checks user, role/group, model, file, and feature permissions.
  4. The API assembles approved chat history, file context, RAG results, search results, and optional visuals.
  5. The provider gateway sends a normalized request to the selected approved provider.
  6. Streaming output returns through the API to the browser.
  7. Relevant administrative and security events are written to the audit trail.

Chat Flow

The chat execution path changes according to web mode and the selected model's managed-tool support. The Mermaid diagram below follows the canonical execution graph. Scroll to explore it, use Full screen for a focused view, or choose Download PNG for an offline copy.

Exact Mermaid execution graphScroll to explore every branch in the canonical chat flow.
Rendering the exact chat flow…
This is the canonical Mermaid flow for web-mode routing, managed tools, compatibility fallback, auditing, and final response streaming.

How the flow is bounded

  • Web Off: the API calls the selected model without web tools.
  • Compatibility path: when a model cannot use managed tools, Auto mode may pre-search only when current information is needed; On and Research modes pre-search directly. Search results are sanitized before being attached as model context.
  • Managed-tool path: supported models enter a bounded harness. Auto lets the model decide whether to search, while On and Research require an initial search with mode-specific limits.
  • Tool safety: only web_search and web_fetch are allowed. Queries pass DLP checks, fetched URLs must originate from the user or prior search results, and the Search Broker blocks private or unsafe network targets.
  • Failure behavior: broker and tool failures return non-fatal, safe errors to the model. If a provider rejects its tool protocol, OpenVortexAI falls back to compatibility pre-search.
  • Completion: the API records web calls, enforces the tool-call limit, streams the answer, and saves token metrics, citations, and audit data.

Storage

PostgreSQL holds application records and pgvector embeddings. Uploaded source files live in mapped API storage. Valkey supports cache or session-adjacent work. This design keeps vectors with the primary database rather than requiring a separate vector service.

Trust boundary

The API is the central policy boundary. Browser UI visibility is not the authorization layer. File access, model access, admin actions, and outbound context decisions must be enforced by the backend.

On this page