Add a DB to the project to store each knowledge table.
Why
We currently just store in memory for ease of use. Works fine, but for larger workloads or analytical usecases it would be good to have persistent backend storage.
Implementation guidance
Add DB into dockerfile (probably postgres), add an ORM (probably tortoise) and some migrations (probably alembic).
What
Add a DB to the project to store each knowledge table.
Why
We currently just store in memory for ease of use. Works fine, but for larger workloads or analytical usecases it would be good to have persistent backend storage.
Implementation guidance
Add DB into dockerfile (probably postgres), add an ORM (probably tortoise) and some migrations (probably alembic).