0

Clause Identification RL Env (Prime Intellect)

Fresh

This environment tests an agent's ability to review legal contracts, identify specific clauses based on given criteria, and extract relevant inform...

Type
RL Env
Tags
Law
License
apache-2.0
Size
v0.1.1
Published
Mar 2026

Cite

Notes

Only stored in your browser.

contract-review-clause-identification

This environment tests an agent's ability to review legal contracts, identify specific clauses based on given criteria, and extract relevant information using a set of legal tools. It evaluates precision in clause identification and data extraction.

Overview

Domain: law Base Class: StatefulToolEnv Difficulty: medium Task: The model must review a provided contract, identify clauses matching a specified type (e.g., 'Force Majeure', 'Confidentiality'), and extract key details from those clauses using available tools.

Quickstart

Installation

uv run vf-install contract-review-clause-identification

Usage

import verifiers as vf

env = vf.load_environment("contract-review-clause-identification")
results = env.evaluate_sync(
    client=vf.OpenAI(),
    model="gpt-4.1-mini",
    num_examples=10,
    rollouts_per_example=1
)

Evaluation

Run an evaluation with default settings:

uv run vf-eval contract-review-clause-identification

Configure model and sampling:

uv run vf-eval contract-review-clause-identification \
  -m gpt-4.1-mini \
  -n 20 -r 3 -t 1024 -T 0.7

Environment Arguments

ArgTypeDefaultDescription
num_examplesint1000Number of training examples
num_eval_examplesint100Number of evaluation examples
seedint42Random seed for reproducibility

Metrics

MetricMeaning
rewardPrimary reward signal
format_rewardFormat adherence reward (if applicable)

About

Generated by synthetic-rl-env-creator.

Tags: law