pr-agent/pr_agent
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
..
agent Added help_docs feature. 2025-03-20 23:48:01 +02:00
algo Add support for documentation content exceeding token limits (#1670) 2025-04-03 11:51:26 +03:00
git_providers Add support for documentation content exceeding token limits (#1670) 2025-04-03 11:51:26 +03:00
identity_providers Format files by pre-commit run -a 2024-10-30 10:00:36 +09:00
log Add analytics logging 2024-02-26 16:15:23 +02:00
secret_providers Format files by pre-commit run -a 2024-10-30 10:00:36 +09:00
servers Merge pull request #1634 from ishaansehgal99/main 2025-03-26 07:51:24 +02:00
settings Add support for documentation content exceeding token limits (#1670) 2025-04-03 11:51:26 +03:00
tools Add support for documentation content exceeding token limits (#1670) 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
cli.py Added help_docs feature. 2025-03-20 23:48:01 +02:00
cli_pip.py adjustments to pypi 2024-03-23 16:16:32 +02:00
config_loader.py Add support for documentation content exceeding token limits (#1670) 2025-04-03 11:51:26 +03:00