Repository navigation
fix(rag): actionable errors for unreadable Excel files; read titled sheets right - #5812
Conversation
… sheets right A damaged .xlsx, a legacy .xls or password-protected workbook, or one with no cell values reached the Agent UI as a 500 carrying openpyxl's text (or, for the empty one, indexed as nothing but sheet names). They are now permanent "can't be read" failures (HTTP 422) with a remedy, the same path damaged PDFs take. A merged title row above a table was taken for the header, so the real column names (LDL, HDL) became values with empty labels and answers about a column could not find it. Single-cell title rows above a row of labels are now kept as titles, and a blank header cell is labelled ColN. Closes amd#2741 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Verdict: Approve with suggestions A damaged, legacy
Real-world evidenceN/A here: no evidence bundle was produced for this run. The PR description reports a real server on an empty 🔍 Technical detailsIssues 🟡 API doc out of sync with the (The second line of the original paragraph, 🟢 The title-row heuristic can promote a data row to the header ( 🟢 Strengths
|
The RAG lane installs no UI extras, so the route and _index_document tests could not import fastapi there. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A single-cell label above rows of text was taken for a title, so the first data row became the column names. A one-cell row is now a title only when it is merged across the table, or when a row of labels and then a row with numbers follow it. Documents every error_kind the document routes return, including the already-missing empty_file. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Without it both new xlsx test files skip wholesale there, which the module-skip check rightly fails. Co-Authored-By: Claude Opus 5.5 <[email protected]>
## Why this matters v0.25.2 is a bug-fix release on top of v0.25.1: setup and install no longer stop at the first failed step, shell and file access handle Windows paths and text encodings, the Agent UI and desktop app stop showing misleading states, and document search, email and skills each lose a handful of rough edges. 55 commits since v0.25.1; notes are in `docs/releases/v0.25.2.mdx` and credit 15 outside contributors. ## Test plan - [x] `python util/validate_release_notes.py docs/releases/v0.25.2.mdx --tag v0.25.2` passes - [x] `mintlify validate` (from `docs/`) passes - [x] `python util/check_doc_links.py --internal-only`, `python util/check_doc_versions.py` and `node installer/version/bump-ui-version.mjs --check` pass - [x] `python util/check_component_core_api.py --release-version 0.25.2` passes - [x] `pytest tests/unit/test_docs_json_release.py tests/unit/test_check_component_core_api.py tests/unit/test_release_tag.py tests/unit/test_hub_core_version_gate.py`: 156 passed - [ ] CI green on the merge commit - [ ] `release_train_dryrun.yml` passes on that commit before the RC tag ## Evals to re-run on the RC tag LLM-affecting PRs merged without per-PR evals; run these on `v0.25.2-rc1`: - `gaia_shell` and shell/safety (amd#5794, amd#5751, amd#5768) - `gaia_honesty` (amd#5753) - `gaia_skills_tasks` and `gaia_skills_lifecycle` (amd#5422, amd#5755) - `rag_retrieval` and `rag_quality` (amd#5742, amd#5754, amd#5761, amd#5817, amd#5812) - email scenarios (amd#5767, amd#5811) - `tool_selection` and `error_recovery` (amd#5732) - Claude provider thinking replay (amd#5072) - memory categories (amd#5818 merged; amd#5756 has not) ## Release checklist - [ ] Freeze main, wait for green CI on the exact commit, pass `release_train_dryrun.yml`, then push `v0.25.2-rc1` - [ ] Extend the changelog if main gains commits before the tag
Uploading a damaged
.xlsx, a legacy.xlsor password-protected workbook, or one with no data used to fail with a 500 carrying openpyxl's raw text ("File is not a zip file"). An empty workbook "indexed" as nothing but sheet names. Each now shows a clear "can't be read" message saying what to do, the same way damaged PDFs do. Spreadsheets with a merged title row above the table, like a lab report, lost their column names (LDL, HDL), so questions about a column found nothing. Those now index with the right labels.The crash in #2741 itself no longer reproduces on main:
openpyxlwas added to theuiextra in #2932, and #5643 made the UI show the backend's reason. On a coldGAIA_HOME, a simple sheet and a multi-sheet workbook with formulas and merged cells both upload and index. This PR fixes what was still wrong with Excel files after that.Closes #2741
Test plan
pytest tests/unit/rag/test_xlsx_extraction.py: real LibreOffice-saved fixtures (formulas with cached values, merged title row, merged note, empty sheet, real.xls), plus corrupt, empty,.xls-named and missing-openpyxl cases, through both RAG andPOST /api/documents/uploadpytest tests/unit/rag tests/unit/chat/ui/test_library_index_errors.py tests/unit/chat/ui/test_server.py: 535 passednpx vitest run src/components/__tests__/UnsupportedFeature.test.tsx src/components/__tests__/DocumentLibrary.test.tsxandnpx tsc --noEmitpython util/lint.py --allpassesGAIA_HOMEwith live Lemonade embeddings: valid workbooks return 200; a corrupt, a blank and a renamed.xlsworkbook each return 422 withcorrupted/empty_file/unsupported_workbookand a remedy, on both/uploadand/upload-path🤖 Generated with Claude Code