Comments included in the code are likely to trump the code itself. There is no guarantee the code does what the comments say.
Options:
- Disclaimer - "this has been fed to a LLM with comments and therefore comments may influence description"
- Remove comments before passing to LLM.
- Pass comments separately and tell LLM that it should say if it believes there is a difference between comments and code.
Comments included in the code are likely to trump the code itself. There is no guarantee the code does what the comments say.
Options: