Skip to content

Commit 2f280b1

Browse files
updated the upload team and process sample data script
1 parent 69e03a7 commit 2f280b1

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

infra/scripts/Process-Sample-Data.ps1

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ if ($ResourceGroup) {
121121
# Upload CSV files
122122
Write-Host "Uploading CSV files to blob storage..."
123123
az storage blob upload-batch --account-name $StorageAccount --destination $BlobContainer --source "data/datasets" --auth-mode login --pattern "*.csv" --overwrite --output none
124+
az storage blob upload-batch --account-name $StorageAccount --destination $BlobContainer --source "data/datasets" --auth-mode login --pattern "*.json" --overwrite --output none
124125
if ($LASTEXITCODE -ne 0) { Write-Host "Error: Failed to upload CSV files."; exit 1 }
125126
Write-Host "CSV files uploaded successfully."
126127

@@ -186,11 +187,11 @@ if ($hasCsv) {
186187
& $pythonCmd "infra/scripts/index_datasets.py" $StorageAccount $BlobContainer $AiSearch $AiSearchIndex
187188
if ($LASTEXITCODE -ne 0) { Write-Host "Error: CSV indexing script failed."; exit 1 }
188189
}
189-
if ($hasPdf) {
190-
Write-Host "Running the python script to index PDF data"
191-
& $pythonCmd "infra/scripts/index_rfp_data.py" $StorageAccount $BlobContainer $AiSearch $AiSearchIndex
192-
if ($LASTEXITCODE -ne 0) { Write-Host "Error: PDF indexing script failed."; exit 1 }
193-
}
190+
# if ($hasPdf) {
191+
# Write-Host "Running the python script to index PDF data"
192+
# & $pythonCmd "infra/scripts/index_rfp_data.py" $StorageAccount $BlobContainer $AiSearch $AiSearchIndex
193+
# if ($LASTEXITCODE -ne 0) { Write-Host "Error: PDF indexing script failed."; exit 1 }
194+
# }
194195
if (-not $hasCsv -and -not $hasPdf) {
195196
Write-Host "No CSV or PDF files found to index."
196197
}

infra/scripts/upload_team_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
print(f"Scanning directory: {directory_path}")
1616

1717
files_to_process = [
18-
("RFP_Analysis_team", "00000000-0000-0000-0000-000000000001"),
18+
("RFP_Analysis_team.json", "00000000-0000-0000-0000-000000000001"),
1919
("hr.json", "00000000-0000-0000-0000-000000000002"),
2020
("marketing.json", "00000000-0000-0000-0000-000000000003"),
2121
("retail.json", "00000000-0000-0000-0000-000000000004"),

0 commit comments

Comments
 (0)