2024-09-10 17:58
Lfgggg dude
I finally managed to make semantic chunking work well.
The problem I’ve been facing when chunking up a codebase is, when presented with extremely large functions, which may contain sub-functions, you can’t just go a node deeper and chunk all the child functions while ignoring the parent because you lose semantic structure.
My solution is including the parent function declaration header on top of the actual child function as follows: (check comments)