fix: improve long document ingestion and read - #85
Merged
Conversation
…cument ingestion - Added `long_document_protocol` to multiple profiles including `aion_std.yaml`, `document_extractor.yaml`, `generic_assistant.yaml`, and `research_docs.yaml` to support efficient processing of lengthy documents. - Updated the `ocr_file` and `doc_ingest` functions to improve handling of multi-page PDFs, ensuring better performance and error management during document extraction. - Introduced a timeout message for document tools to provide clearer guidance on handling timeouts during extraction processes.
- Integrated a new upload session file handling mechanism with progress tracking in the ChatWorkspace component. - Replaced the previous pending files state management with a more robust system using `usePendingSessionUploads` hook. - Updated UI to reflect the status of file uploads, including progress indicators and error handling options. - Added localized messages for upload status updates in English and Italian.
- Introduced geocoding support via OpenStreetMap Nominatim in the MCP registry and relevant profiles. - Updated `.env.example` to include geocoding configuration options. - Modified `dev-api.sh` and `setup_core.py` scripts to integrate the new geocoding service.
…nfigurations - Added support for automatic conversion of legacy Word (.doc) files to .docx on upload via LibreOffice. - Updated `.env.example` to include new configuration options for legacy Word conversion. - Enhanced the `AttachmentRef` model to accommodate new fields for conversion status and paths. - Modified file upload handling to apply legacy Word conversion during the upload process. - Updated documentation to reflect changes in handling legacy Word files and conversion workflows.
…nversion - Added a check in the backend entrypoint to merge new MCP slugs from `config_std` into `mcp_registry.yaml` during startup. - Updated documentation to clarify the automatic conversion of legacy Word (.doc) files to .docx and the new configuration options related to this feature. - Enhanced the MCP registry documentation to include details about the merging process for new slugs. - Included references to the legacy Word conversion in various configuration and API documentation files.
- Introduced a new `pdf_evidence_crop` tool in the OCR server to crop PDF pages into PNG images for use in Word report deliverables. - Updated configuration files to include new environment variables for PDF evidence cropping settings, such as DPI and maximum white ratio. - Enhanced documentation across various files to provide guidance on using the new cropping tool and its integration into the Word report generation process. - Updated skills and prompts documentation to reflect the new requirements for evidence images in multi-page PDF to Word workflows.
- Incremented version numbers for `docx` and `long_document_protocol` documentation to 4. - Added detailed guidelines for creating professional reports, emphasizing the importance of structured deliverables over simple image galleries. - Enhanced documentation on the required elements for client-ready reports, including metadata and formatting standards. - Updated the `document-evidence.md` file to reflect changes in report generation scripts and their purposes.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Consolidated multi-line statements into single lines for better clarity in `agent_pipeline.py`, `scoring.py`, and other files. - Enhanced readability by adjusting line breaks and indentation in various functions across the codebase. - Updated test cases to maintain consistency with the new formatting standards, ensuring all assertions and function definitions are clear and concise.
GiuseppeLRAION
approved these changes
Aug 31, 2026
alecoloAION
approved these changes
Aug 31, 2026
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.
Summary
Improved reading of long uploaded documents by integration content and tool offloading.
Introduced a new tool "snap" to take screenshots of documents.
Introduced a geocoding MCP tool to get coordinates of a place by searching it
Fixed support for Word 97, Excel 97 documents
Fixed general harness hallucination caused by truncated files
Type of change
Test plan
./scripts/run_ci_tests.sh(orpython -m pytest src/test/...for affected modules)uv run ruff check --config ruff.toml src/(lint — same as CI)uv run ruff format --check --config ruff.toml src/(formatting — CI fails if this is skipped)uv run ruff format --config ruff.toml src/python scripts/check_data_git_tracking.pycd <package> && pnpm build)Security / OSS checklist
.env, or internal IPs in the diffdata/(except whitelisted fixtures)Notes