Repository navigation
Fixes 32196: Let Azure embeddings use a separate deployment (backport 2.1 #38901) - #39096
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved 🟡 Medium riskSeparating Azure embedding deployment routing from chat could send vector requests to an invalid deployment, disrupting semantic indexing and retrieval. Lets Azure OpenAI installs send semantic-search embedding requests to a separate deployment set via VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Issue
Cherry-pick of #38901 (Fixes #32196)
What
Azure OpenAI installs can now send semantic-search embedding requests to their own deployment, set with
OPENAI_EMBEDDING_DEPLOYMENT. Chat keeps usingLLM_OPENAI_DEPLOYMENT. When the new setting is empty, embeddings keep using the chat deployment, so existing configurations behave as before.Why
Azure puts the deployment name in the request URL, and the chat and embedding models usually have different deployment names. Until now the embedding client reused the chat deployment, so Azure rejected the request and semantic search could not index or retrieve vectors.
Notes for review
LLM_OPENAI_ENDPOINTfails with a message naming the env var, instead of falling back toapi.openai.com.Verification
OpenAIEmbeddingClientTestandSystemRepositoryEmbeddingsValidationTestpass on this branch after merging2.1(44 tests, 0 failures).mvn spotless:checkis clean foropenmetadata-serviceandopenmetadata-spec.