Open samheutmaker opened 1 year ago
Great progress!
this should be close now @samheutmaker
I'm reading the README and asked GPT-4 to help me with improvements, and it returned these adjustments:
Optimize change detection: In addition to using the "git sha," you can explore other ways to track changes in files and folders to make the change detection process more efficient.
Improve the granularity of reindexing: Instead of reindexing all branches with changes, you can identify and reindex only the specific files that have been altered.
Cache storage and reuse of indexing information: To reduce the time and resources required for reindexing, you can cache previous indexing information and reuse it when appropriate.
Integrate with CI/CD systems: Selective indexing can be integrated into CI/CD pipelines so that reindexing occurs automatically whenever there is a change in the source code.
I plan to study a bit more to contribute in a more assertive way.
Regarding CI/CD, I've been using a gpt-cli tool to pipe git diff
output and get summaries, and am hoping to build it into a pre-commit hook or CI/CD job as part of the PR process. Using the SHA is a good way to detect changes, we might be able to save token count by doing a diff against the last known commit hash, or a full reindex if it's too much context.
(Just noting this has already been implemented and the issue should be closed)
Autodoc should support only indexing files and folders that have changed since the last index. At high-level, I think it looks something like this:
If you're interested on this, please reach out.