Documentation Index
Fetch the complete documentation index at: https://docs.langsight.dev/llms.txt
Use this file to discover all available pages before exploring further.
Standard upgrade procedure
Every upgrade follows the same four steps:alembic upgrade head step.
Named Docker volumes (
langsight_postgres_data, langsight_clickhouse_data) persist across docker compose down and docker compose pull. Your data is not affected by image updates.Before you upgrade
Back up first. Especially for production deployments:Version-specific notes
Upgrading to v0.14.x (current)
No breaking changes. Standard procedure applies. New env vars introduced across v0.14.x:| Variable | Default | What it does |
|---|---|---|
LANGSIGHT_WORKERS | 1 | Uvicorn worker count; requires Redis if > 1 |
LANGSIGHT_REDIS_URL | — | Redis connection string for multi-worker mode |
LANGSIGHT_TRUSTED_PROXY_CIDRS | 127.0.0.1/32,::1/128 | CIDRs of trusted reverse proxies |
LANGSIGHT_METRICS_TOKEN | — | Bearer token for /metrics (Prometheus) |
Upgrading to v0.7.0
Schema changes are applied automatically on restart — no manual SQL required. Thealembic upgrade head step handles them idempotently.
PostgreSQL changes (auto-applied via IF NOT EXISTS):
| Table | Change |
|---|---|
health_results | project_id TEXT NOT NULL DEFAULT '' column added |
audit_logs | project_id TEXT NOT NULL DEFAULT '' column added |
project_id = '' (unscoped / global).
ClickHouse changes (auto-applied on startup):
| Object | Change |
|---|---|
mv_agent_sessions | Materialized view rebuilt to include project_id; backfilled from mcp_tool_calls |
Upgrading from SQLite to dual (Postgres + ClickHouse)
If you started withmode: sqlite for evaluation and want to move to production storage:
- Export your current server configs from the UI (Settings → MCP Servers)
- Start the full stack:
docker compose up -d - Update
.env/.langsight.yaml:
- Apply migrations:
docker compose exec api uv run alembic upgrade head - Re-create your API keys and users via the dashboard (SQLite users are not migrated)
Rollback procedure
If an upgrade causes issues, roll back the image and reverse the migration:Checking your current version
Related
- Backup & Restore — full backup and restore procedure
- Configuration Reference — all environment variables
- Feature Matrix — which features require which backends
- Docker Compose — full stack setup reference