Documentation Index
Fetch the complete documentation index at: https://docs.kaireonai.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
KaireonAI’s interaction store is the highest-volume component in the platform — everyrecommend and respond call reads or writes interaction data. The platform supports four backend implementations that you can switch between via a single API call, with no code changes or redeployment required.
Interaction Store Backend Toggle
The active backend is stored as a tenant-level setting and can be read or changed via the API:Available Backends
| Backend | Value | Best For |
|---|---|---|
| PostgreSQL | postgresql | Development, small deployments (<500K customers) |
| AWS Keyspaces | keyspaces | Managed Cassandra-compatible, moderate scale |
| ScyllaDB | scylla | High throughput, low latency, self-managed |
| DynamoDB | dynamodb | Serverless, auto-scaling, multi-region |
postgresql is the default and requires no additional infrastructure beyond your existing database.
All four implementations exist and are fully functional. Switching the setting changes which adapter handles reads and writes immediately.
When to Switch
Consider moving off PostgreSQL when any of the following apply:| Signal | Threshold |
|---|---|
| Customer base | >500K active customers |
| Write throughput | >1,000 writes/sec sustained |
| Multi-region requirement | Need cross-region replication |
| Query latency | Interaction queries degrading OLTP performance |
Migration Path
Switching backends does not automatically migrate existing data. Follow this pattern for a zero-downtime migration:Step 1 — Dual-Write
Enable dual-write mode so new interactions are written to both the old and new backends simultaneously:Step 2 — Backfill from Exported Files
Use the exported interaction files (Hive-partitioned JSONL) to backfill historical data into the new backend. This avoids reading from the production PostgreSQL database during migration.Step 3 — Switch Reads
Once the backfill is complete and you have verified data consistency, switch reads to the new backend:Related
Infrastructure Backends
Full details on all pluggable backends (cache, events, search, and more).
Retention & Archival
Export interaction history before migration or cleanup.
Capacity Planning
Size your infrastructure for production workloads.