Skip to main content

Cover

BARRED: generate faithful and diverse training sets

Unofficial implementation of the BARRED paper:

Boundary Alignment Refinement through REflection and Debate, aka BARRED arXiv:2604.25203

What is BARRED?

In a nutshell: BARRED is a framework for generating faithful and diverse synthetic training data using only a task description and a small set of unlabeled examples.

Step by step:

  1. Define the task and give examples to know what to generate Criterion:
    Criterion: `True means this sentence is positive, False otherwise`
    Examples: `I love it`, `it's rainy`, `My uncle bobby is a good boy`
    
  2. Let the library decompound the problem into dimensions
  3. Then the library generates the training set
  4. Results: a set of labeled sentences
       1. `My mother is a wonderful person -> true`
       2. `Her sister is boring -> false`
    

Why it's cool?

TODO

Installation

uv add barred

# with Pip
pip install barred

Usage

TODO

Development setup

Install after cloning the repository:

just install

Check everything (lint, type, tests...):

just checks

Metadata

Release files for barred 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for barred 0.2.0
File Size Uploaded
barred-0.2.0.tar.gz 18.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for barred 0.2.0
File Interpreter ABI Platform
barred-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 41.5 kB

Release files / barred-0.2.0.tar.gz

Download URL barred-0.2.0.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cefc3398dbb3578a6056ccbf50224a5c85a6aaa63048fae105e17d9156273fb1
BLAKE2b-256 checksum
How to use checksums
f3d63efe31d8f122e84a42d596e5ee407cacbc87ca0ffc8aafff18398e1fe0f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.

Transparency log

Release files / barred-0.2.0-py3-none-any.whl

Download URL barred-0.2.0-py3-none-any.whl
Size 23.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64667a5f82ac3650aabdb59e8d28c0d3e6f70313249b39315453c6e54aefb1f4
BLAKE2b-256 checksum
How to use checksums
d334f04ff201e54b7dde33a17cbc2750b86f70885f411a79ec7d8b30819e7721
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.

Transparency log

Release history Release notifications | RSS feed

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.3.0

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page