fix: use metadata parameter in ChunkingQualityAnalyzer (#65)#204
Conversation
- Extract chunk_size and chunk_overlap from metadata dict - Add chunk_size_deviation check: flag chunks that deviate >50% from expected size - Add excessive_overlap check: flag char overlap >3x expected overlap - Adjust empty chunk threshold when chunk_size is provided (10% of expected) - Add _char_overlap() helper for suffix/prefix overlap detection - Add TestMetadataUsage and TestCharOverlap test classes - All 76 diagnosis tests pass, ruff clean
|
Author identity unknown *** Please tell me who you are. Run git config --global user.email "you@example.com" to set your account's default identity. fatal: empty ident name (for runner@runnervm3jd5f.xariblbjf3ru1nzambwxmzlesd.gx.internal.cloudapp.net) not allowed |
- Fix ZeroDivisionError when chunk_size=0 (guard with > 0 check) - Fix chunk_overlap=0 silently skipping overlap check (remove > 0 guard) - Found by AI Code Review bot
Review of PR #65:
|
The AI Code Review bot was failing because the GitHub Actions runner had no git user identity configured, causing 'Author identity unknown' errors when trying to commit fixes. - Add git config step with github-actions[bot] identity - Placed before the OpenCode review step
SummaryThis PR wires the Issues Found[BUG]
|
|
🎉 Congratulations @himanshu231204! Your pull request has been successfully merged into main. 🚀 Thank you for contributing to OpenAgentHQ and helping improve the project. We truly appreciate your contribution and hope to see you back with more amazing PRs! Happy Open Sourcing! ❤️ |


Summary
Fixes #65 — ChunkingQualityAnalyzer.analyze() now uses the metadata parameter for more informed chunking quality analysis.
Changes
Core Fix (openagent_eval/diagnosis/chunking.py)
Tests ( ests/unit/test_diagnosis/test_chunking.py)
Test Results
29/29 chunking tests passed 76/76 full diagnosis test suite passed ruff check: cleanMetadata Keys Supported
Full Changelog: main...fix/65-chunking-metadata-unused