Skip to content

fix(agents): handle embedding model dim changes on collection upload#9365

Merged
mudler merged 1 commit into
masterfrom
fix/embedding-dim-migration
Apr 15, 2026
Merged

fix(agents): handle embedding model dim changes on collection upload#9365
mudler merged 1 commit into
masterfrom
fix/embedding-dim-migration

Conversation

@mudler

@mudler mudler commented Apr 15, 2026

Copy link
Copy Markdown
Owner

Bumps LocalAGI to pick up the LocalRecall postgres backend fix that resizes the pgvector column when the configured embedding model returns vectors of a different dimensionality than the existing collection. Switching the agent pool's embedding model now triggers a transparent re-embed at startup instead of failing every subsequent upload with 'expected N dimensions, not M' (SQLSTATE 22000).

Also surfaces a 409 with an actionable message in
UploadToCollectionEndpoint as a safety net for the rare cases the upstream migration path doesn't cover (e.g. a model swapped at runtime), instead of the previous opaque 500.

Bumps LocalAGI to pick up the LocalRecall postgres backend fix that
resizes the pgvector column when the configured embedding model
returns vectors of a different dimensionality than the existing
collection. Switching the agent pool's embedding model now triggers
a transparent re-embed at startup instead of failing every subsequent
upload with 'expected N dimensions, not M' (SQLSTATE 22000).

Also surfaces a 409 with an actionable message in
UploadToCollectionEndpoint as a safety net for the rare cases the
upstream migration path doesn't cover (e.g. a model swapped at
runtime), instead of the previous opaque 500.
@mudler mudler added the bug Something isn't working label Apr 15, 2026
@mudler mudler merged commit ad3c8c4 into master Apr 15, 2026
41 checks passed
@mudler mudler deleted the fix/embedding-dim-migration branch April 15, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

1 participant