Our Python SDK got smarter. We developed a Typscript SDK too. We are updating our SDK code blocks. Python SDKhere.Typscript SDKhere.
Description

External databases

Patronus AI recommends using managed database services in production environments. For example, on AWS, use Aurora/RDS for PostgreSQL and ElastiCache for Redis or Valkey caches.

The following sections show how to configure external databases in the values.yaml file.

PostgreSQL

To use an external PostgreSQL database, enable the external option and disable the internal deployment.

global:
  postgresql:
    auth:
      username: <POSTGRESQL_USERNAME>
      password: <POSTGRESQL_PASSWORD>
    external:
      enabled: true
      host: <POSTGRESQL_HOST>
 
postgresql:
  # Disables the internal PostgreSQL deployment
  enabled: false

Redis

To use an external Redis instance, enable the external option and disable the internal deployment.

global:
  redis:
    password: <REDIS_PASSWORD>
  external:
    enabled: true
    host: <REDIS_HOST>
 
redis:
  # Disables the internal Redis deployment
  enabled: false

ClickHouse

You can use ClickHouse Cloud for the OpenTelemetry Collector (optional), deploy your own ClickHouse instance, or use PostgreSQL to store evaluation logs.

global:
  otel:
    # Use an external ClickHouse host instead of PostgreSQL
    clickhouse:
      enabled: true
      host: <CLICKHOUSE_HOST>
      database: <CLICKHOUSE_DATABASE>
      auth:
        username: <CLICKHOUSE_USERNAME>
        password: <CLICKHOUSE_PASSWORD>

Weaviate

You can use the Weaviate vector database for Patronus Trace Insights (optional). Alternatively, you can use PostgreSQL with the pgvector extension.

patronus-trace-insights-api:
  enabled: true
  weaviateConfig:
    http_url: <WEAVIATE_HTTP_URL>
    grpc_url: <WEAVIATE_GRPC_URL>
    x_api_key: <X_API_KEY>
    api_keys:
      openai: <OPENAI_API_KEY>
      voyageai: <VOYAGEAI_API_KEY>
    timeouts:
      init_sec: 30
      query_sec: 60
      insert_sec: 120

← Back to Self Hosting Guide

On this page