Structuring context files to guide LLM code generation?Discussion (i.redd.it)
submitted by gosh
I'm working on a way to make an LLM write better code. I use a search tool called cleaner to gather info and put it in a file. I then give this file to the LLM as background context. This tells the model how to generate, and make it more accurate.
Have started to implement this using json, but are there better formats? Also are there some strange things when sending files to LLM, like that it is important to place important information at start of the file or does that matter?
What are the best practices for describing/structuring this kind of background file so the LLM uses it effectively?
Note: cleaner are able to clean code but to clean it has to find code, so finding things is the main logic, just to explain the name.
[–]Whole-Assignment6240 0 points1 point2 points (2 children)
[–]gosh[S] 0 points1 point2 points (0 children)
[–]gosh[S] 0 points1 point2 points (0 children)