fix(nvim): Check for empty job runner output in `async_check`. (#297) * fix(nvim): Handle `nil` output for `jobrunner` in `check` * Auto generate docs * refactor(nvim): Use fallback in `flatten_table_to_string` for empty error
feat(debugging): Implement cProfile-based profiling for performance analysis (#271) * feat(cli): implement debug mode with coredumpy and viztracer * chore(cli): exclude debugging.py from coverage * ci(cli): add debug group to pdm lock * feat(debugging): Implement cProfile-based profiling for performance analysis Since viztracer didn't work (https://github.com/gaogaotiantian/viztracer/issues/606), I decided to replace it with cProfile * chore(dependencies): Remove viztracer from debug dependencies * fix(cli): lazy import * feat(debugging): add log directory creation and crash debugging support * chore(build): revert makefile and ci/cd outdated changes * chore(dependencies): Add coredumpy to development dependencies * fix(debugging): Add noqa comment to suppress linting warning * docs(cli): remove debug dependency from cli help * fix(cli): make sure to enable `coredumpy` when available. * tests(cli): Replace `MagicMock` with `Config` so that `debug` won't be truthy * docs(cli): Add profiling and post-mortem debugging instructions * ci: Update git auto commit action and ignore main branch * Auto generate docs --------- Co-authored-by: Zhe Yu <zcabzyu@ucl.ac.uk> Co-authored-by: Davidyz <30951234+Davidyz@users.noreply.github.com>
feat(debugging): Implement cProfile-based profiling for performance analysis (#271) * feat(cli): implement debug mode with coredumpy and viztracer * chore(cli): exclude debugging.py from coverage * ci(cli): add debug group to pdm lock * feat(debugging): Implement cProfile-based profiling for performance analysis Since viztracer didn't work (https://github.com/gaogaotiantian/viztracer/issues/606), I decided to replace it with cProfile * chore(dependencies): Remove viztracer from debug dependencies * fix(cli): lazy import * feat(debugging): add log directory creation and crash debugging support * chore(build): revert makefile and ci/cd outdated changes * chore(dependencies): Add coredumpy to development dependencies * fix(debugging): Add noqa comment to suppress linting warning * docs(cli): remove debug dependency from cli help * fix(cli): make sure to enable `coredumpy` when available. * tests(cli): Replace `MagicMock` with `Config` so that `debug` won't be truthy * docs(cli): Add profiling and post-mortem debugging instructions * ci: Update git auto commit action and ignore main branch * Auto generate docs --------- Co-authored-by: Zhe Yu <zcabzyu@ucl.ac.uk> Co-authored-by: Davidyz <30951234+Davidyz@users.noreply.github.com>
VectorCode is a code repository indexing tool. It helps you build better prompt
for your coding LLMs by indexing and providing information about the code
repository you're working on. This repository also contains the corresponding
neovim plugin that provides a set of APIs for you to build or enhance AI plugins,
and integrations for some of the popular plugins.
Note
This project is in beta quality and is undergoing rapid iterations.
I know there are plenty of rooms for improvements, and any help is welcomed.
LLMs usually have very limited understanding about close-source projects, projects
that are not well-known, and cutting edge developments that have not made it into
releases. Their capabilities on these projects are quite limited. With
VectorCode, you can easily (and programmatically) inject task-relevant context
from the project into the prompt. This significantly improves the quality of the
model output and reduce hallucination.
Documentation
Note
The documentation on the main branch reflects the code on the latest commit.
To check for the documentation for the version you're using, you can check out
the corresponding tags.
the wiki for extra tricks and
tips that will help you get the most out of VectorCode;
the discussions where
you can ask general questions and share your cool usages about VectorCode.
If you're feeling adanvturous, feel free to check out
the pull requests for
WIP features.
If you're trying to contribute to this project, take a look at the contribution
guide, which contains information about some basic
guidelines that you should follow and tips that you may find helpful.
About Versioning
This project follows an adapted semantic versioning:
Until 1.0.0 is released, the major version number stays 0 which indicates that
this project is still in early stage, and features/interfaces may change from
time to time;
The minor version number indicates breaking changes. When I decide to remove a
feature/config option, the actual removal will happen when I bump the minor
version number. Therefore, if you want to avoid breaking a working setup, you
may choose to use a version constraint like "vectorcode<0.7.0";
The patch version number indicates non-breaking changes. This can include new
features and bug fixes. When I decide to deprecate things, I will make a new
release with bumped patch version. Until the minor version number is bumped,
the deprecated feature will still work but you'll see a warning. It's
recommended to update your setup to adapt the new features.