Skip to content

Commit

Permalink
Update prepdocs.ps1
Browse files Browse the repository at this point in the history
need to switch for pwsh windows forward slash './data/*'  otherwise no data is processed

PS /Users/alexzeltov/git/azure-search-openai-demo> python ./scripts/prepdocs.py '.\data\*' --searchkey "XZnvXI20iBoBfucFfsObjMTvVYXny0txh6n81NvwnGAzSeBUiHAL" --storageaccount $env:AZURE_STORAGE_ACCOUNT --container $env:AZURE_STORAGE_CONTAINER --searchservice $env:AZURE_SEARCH_SERVICE --index $env:AZURE_SEARCH_INDEX -v
Ensuring search index gptkbindex exists
Search index gptkbindex already exists
Processing files...
PS /Users/alexzeltov/git/azure-search-openai-demo> python ./scripts/prepdocs.py './data/*' --searchkey "XZnvXI20iBoBfucFfsObjMTvVYXny0txh6n81NvwnGAzSeBUiHAL" --storageaccount $env:AZURE_STORAGE_ACCOUNT --container $env:AZURE_STORAGE_CONTAINER --searchservice $env:AZURE_SEARCH_SERVICE --index $env:AZURE_SEARCH_INDEX -v 
Ensuring search index gptkbindex exists
Search index gptkbindex already exists
Processing files...
Processing './data/Northwind_Standard_Benefits_Details.pdf'
        Uploading blob for page 0 -> Northwind_Standard_Benefits_Details-0.pdf
        Uploading blob for page 1 -> Northwind_Standard_Benefits_Details-1.pdf
  • Loading branch information
azeltov authored Mar 15, 2023
1 parent bb9d74d commit 0eed611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/prepdocs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ foreach ($line in $output) {
Write-Host "Environment variables set."

pip install -r ./scripts/requirements.txt
python ./scripts/prepdocs.py '.\data\*' --storageaccount $env:AZURE_STORAGE_ACCOUNT --container $env:AZURE_STORAGE_CONTAINER --searchservice $env:AZURE_SEARCH_SERVICE --index $env:AZURE_SEARCH_INDEX -v
python ./scripts/prepdocs.py './data/*' --storageaccount $env:AZURE_STORAGE_ACCOUNT --container $env:AZURE_STORAGE_CONTAINER --searchservice $env:AZURE_SEARCH_SERVICE --index $env:AZURE_SEARCH_INDEX -v

0 comments on commit 0eed611

Please sign in to comment.