Skip to content

Support for ERB templates #70

@danielfriis

Description

@danielfriis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions