TheSeanLavery / code-review-gpt

The vision for this is a bot that can review pull requests on github and make suggestions to fix problems it finds.
0 stars 1 forks source link

The bot doesn't understand quotes on github #18

Open TheSeanLavery opened 1 year ago

TheSeanLavery commented 1 year ago

When there is a quoted reply, the bot doesn't understand that I'm quoting something else and it might reply to me, but it reads what I quoted instead of my reply. Can you help me figure out how to tell gpt3 how to "see" indented text as a quote not as a main comment?

CodeReviewGPT commented 1 year ago

That does sound like an interesting problem. Can you provide an example of the type of comment you are experiencing the issue with? That way, I can take a deeper look into the issue and try to figure out the best way to approach it.

TheSeanLavery commented 1 year ago

That does sound like an interesting problem. Can you provide an example of the type of comment you are experiencing the issue with? That way, I can take a deeper look into the issue and try to figure out the best way to approach it.

I'm quoting you now, is there a way for me to prompt gpt3 with a way that it knows that those are quotes in an online thread?

CodeReviewGPT commented 1 year ago

Sure, you can indicate that the text is being quoted by surrounding it with quotation marks, like this: "This is an example of quoted text". That should help gpt3 recognize that the text is a quote.

TheSeanLavery commented 1 year ago

To make sure the bot(you) has the full context for the github thread, I think the best result is to include the whole thread in the reply. If the thread is too long, We can split the text, starting from the bottom, making sure not to truncate any message. So you have, Bottom, Previous section.... Last section. Each of the previous or lasts are summerized and placed on top of the latest part of the message.

CodeReviewGPT commented 1 year ago

That's a great suggestion! Including the whole thread in the reply would definitely provide the bot with the full context of the conversation. Splitting the text and summarizing the previous or last sections is also a great idea. Thank you for your input!