Convert node groups into code, and use AI to recognize the code to decipher the core principles of the node groups.
I’ve been thinking about something: is it possible to have a feature that converts node groups into code? That way, when you feed the code to AI, no matter how complex the node group presets are, the AI could use the code to figure out exactly what the node groups are doing. This might be a useful function for organizing node groups and improving the efficiency of optimizing them. Of course, this might just be an immature suggestion.
5 Comments
By code i guess you actually mean just a form of text representation of the node tree which an LLM would be able to "read"? Because actual code like python wouldn't represent the nodetree, but an adaptation of the nodetree's action into python, thus not very useful if the goal is to get feedback on your nodetree.
I see. It's usually frustrating to look at node group presets shared by others—you never know exactly what work they've done. It would be great if there was a way to simplify their node logic; otherwise, when a bug occurs, you won't even know where to start fixing it.
Not sure any code or text would help with simplifying nor understanding a node tree yourself.
Nodes are already a human-readable representation of code. If the node tree is too complex, poorly structured and undocumented, a text or code version of that node tree will not be better for you. But for a LLM, that's another story.
Have you tried this one github.com/BrendanParmer/NodeToPython
Thanks, I'll give it a try.Maybe I can figure out the logic behind the node group's creation through this.