Trying to write a RAG chunker for Groovy

Blake McBride <blake-p/[email protected]> Sun, 06 Apr 2025 23:49:21 +0000
Newsgroups gmane.comp.lang.groovy.user
Message-ID <D8zNJQWE3e8_mfijd-lYRjVdYfW29XM5Vnex7XDX72OkS9P8SZJOj0ZvuSUOAX6ylixHKD0thC-jEclgIBnfLTxgcGKdLhmfcWKKFJ9qVqs=@mcbridemail.com>
Greetings,

I am trying to write a RAG chunker for Groovy. This is used to (essentially) train an AI/LLM on my code base so that the AI/LLM can help me with my Groovy application.

Essentially, what I need to do is read in a Groovy source file and do something (create embeddings) for each individual method. This was pretty trivial in Java because there are ready-made Java parsers. However, I have spent a long time trying to create a parser for Groovy but have so far been unsuccessful.

I sure appreciate any suggestions.

Thanks!

Blake McBride