Goal: move from text-embedding-3-small (1536-dim) to
text-embedding-3-large at the same 1536-dim.
This is a same-dimension switch, so no schema change is needed. The full procedure lives in Embedding Migration; the summary:
EMBEDDING_MODEL = text-embedding-3-large REEMBED_ON_STARTUP = true
sudo systemctl restart ownsona.service
journalctl -u ownsona.service -f | grep reembed
sudo -u ownsona psql -d ownsona -c \ "SELECT embedding_model, count(*) FROM memories GROUP BY 1;"
A different-dimension switch adds one step: write a migration class that resizes the vector column. See Procedure B: different-dimension switch.