Repository navigation
Evals? #958
|
Hello thanks for I'm building my first "agentic" features so it's all new to me (have more of a frontend brackground). I'm now in the quality improvements phase, and it seems there is no standard among the ruby/rails community.
So what's your take? Any strong opinions? How do you approach it? Doesn't matter because ai writes it anyways? Could evals be part of the ruby-llm core framework or it's out of scope? Cheers 👋 |
Replies: 2 comments
|
Short version: both styles are right, they answer different questions, and you'll want both. The mental-model split you noticed is real. Per-feature spec tests (tribunal style) answer "does this feature still behave?" They're regression tests. Keep them few, deterministic where possible, and run them in CI on every prompt or model change. Dataset evals (promptfoo / DeepEval style) answer "how good is it, and on what share of real inputs does it fail?" You only get a rate from a set of cases. One What has worked for me on agent features:
In Ruby terms, a dataset eval can still look like RSpec. Load cases from YAML, loop over them, and have each one generate an On whether this belongs in ruby_llm core: I'd guess not the framework, since judges, datasets and reporting are opinionated and move fast. But a small hook that makes it easy to capture request/response pairs into a dataset file would make every external eval tool easier to use. That's the maintainers' call, though. |
|
Evals shipped with 2.1 |
Evals shipped with 2.1