Repository navigation
Ai usage guidelines - #2168
Ai usage guidelines#2168voodoos wants to merge 3 commits into
Conversation
panglesd
left a comment
There was a problem hiding this comment.
You are perfectly right!
I also wonder if we shouldn't link the file in CONTRIBUTING.md? I would say so.
| ## Guidelines relevant to AI-assisted bug reports | ||
|
|
||
| Our advice is to avoid adding LLM-generated contents or explanations to | ||
| your initial bug report: a bug report should be to the point and | ||
| contain only human-verified information. Adding LLM-generated contents | ||
| runs counter to those objectives, even if the generated contents | ||
| looks useful to you. | ||
|
|
||
| Indeed, judging the quality of a LLM-generated content about an | ||
| unknown code base requires a lot of effort. Simultaneously, estimating | ||
| the faithfulness of LLM-generated contents without knowing your prior | ||
| understanding of the code base, nor your prompt, nor the model context | ||
| also requires a lot of effort. Such efforts are in most cases better | ||
| spent investigating the bug itself. | ||
|
|
||
| Moreover, mixing human and LLM-generated contents in the same report | ||
| without a clear separation should be imperatively avoided. Indeed, | ||
| the absence of a clear delineation between the two contents makes it | ||
| very hard to ascertain the reliability of any part of the mixed | ||
| contents. |
There was a problem hiding this comment.
This section seems to imply that it is acceptable to include LLM output in github comments/issues. I agree with the stricter requirements that LLM are not used at all to communicate.
| ## Guidelines relevant to AI-assisted bug reports | |
| Our advice is to avoid adding LLM-generated contents or explanations to | |
| your initial bug report: a bug report should be to the point and | |
| contain only human-verified information. Adding LLM-generated contents | |
| runs counter to those objectives, even if the generated contents | |
| looks useful to you. | |
| Indeed, judging the quality of a LLM-generated content about an | |
| unknown code base requires a lot of effort. Simultaneously, estimating | |
| the faithfulness of LLM-generated contents without knowing your prior | |
| understanding of the code base, nor your prompt, nor the model context | |
| also requires a lot of effort. Such efforts are in most cases better | |
| spent investigating the bug itself. | |
| Moreover, mixing human and LLM-generated contents in the same report | |
| without a clear separation should be imperatively avoided. Indeed, | |
| the absence of a clear delineation between the two contents makes it | |
| very hard to ascertain the reliability of any part of the mixed | |
| contents. | |
| ## Guidelines relevant to AI-assisted bug reports | |
| While LLM can be very useful at finding bugs, we ask that the report prose is human-written. It makes a better experience for the maintainer and avoids reports that the contributor does not understand well, and save the maintainer's time for fixing the bug. |
There was a problem hiding this comment.
I agree that the original version weakens the "no human-addressed content should be AI-generated" rule. A more straightforward prose, as proposed by @panglesd, is stricter but simpler to apply.
There was a problem hiding this comment.
Agreed, I kept it to stay as close as possible with the compiler's guidelines, but I was a bit uncomfortable with them too.
|
Silly question: what about the use of AI to improve the language/format and fix the typos in human-addressed content? Typically, I have Grammarly activated all the time, and it can rewrite quite a bit in a message. |
| 3. We ask that any human-addressed prose be written by yourself. This notably | ||
| includes Github comments, issues and PR descriptions, but also code comments | ||
| and documentation. Additionally, if a significant portion of your code has | ||
| been AI-generated, this must be disclosed, stating which tool was used and | ||
| for what. Reviewing AI-produced code can require a different approach from | ||
| human-written code. You should have an acknowledgement anyway even if | ||
| another *human* contributor did some of the work. |
There was a problem hiding this comment.
Doesn't this mush together different topics?
The start is about prose (in opposition to code), then moves to reviewing AI-produced code, and finishes on attribution for other contributors (I think?).
There was a problem hiding this comment.
Thanks for reviewing! That's a fair point, I initially wanted to add a new list item but chose this approach to reduce the diff with upstream. It is indeed a bit muddy like that, I will split in two bullets.
This is a copy of the compiler guidelines (in the first commit).
I added a restriction on prose writing which should IMO remain purely human.
cc @pitag-ha @xvw @lyrm @Tim-ats-d @PizieDust @panglesd