Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Open AI embeddings config migration & Seeded indexes cleanup #1092

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

romanrizzi
Copy link
Member

This change fixes two different problems.

First, we add a data migration to migrate the configuration of sites using Open AI's embedding model. There was a window between the embedding config changes and #1087, where sites could end up in a broken state due to an unconfigured selected model setting, as reported on https://meta.discourse.org/t/-/348964

The second fix drops pre-seeded search indexes of the models we didn't migrate and corrects the ones where the dimensions don't match. Since the index uses the model ID, new embedding configs could use one of these ones even when the dimensions no longer match.

@romanrizzi romanrizzi changed the title FIX: Open AI embeddings config migration & Seeded indexes cleanup & FIX: Open AI embeddings config migration & Seeded indexes cleanup Jan 27, 2025
@romanrizzi romanrizzi force-pushed the followup_embedding_config branch from 9c604f8 to 55743cb Compare January 27, 2025 17:32
This change fixes two different problems.

First, we add a data migration to migrate the configuration of sites using Open AI's embedding model. There was a window between the embedding config changes and #1087, where sites could end up in a broken state due to an unconfigured selected model setting, as reported on https://meta.discourse.org/t/-/348964

The second fix drops pre-seeded search indexes of the models we didn't migrate and corrects the ones where the dimensions don't match. Since the index uses the model ID, new embedding configs could use one of these ones even when the dimensions no longer match.
@romanrizzi romanrizzi force-pushed the followup_embedding_config branch from 55743cb to 538aaf5 Compare January 27, 2025 17:45
@romanrizzi romanrizzi merged commit a53719a into main Jan 27, 2025
6 checks passed
@romanrizzi romanrizzi deleted the followup_embedding_config branch January 27, 2025 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants