buffer-of-thought-llm icon indicating copy to clipboard operation
buffer-of-thought-llm copied to clipboard

Thought Extractor based on coding repositories

Open jonathanpv opened this issue 7 months ago • 2 comments

There should be an easy to to ingest a code repository and git PRs

Git PRs are prime spaces to implement "thought extractors" or "solution extractors"

For a example a prompt like:

"Given the below git diff, generate a thought process that I will store in a bank of solutions. The thought processes you generate must cover all basis a software engineer must have gone through to generate the PR.

A thought is basically a solution eg "where is the place that we edit the images directory? and how did we solve it

to solve this question we need to use the function here_that_solves_the_issuse():

<further explanation of the solution and why it logically makes sense, this should be grounded on the truth from the PR ONLY use CODE that is FROM the PR so we have 100% accuracy> "

Here's the context for this PR:

And here's the diff:

Respond in the following manner: here's examples of thoughts / solutions / pattern of solutions.

To add a method that .... we need to add ... func some_thing_here()

Respond and output all thoughts you can, I will continue the conversation and ask for more"

ref: https://github.com/YangLing0818/buffer-of-thought-llm/issues/4

jonathanpv avatar Jul 12 '24 05:07 jonathanpv