graphrag
graphrag copied to clipboard
Fix sort_context max_tokens & max_tokens param in verb
Description
Fix max_input_length configuration parameter for create_final_community_reports workflow.
Related Issues
#674
Proposed Changes
- Fix bug in sort_context
- Fix max_input_length not being used in prepare_community_reports verb (which caused the exceeding context flag to be wrongly set)
- Updated unit test for sort_context
Checklist
- [x] I have tested these changes locally.
- [x] I have reviewed the code changes.
- [ ] I have updated the documentation (if necessary).
- [x] I have added appropriate unit tests (if applicable).