Commit graph

210 commits

Author SHA1 Message Date
Paul Gauthier
30af7f68bd fix: Clear lines of interest instead of clearing the entire context 2024-08-08 09:58:46 -03:00
Paul Gauthier (aider)
bb4ee1a221 perf: cache TreeContext for each filename and re-use it 2024-08-08 09:56:03 -03:00
Paul Gauthier
75bd6f114c Better progress indicator in large repos 2024-08-06 14:33:09 -03:00
Paul Gauthier (aider)
8525563cfd style: fix linter issues in repomap.py 2024-08-06 14:18:45 -03:00
Paul Gauthier (aider)
eee37f8913 feat: add "Scanning files" label for tqdm progress bar 2024-08-06 14:18:40 -03:00
Paul Gauthier
4ccd7d9d4f fix: update cache threshold condition in RepoMap class 2024-08-06 14:18:39 -03:00
Paul Gauthier
4d6bb2b1f1 fix: Update cache threshold logic in RepoMap class 2024-08-06 14:13:54 -03:00
Paul Gauthier
4e5e9b4a1a fix: move dict init into __init__ 2024-08-06 09:34:25 -03:00
Paul Gauthier
abd23f8be5 small perf tweak 2024-08-05 20:56:06 -03:00
Paul Gauthier
d89eeff13d fix: Implement efficient token counting for large text inputs 2024-08-05 20:42:36 -03:00
Paul Gauthier
d0ffbf173b fix: Reorder imports in repomap.py 2024-08-05 19:33:06 -03:00
Paul Gauthier (aider)
eff71998a3 fix: Move imports to top of file 2024-08-05 19:32:47 -03:00
Paul Gauthier
c21195252d feat: Add Spinner utility to repomap module 2024-08-05 19:32:25 -03:00
Paul Gauthier
c67d10749c fix: Remove unused spinner method from InputOutput class 2024-08-05 19:31:54 -03:00
Paul Gauthier
95e603350c cleanup ranked_tags_map cache and token estimator 2024-08-05 18:00:51 -03:00
Paul Gauthier (aider)
16defb3c8c feat: sort tuples in get_ranked_tags_map 2024-08-05 17:49:57 -03:00
Paul Gauthier (aider)
bcbaac03d4 feat: Add cache for get_ranked_tags_map 2024-08-05 17:48:48 -03:00
Paul Gauthier
dfe4f4827c feat: Increase the number of samples used to estimate token count in RepoMap 2024-08-05 17:48:47 -03:00
Paul Gauthier
c160a5fa65 show progress of the repo map 2024-08-05 17:39:21 -03:00
Paul Gauthier (aider)
ef442fdd7e style: Apply linter formatting to repomap.py 2024-08-05 17:15:30 -03:00
Paul Gauthier (aider)
72ceb87acb fix: Remove all print_elapsed calls 2024-08-05 17:15:26 -03:00
Paul Gauthier
b6760e26c7 fix: Ensure token count calculation handles small text samples 2024-08-05 17:14:42 -03:00
Paul Gauthier
75c3c40354 Estimate tokenization to speed up repo map 2024-08-05 17:09:27 -03:00
Paul Gauthier (aider)
de26f8e5e0 style: format code with linter 2024-08-05 16:54:46 -03:00
Paul Gauthier (aider)
276b30506c fix: Add elapsed time logging to print statements 2024-08-05 16:54:42 -03:00
Paul Gauthier
042a4f14d2 fix: Update repomap.py to improve caching and logging 2024-08-05 16:52:22 -03:00
Paul Gauthier
3ba6e95d22 fix: Ensure token count is calculated only when verbose mode is enabled 2024-08-05 16:37:34 -03:00
Paul Gauthier
b654a16b48 Accept repo maps within 10% of token budget 2024-08-05 16:26:53 -03:00
Paul Gauthier (aider)
65247353bd fix: Remove unused linter variable in get_supported_languages_md function 2024-08-05 16:17:29 -03:00
Paul Gauthier (aider)
b86dde5f0d style: Apply linter edits to repomap.py 2024-08-05 16:17:07 -03:00
Paul Gauthier (aider)
ba1c8d1701 feat: Estimate initial middle value for binary search in get_ranked_tags_map 2024-08-05 16:17:03 -03:00
Paul Gauthier
b19795228f fix: Adjust the starting number for the binary search in the RepoMap class 2024-08-05 16:11:08 -03:00
Paul Gauthier
e2fb2466a9 Improve linter support and repo map coverage for various programming languages. 2024-07-30 12:30:29 -03:00
Paul Gauthier (aider)
74201dd733 Add two new columns to the get_supported_languages_md function: Repo map and Linter, and check the existence of the SCM file and linter support for each language. 2024-07-30 12:26:01 -03:00
Paul Gauthier
859a13eb70 Updated languages doc to correctly list repo map supported langs 2024-07-24 11:28:37 +02:00
Paul Gauthier
397c5d5921 added a test for /tokens #863 2024-07-18 16:54:26 +01:00
Paul Gauthier
4fba17c18b switched langs table from html -> md 2024-07-06 18:56:33 -03:00
Paul Gauthier
e4c637724f For /help, turn down the repo map 2024-07-06 17:11:24 -03:00
Paul Gauthier
d403f37469 cleanup 2024-07-03 17:06:10 -03:00
Paul Gauthier
b5cd5f0e23 Use a thread to import slow modules in the background 2024-07-03 13:55:29 -03:00
Paul Gauthier
5e0ff7627e Defer loading of networkx 2024-07-03 13:17:04 -03:00
Paul Gauthier
c020d94d5f 8x repomap when finding files; fix max_input_tokens 2024-06-26 04:14:51 +00:00
Paul Gauthier
965c35870c Notice if the user mentions the basename of a filename; fixes to repomap context 2024-06-24 15:12:58 -07:00
Paul Gauthier
0d9150c77b coq for languages.md 2024-06-05 20:24:19 -07:00
Paul Gauthier
a4a6066858 handle missing max_map_tokens/max_context_window 2024-05-23 13:46:08 -07:00
Paul Gauthier
6345cd3734 cleanup 2024-05-23 13:43:35 -07:00
Paul Gauthier
56f5e7e10c expand repomap even in smaller context windows 2024-05-21 11:04:18 -07:00
Paul Gauthier
1effd73e80 Only expand the repomap if we know it will fit into context window 2024-05-20 10:22:57 -07:00
Paul Gauthier
819fccc7a4 added temp param, prompt strong that files message is truth 2024-05-16 08:52:30 -07:00
Paul Gauthier
ecc46bd3e3 16x 2024-05-14 14:04:45 -07:00