Repository navigation
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 riskAdding a separate Azure embedding deployment changes semantic-search request routing; a misconfigured deployment could disrupt vector indexing or retrieval. Adds a separate 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
SystemRepositoryEmbeddingsValidationTeston 2.1 has two pipeline tests that main does not, so I kept both sets.LLM_OPENAI_ENDPOINTfails with a message naming the env var, instead of falling back toapi.openai.com.Verification
OpenAIEmbeddingClientTestandSystemRepositoryEmbeddingsValidationTestpass on this branch (46 tests, 0 failures).mvn spotless:checkis clean foropenmetadata-serviceandopenmetadata-spec.