added
Introducing Evaluatorq
about 5 hours ago by Anthony Diaz

Today we are proud to introduce Evaluatorq
An evaluation framework library that provides a flexible way to run parallel evaluations and optionally integrate with the Orq AI platform.
Features
- Parallel Execution: Run multiple evaluation jobs concurrently with progress tracking
- Flexible Data Sources: Support for inline data, promises, and Orq platform datasets
- Type-safe: Fully written in TypeScript
- Orq Platform Integration: Seamlessly fetch and evaluate datasets from Orq AI (optional)
Installation
npm install @orq-ai/evaluatorq
Basic Usage
import { evaluatorq, job } from "@orq-ai/evaluatorq";
const textAnalyzer = job("text-analyzer", async (data) => {
const text = data.inputs.text;
const analysis = {
length: text.length,
wordCount: text.split(" ").length,
uppercase: text.toUpperCase(),
};
return analysis;
});
await evaluatorq("text-analysis", {
data: [
{ inputs: { text: "Hello world" } },
{ inputs: { text: "Testing evaluation" } },
],
jobs: [textAnalyzer],
evaluators: [
{
name: "length-check",
scorer: async ({ output }) => {
const passesCheck = output.length > 10;
return {
value: passesCheck ? 1 : 0,
explanation: passesCheck
? "Output length is sufficient"
: `Output too short (${output.length} chars, need >10)`,
};
},
},
],
});
Repository: https://github.com/orq-ai/orqkit