okuvshynov / vimqq

local LLM chat for vim with dynamic warmup, forks and multi-model support
MIT License
3 stars 0 forks source link

context master task #1

Open okuvshynov opened 1 month ago

okuvshynov commented 1 month ago

Examples:

Let's try to combine various options of context retrieval for effective processing by local LLMs:

  1. embeddings
  2. non-ML code indexing tools (e.g. ctags, treesitter)
  3. code history (pull requests, commits, etc.) - how the code changed and why
  4. tool-based - let LLM call some tool to get needed context.

Currently it's being done within the vimqq plugin, but a better way would be to decouple the context provider, run it in background, similar to vim gutentags.

Current state:

okuvshynov commented 1 month ago

We also need to easily select multiple files and ask to modify them. For example:

"refactor https://github.com/okuvshynov/vimqq/blob/5100d9154f7d85eabd418dea68946b808e1787d1/tests/test_log.sh and https://github.com/okuvshynov/vimqq/blob/5100d9154f7d85eabd418dea68946b808e1787d1/tests/test_qq.sh and extract common functionality"

okuvshynov commented 1 month ago

So many new plugins, let's check what are their context options:

okuvshynov commented 1 month ago

based on some experimentation we need to be able to add multiple files as a context, with wildcards (e.g. -f bots/*.vim)