fix: added the updated script existing index_datasets script to create the… #601
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.
… index
Purpose
This pull request updates the sample data processing scripts and the dataset indexing logic to support JSON and PDF files in addition to CSVs. The main improvements include unified and expanded blob upload steps, a new PDF text extraction capability, and streamlined indexing script execution. The changes also deprecate the separate PDF indexing script in favor of a single, consolidated indexing flow.
Blob upload and data ingestion improvements:
Process-Sample-Data.ps1) and Bash (process_sample_data.sh) scripts now upload both JSON and CSV files to blob storage, updating messages and error handling to reflect this broader support. [1] [2]Indexing and PDF support enhancements:
index_datasets.py) now includes a function to extract text from PDF files using PyPDF2, handling encrypted/protected PDFs gracefully and returning clear status messages for unreadable or protected documents.index_datasets.pyis updated to process PDF files in addition to CSV and JSON, extracting their text content and including it in the indexed data.index_rfp_data.py). Related code for conditional execution of the old script is commented out. [1] [2]Miscellaneous:
RFP_Analysis_team.jsoninstead ofRFP_Analysis_team, ensuring consistency in file naming.Does this introduce a breaking change?
How to Test
What to Check
Verify that the following are valid
Other Information