Skip blank rows and section headers in Excel processing#73
Draft
Skip blank rows and section headers in Excel processing#73
Conversation
Co-authored-by: mcasalaina <1323111+mcasalaina@users.noreply.github.com>
Co-authored-by: mcasalaina <1323111+mcasalaina@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix system to ignore blank rows in Excel sheets
Skip blank rows and section headers in Excel processing
Dec 3, 2025
- Use Azure AI to intelligently detect which row contains column headers - Use LLM to filter out section titles and labels, keeping only actual questions - Fix web app to use detected header row instead of assuming row 1 - Add automated tests for Excel files with non-standard header positions - Add test file with headers in row 3 and section titles to filter - Preserve original row numbers for correct answer placement Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Fixed AgentExecutionError: Cannot access project_client from azure_client that occurred when running the app in windowed mode with run_app. Changes: - Added project_client parameter to LinkCheckerExecutor - Updated _resolve_connection_id to use provided project_client or fetch it - Updated AgentCoordinator to pass project_client to link checker - Fixed UI main_window.py to get and pass project_client for both single and parallel agent initialization The AzureAIAgentClient doesn't expose project_client as a public attribute, so we now pass it explicitly through the initialization chain. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Excel loader was breaking at first blank row, ignoring all questions below it. Section headers (e.g., "Section 2: Cloud Computing") also stopped processing.
Changes
Section 1:,Part A:,Chapter 3:)--- Category ---,=== Section ===)SheetData.row_indicesso answers write back to correct positionsFiles
src/excel/loader.py: Modified loading logic, added_is_section_header()src/utils/data_types.py: Addedrow_indices: Optional[List[int]]toSheetDatatests/unit/test_excel_blank_rows.py: 9 new tests for header detection and blank row handlingOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.