← Open Source

JudgmentLabs/judgeval-java on GitHub: Java.

Java
Momentum
+0stars in 24 hours0.0%
3
Stars
0
Forks
4
Contributors
Created 2025-08-26 · Updated 2026-01-12 · #28497 today
Top developers
abhishekg999JCamyreadivate2021
README

Judgeval Java SDK

Installation

Find the latest version on Maven Central.

Maven:

<dependency>
    <groupId>com.judgmentlabs</groupId>
    <artifactId>judgeval-java</artifactId>
    <version>LATEST_VERSION</version>
</dependency>

Gradle:

implementation 'com.judgmentlabs:judgeval-java:LATEST_VERSION'

Usage

Tracer

Judgeval client = Judgeval.builder()
    .apiKey(System.getenv("JUDGMENT_API_KEY"))
    .organizationId(System.getenv("JUDGMENT_ORG_ID"))
    .build();

Tracer tracer = client.tracer()
    .create()
    .projectName("my-project")
    .build();

tracer.span("operation", () -> {
    // your code here
});

Scorer

BaseScorer scorer = client.scorers()
    .builtIn()
    .answerCorrectness()
    .threshold(0.8)
    .build();

Example example = Example.builder()
    .property("input", "What is 2+2?")
    .property("actual_output", "4")
    .property("expected_output", "4")
    .build();

tracer.asyncEvaluate(scorer, example);

Documentation

License

Apache 2.0

Nearby in the ranking

AI Rank for iPhone

Follow AI model rankings

Download on the App Store