RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

AIA (AI Assistant) hits v1.0.0

https://madbomber.github.io/blog/engineering/what's-new-in-aia-v1.0.0/

I wrote the first lines of AIA three years ago. Back then it was just a front end to a Rust CLI called mods – it managed prompt text files and piped them into mods, which talked to OpenAI’s GPT. Today AIA handles 20+ providers and hundreds of models on its own. Prompt files are now markdown with YAML front matter, shell integration, and ERB.

AIA has a batch mode for running prompts non-interactively and a chat mode for conversation. You can run a prompt against one model or several at once. The part I find most useful: throw the same prompt at multiple models, see the responses side by side with their costs, and pick the cheapest one that gives you a good enough answer.

gem install aia

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in