Mine hard negatives from text datasets.
Project description
Usage
Mines hard negatives from existing query document pair datasets.
accelerate launch --multi_gpu main.py --input_path /home/henry/hard_negatives/parquets/test_pairs.parquet
Contributing
uvx ruff format
uvx ruff check --fix
@software{shippole2026hardnegatives,
title = {Hard Negatives: A Python Library for Mining Hard Negative Examples},
author = {Shippole, Enrico and Chaffin, Antoine and Aarsen, Tom},
year = {2026},
url = {https://github.com/teraflop-ai/hard-negatives},
version = {1.0.0},
note = {Python package available on PyPI at \url{https://pypi.org/project/hard-negatives/}}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hard_negatives-0.1.2.tar.gz
(7.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hard_negatives-0.1.2.tar.gz.
File metadata
- Download URL: hard_negatives-0.1.2.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee8bc7b486ae40924fa93ee7ecb8a4e25946fcb775da9ba68a9810e95ae7581b
|
|
| MD5 |
7d0c0974944d8f61fe3fc23a7edadee0
|
|
| BLAKE2b-256 |
177d8d15c4a0c1f7a9d13d5894e7ec49bbb07df4aec992d2ef70b6e4c1613758
|
File details
Details for the file hard_negatives-0.1.2-py3-none-any.whl.
File metadata
- Download URL: hard_negatives-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
663a5809277dba522cf0fdcd179bafb0ef6b7b37c3b78a1639ce8714e907ba2b
|
|
| MD5 |
85891b40b5dd4c38d4c9aa9019f69d3c
|
|
| BLAKE2b-256 |
f85499341893602815c659a7d478091a658d4400e62341e0e247e05a37f1ae7b
|