@llmdata/rubric
Version:
TypeScript/Node.js bindings for Rubric - LLM-based evaluation using weighted rubrics. High-performance Rust core with idiomatic TypeScript API.
13 lines (9 loc) • 320 B
JavaScript
const { join } = require("node:path");
const { existsSync } = require("node:fs");
const nativeFile = join(__dirname, "rubric_node.node");
if (!existsSync(nativeFile)) {
throw new Error(
"The native addon has not been built yet. Run `npm run build` or `napi build`."
);
}
module.exports = require(nativeFile);