百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

active_genie

> AI 编程
开源

Lodash for GenAI: 真正的价值 + 一致性 + 模型无关

169 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

Lodash for GenAI: 真正的价值 + 一致性 + 模型无关

ActiveGenie ‍♂️

The Lodash for GenAI: Consistent + Model-Agnostic ActiveGenie is a toolkit for building GenAI features in Ruby. Its modules are model-agnostic and work across providers. ActiveGenie::Comparator settles subjective comparisons by staging a structured debate between the two inputs. ActiveGenie::Scorer grades content with a jury of domain experts. ActiveGenie::Ranker orders large datasets with a tournament system.

Results stay consistent for three reasons:

  • Custom benchmarking: every version and model update is tested for consistency.
  • Reasoning prompting: prompts borrow human reasoning techniques, like debate and jury review, to shape how the model thinks.
  • Overfitted prompts: each module uses a specialized prompt built for one purpose.

Requirements

  • Ruby >= 3.4.0
  • An API key for OpenAI, Anthropic, DeepSeek, or Google

Installation

ruby
gem 'active_genie'
bash
bundle install

Export a key for any supported provider:

bash
export OPENAI_API_KEY="sk-..."

See the installation guide for Rails setup and explicit configuration.

Quick start

ruby
require 'active_genie'

text = "Nike Air Max 90 - Size 42 - $199.99"
schema = {
  brand: { type: 'string', enum: %w[Nike Adidas Puma] },
  price: { type: 'number', minimum: 0 },
  size:  { type: 'number', minimum: 35, maximum: 46 }
}

result = ActiveGenie::Extractor.call(text, schema)

result.data
# => { brand: "Nike", price: 199.99, size: 42 }

result.reasoning
# => "Brand name appears at the start of the listing, price in USD at the end."

Every module returns an ActiveGenie::Result with data, reasoning, and metadata.

ruby
ActiveGenie::Scorer.call(text, criteria).data       # => 91
ActiveGenie::Comparator.call(a, b, criteria).data   # => the winning input
ActiveGenie::Lister.call(theme).data                # => ["Price", "Battery life", ...]
ActiveGenie::Ranker.call(items, criteria).data      # => items, best first

Documentation

Full documentation is at activegenie.ai:

  • Quickstart
  • Configuration
  • Benchmark results

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubybenchmarkgenaillmlodash

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类AI 编程
定价开源

> 相关工具

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.