Advanced Topics
Advanced Topics
Go beyond the defaults: scale, debug, and develop HridaAI for production and contribution.
HridaAI works out of the box for personal use, but real-world deployments need more: production databases, horizontal scaling, structured logging, observability. This section covers everything between "it runs on my laptop" and "it serves my entire organization."
The default SQLite database and single-worker setup top out at small-team usage. Learn how to swap in PostgreSQL, add Redis for shared state, run multiple replicas behind a load balancer, and choose an external vector database, all without re-architecting your deployment.
When something goes wrong at scale, the first question is always "what do the logs say?" Configure log levels, enable structured JSON output for log aggregators, and connect OpenTelemetry for end-to-end traces across your entire stack.
Set up a local development environment with hot-reloading frontend and backend, understand the contribution workflow, and start shipping pull requests.
Move from SQLite to PostgreSQL, add Redis, run multiple replicas, configure external vector databases, and set up shared storage and observability.
Configure log levels, enable debug output, and switch to structured JSON logging for production log aggregators.
Clone the repo, run the frontend and backend side by side, test on other devices, and submit pull requests.
Lock down authentication, secrets, CORS, security headers, audit logging, and network access for production deployments.