Skip to content

Fixes 32196: Let Azure embeddings use a separate deployment (backport 2.1 #38901) - #39096

Open
manerow wants to merge 1 commit into
2.1from
fix/32196-azure-embedding-deployment-2.1
Open

manerow wants to merge 1 commit into
2.1from
fix/32196-azure-embedding-deployment-2.1

Conversation

@manerow

@manerow manerow commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

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 using LLM_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

  • The diff is the same as Fixes 32196: Let Azure embeddings use a separate deployment #38901. One test file needed a manual merge: SystemRepositoryEmbeddingsValidationTest on 2.1 has two pipeline tests that main does not, so I kept both sets.
  • Setting the new deployment without LLM_OPENAI_ENDPOINT fails with a message naming the env var, instead of falling back to api.openai.com.

Verification

  • OpenAIEmbeddingClientTest and SystemRepositoryEmbeddingsValidationTest pass on this branch (46 tests, 0 failures).
  • mvn spotless:check is clean for openmetadata-service and openmetadata-spec.

@manerow
manerow requested a review from a team as a code owner November 27, 2026 16:26
@manerow
manerow requested review from pmbrull and removed request for a team November 27, 2026 16:26
@manerow manerow added the skip-pr-checks Bypass PR metadata validation check label Nov 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Adding a separate Azure embedding deployment changes semantic-search request routing; a misconfigured deployment could disrupt vector indexing or retrieval.

Adds a separate OPENAI_EMBEDDING_DEPLOYMENT setting so Azure OpenAI semantic-search embeddings can use their own deployment instead of the chat deployment, with LLM_OPENAI_DEPLOYMENT still used for chat and the chat deployment reused when the new setting is empty. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-pr-checks Bypass PR metadata validation check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant