File tree Expand file tree Collapse file tree 4 files changed +9
-13
lines changed
Expand file tree Collapse file tree 4 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ if (-not $virtualMachineId) {
2222 Write-Host " 2. Navigate to the scripts directory: cd $PSScriptRoot "
2323 Write-Host " 3. Run the below commands to process & ingest the sample data:"
2424 Write-Host " Set-ExecutionPolicy RemoteSigned -Scope CurrentUser"
25- Write-Host " .\process_sample_data.ps1 -SearchEndpoint '$env: AZURE_SEARCH_ENDPOINT ' -OpenAiEndpoint ' $ env: AZURE_OPENAI_ENDPOINT ' - ProjectEndpoint '$env: AZURE_AI_AGENT_ENDPOINT ' -EmbeddingModelName '$env: EMBEDDING_MODEL_NAME ' -EmbeddingModelApiVersion '2025-01-01-preview' -UseLocalFiles `$ true"
25+ Write-Host " .\process_sample_data.ps1 -SearchEndpoint '$env: AZURE_SEARCH_ENDPOINT ' -ProjectEndpoint '$env: AZURE_AI_AGENT_ENDPOINT ' -EmbeddingModelName '$env: EMBEDDING_MODEL_NAME ' -EmbeddingModelApiVersion '2025-01-01-preview' -UseLocalFiles `$ true"
2626} else {
2727 Write-Host " To ingest the sample data, follow these steps:"
2828 Write-Host " 1. Login to the Virtual Machine using the username '$userName ' and Password provided during deployment."
2929 Write-Host " 2. Open the PowerShell terminal."
3030 Write-Host " 3. Navigate to the scripts directory: cd C:\DataIngestionScripts"
3131 Write-Host " 4. Run the following commands to process & ingest the sample data:"
32- Write-Host " powershell -ExecutionPolicy Bypass -File process_sample_data.ps1 -SearchEndpoint '$env: AZURE_SEARCH_ENDPOINT ' -OpenAiEndpoint ' $ env: AZURE_OPENAI_ENDPOINT ' - ProjectEndpoint '$env: AZURE_AI_AGENT_ENDPOINT ' -EmbeddingModelName '$env: EMBEDDING_MODEL_NAME ' -EmbeddingModelApiVersion '2025-01-01-preview'"
32+ Write-Host " powershell -ExecutionPolicy Bypass -File process_sample_data.ps1 -SearchEndpoint '$env: AZURE_SEARCH_ENDPOINT ' -ProjectEndpoint '$env: AZURE_AI_AGENT_ENDPOINT ' -EmbeddingModelName '$env: EMBEDDING_MODEL_NAME ' -EmbeddingModelApiVersion '2025-01-01-preview'"
3333}
Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ if [ -z "$virtualMachineId" ]; then
1919 echo " 1. Open the terminal."
2020 echo " 2. Navigate to the scripts directory: cd $SCRIPT_DIR /scripts"
2121 echo " 3. Run the following command to process the sample data:"
22- echo " ./process_sample_data.sh '$AZURE_SEARCH_ENDPOINT ' '$AZURE_OPENAI_ENDPOINT ' ' $ AZURE_AI_AGENT_ENDPOINT ' '$EMBEDDING_MODEL_NAME ' '2025-01-01-preview'"
22+ echo " ./process_sample_data.sh '$AZURE_SEARCH_ENDPOINT ' '$AZURE_AI_AGENT_ENDPOINT ' '$EMBEDDING_MODEL_NAME ' '2025-01-01-preview'"
2323else
2424 echo " To ingest the sample data, follow these steps:"
2525 echo " 1. Login to the Virtual Machine using the username '$userName ' and Password provided during deployment."
2626 echo " 2. Open the PowerShell terminal."
2727 echo " 3. Navigate to the scripts directory: cd C:\\ DataIngestionScripts"
2828 echo " 4. Run the following command to process the sample data:"
29- echo " powershell -ExecutionPolicy Bypass -File process_sample_data.ps1 -SearchEndpoint '$AZURE_SEARCH_ENDPOINT ' -OpenAiEndpoint ' $AZURE_OPENAI_ENDPOINT ' - ProjectEndpoint '$AZURE_AI_AGENT_ENDPOINT ' -EmbeddingModelName '$EMBEDDING_MODEL_NAME ' -EmbeddingModelApiVersion '2025-01-01-preview'"
29+ echo " powershell -ExecutionPolicy Bypass -File process_sample_data.ps1 -SearchEndpoint '$AZURE_SEARCH_ENDPOINT ' -ProjectEndpoint '$AZURE_AI_AGENT_ENDPOINT ' -EmbeddingModelName '$EMBEDDING_MODEL_NAME ' -EmbeddingModelApiVersion '2025-01-01-preview'"
3030fi
Original file line number Diff line number Diff line change 11param (
22 [string ]$SearchEndpoint ,
3- [string ]$OpenAiEndpoint ,
43 [string ]$ProjectEndpoint ,
54 [string ]$EmbeddingModelName ,
65 [string ]$EmbeddingModelApiVersion ,
@@ -60,7 +59,6 @@ Write-Host "Using Python command: $pythonExe"
6059
6160# --- Set Environment Variables ---
6261$env: SEARCH_ENDPOINT = $SearchEndpoint
63- $env: OPEN_AI_ENDPOINT_URL = $OpenAiEndpoint
6462$env: AZURE_AI_AGENT_ENDPOINT = $ProjectEndpoint
6563$env: EMBEDDING_MODEL_NAME = $EmbeddingModelName
6664$env: EMBEDDING_MODEL_API_VERSION = $EmbeddingModelApiVersion
Original file line number Diff line number Diff line change @@ -5,13 +5,12 @@ set -o pipefail
55
66# --- Input Parameters ---
77SearchEndpoint=" $1 "
8- OpenAiEndpoint=" $2 "
9- ProjectEndpoint=" $3 "
10- EmbeddingModelName=" $4 "
11- EmbeddingModelApiVersion=" $5 "
8+ ProjectEndpoint=" $2 "
9+ EmbeddingModelName=" $3 "
10+ EmbeddingModelApiVersion=" $4 "
1211
13- if [ $# -ne 5 ]; then
14- echo " Usage: $0 <SearchEndpoint> <OpenAiEndpoint> < ProjectEndpoint> <EmbeddingModelName> <EmbeddingModelApiVersion>"
12+ if [ $# -ne 4 ]; then
13+ echo " Usage: $0 <SearchEndpoint> <ProjectEndpoint> <EmbeddingModelName> <EmbeddingModelApiVersion>"
1514 exit 1
1615fi
1716
@@ -44,7 +43,6 @@ echo "$PROCESS_DATA_SCRIPT" | tee -a "$LOG_FILE"
4443
4544# --- Export environment variables ---
4645export SEARCH_ENDPOINT=" $SearchEndpoint "
47- export OPEN_AI_ENDPOINT_URL=" $OpenAiEndpoint "
4846export AZURE_AI_AGENT_ENDPOINT=" $ProjectEndpoint "
4947export EMBEDDING_MODEL_NAME=" $EmbeddingModelName "
5048export EMBEDDING_MODEL_API_VERSION=" $EmbeddingModelApiVersion "
You can’t perform that action at this time.
0 commit comments