Re: Trying to write a RAG chunker for Groovy
Daniel Sun <[email protected]> Tue, 08 Apr 2025 13:13:07 -0000
| Newsgroups | gmane.comp.lang.groovy.user |
|---|---|
| Message-ID | <pony-3dccf7d4-8d18-4a1c-aa21-bcb8478b7cde-users@groovy.apache.org> |
Hi Blake,
I think AST transformation can help you.
Cheers,
Daniel Sun
On 2025/04/06 23:49:21 Blake McBride wrote:
> 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