pr-agent/pr_agent/algo
sharoneyal 14971c4f5f
Add support for documentation content exceeding token limits (#1670)
* - Add support for documentation content exceeding token limits via two phase operation:
1. Ask LLM to rank headings which are most likely to contain an answer to a user question
2. Provide the corresponding files for the LLM to search for an answer.

- Refactor of help_docs to make the code more readable
- For the purpose of getting canonical path: git providers to use default branch and not the PR's source branch.
- Refactor of token counting and making it clear on when an estimate factor will be used.

* Code review changes:
1. Correctly handle exception during retry_with_fallback_models (to allow fallback model to run in case of failure)
2. Better naming for default_branch in bitbucket cloud provider
2025-04-03 11:51:26 +03:00
..
ai_handlers cleanup 2025-03-20 21:49:19 +02:00
__init__.py Merge pull request #1605 from KennyDizi/main 2025-03-09 17:03:37 +02:00
cli_args.py cleanup 2025-03-20 21:49:19 +02:00
file_filter.py Add error handling for missing file paths in file_filter.py for Bitbucket and GitLab platforms 2024-08-13 08:59:27 +03:00
git_patch_processing.py Add decoupled and non-decoupled modes for code suggestions 2025-03-11 16:46:53 +02:00
language_handler.py Add filter for files with bad extensions in language handler 2025-03-11 17:03:05 +02:00
pr_processing.py Remove unused filter_bad_extensions function and rename diff_files_original to diff_files 2025-03-11 16:56:41 +02:00
token_handler.py Add support for documentation content exceeding token limits (#1670) 2025-04-03 11:51:26 +03:00
types.py feat: add dedent option to code snippet formatting 2024-12-24 07:49:27 +02:00
utils.py Add fallback for YAML parsing using original response text 2025-03-11 17:11:10 +02:00