Repository navigation
Fixes 32196: Let Azure embeddings use a separate deployment - #38901
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 |
|
@tomasmontielp Thanks for assigning #32196 and #36757. Both fixes are now ready for review in #38901 and #38900. The validation checks on both PRs ask for Shipping → Status and Source on the linked issues. Could you set those fields and rerun Validate PR Metadata on each? |
Code Review ✅ Approved 🟡 Medium riskAdding a separate Azure embedding deployment changes semantic-search request routing; an incorrect setting could disrupt vector generation and retrieval. Adds an optional 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 |
manerow
left a comment
There was a problem hiding this comment.
Thanks @iamkiayun for the fix and for the thorough tests. Looks good to me.
Describe your changes
Fixes #32196. Azure users can set
OPENAI_EMBEDDING_DEPLOYMENTto send semantic-search requests to their embedding deployment while chat continues usingLLM_OPENAI_DEPLOYMENT. Leaving the new setting empty preserves the existing fallback. The embedding health check reports the deployment used for the request.Type of change
Bug fix.
High-level design
The optional setting lives in
llmConfiguration.embeddings.openai. Chat and embeddings continue to share the endpoint, credentials and API version. Existing configurations require no migration.Tests
Focused Java tests send chat and embedding requests to a local HTTP server and check the paths and authentication headers for separate, shared and OpenAI-compatible deployments. Health-check coverage verifies the displayed deployment. No live Azure resource was used.