This repository was archived by the owner on Sep 28, 2026. It is now read-only.
Repository navigation
refactor: Replace OpenAI API cal with Foundry SDK - #93
Closed
NirajC-Microsoft wants to merge 1 commit into
Closed
NirajC-Microsoft wants to merge 1 commit into
NirajC-Microsoft wants to merge 1 commit into
Conversation
NirajC-Microsoft
requested review from
Avijit-Microsoft,
Prajwal-Microsoft,
Roopan-Microsoft,
Vinay Sharma (Vinay-Microsoft) and
Anish Arora (aniaroramsft)
as code owners
November 28, 2025 06:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request updates the data processing pipeline to use the Azure AI Foundry Project endpoint for generating embeddings, replacing the previous OpenAI endpoint and SDK integration. The changes span infrastructure outputs, environment variable handling, script interfaces, and the Python data processing logic, ensuring seamless integration with Azure AI Foundry and its EmbeddingsClient SDK.
Infrastructure and configuration updates:
aiFoundryAiProjectEndpointoutput toinfra/modules/cognitive-services/main.bicepand exposed it ininfra/main.bicep, making the AI Foundry Project endpoint available for downstream services. [1] [2]infra/main.parameters.jsonto include the newaiFoundryAiProjectEndpointparameter for deployment configuration.Script and environment variable changes:
scripts/process_sample_data.ps1) and Bash (scripts/process_sample_data.sh) scripts to accept and export the newProjectEndpointparameter/environment variable, updating usage instructions in provisioning scripts accordingly. [1] [2] [3] [4] [5] [6]Python data processing logic updates:
scripts/index_scripts/02_process_data.pyto use the Azure AI Inference SDK (azure-ai-inference) and the Foundry endpoint for embedding generation, replacing the OpenAI SDK and endpoint. [1] [2] [3]azure-ai-inferenceinstead ofopenai.Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information