pr-agent/pr_agent/git_providers
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
..
__init__.py Format files by pre-commit run -a 2024-10-30 10:00:36 +09:00
azuredevops_provider.py Remove non implemented method _prepare_clone_url_with_token from providers which don't support it and instead, issue a warning in base class. 2025-03-24 14:06:06 +02:00
bitbucket_provider.py Add support for documentation content exceeding token limits (#1670) 2025-04-03 11:51:26 +03:00
bitbucket_server_provider.py Add support for documentation content exceeding token limits (#1670) 2025-04-03 11:51:26 +03:00
codecommit_client.py Remove 'bitbucket' explicit dependency anywhere that's not in bitbucket_provider.py 2023-09-10 14:06:13 +03:00
codecommit_provider.py Remove non implemented method _prepare_clone_url_with_token from providers which don't support it and instead, issue a warning in base class. 2025-03-24 14:06:06 +02:00
gerrit_provider.py Remove non implemented method _prepare_clone_url_with_token from providers which don't support it and instead, issue a warning in base class. 2025-03-24 14:06:06 +02:00
git_provider.py Remove redundant abstractmethod for _prepare_clone_url_with_token 2025-03-24 15:56:45 +02:00
github_provider.py Add support for documentation content exceeding token limits (#1670) 2025-04-03 11:51:26 +03:00
gitlab_provider.py Add support for documentation content exceeding token limits (#1670) 2025-04-03 11:51:26 +03:00
local_git_provider.py Remove non implemented method _prepare_clone_url_with_token from providers which don't support it and instead, issue a warning in base class. 2025-03-24 14:06:06 +02:00
utils.py Fix typo model_weak 2024-12-08 22:09:48 +07:00