Absolutely love this gem and the approach taken! Great work.
One thing that I miss though is support for ERB templates. I often find myself writing longer prompts or injecting variables into the prompt in which case, ERB templates come quite handy.
I'd actually developed a similar project to RubyLLM, where I could either prompt directly, as Ruby LLM does:
Intelligence.chat("Hello, how are you?")
or
Intelligence.chat(:greeting)
in the latter case it would look for a folder named app/prompts/greeting and files within that folder named system.txt.erb, user.txt.erb, and options.json.
I've found it quite convenient and feel it's the only thing missing in RubyLLM.
Curious if you see the same need in which case, I don't mind taking a stab at a PR.
Absolutely love this gem and the approach taken! Great work.
One thing that I miss though is support for ERB templates. I often find myself writing longer prompts or injecting variables into the prompt in which case, ERB templates come quite handy.
I'd actually developed a similar project to RubyLLM, where I could either prompt directly, as Ruby LLM does:
Intelligence.chat("Hello, how are you?")or
Intelligence.chat(:greeting)in the latter case it would look for a folder named
app/prompts/greetingand files within that folder namedsystem.txt.erb,user.txt.erb, and options.json.I've found it quite convenient and feel it's the only thing missing in RubyLLM.
Curious if you see the same need in which case, I don't mind taking a stab at a PR.