File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ if ($ResourceGroup) {
121121# Upload CSV files
122122Write-Host " Uploading CSV files to blob storage..."
123123az 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
124125if ($LASTEXITCODE -ne 0 ) { Write-Host " Error: Failed to upload CSV files." ; exit 1 }
125126Write-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+ # }
194195if (-not $hasCsv -and -not $hasPdf ) {
195196 Write-Host " No CSV or PDF files found to index."
196197}
Original file line number Diff line number Diff line change 1515print (f"Scanning directory: { directory_path } " )
1616
1717files_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" ),
You can’t perform that action at this time.
0 commit comments