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.3.tar.gz
(7.5 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.3.tar.gz.
File metadata
- Download URL: hard_negatives-0.1.3.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4b435a9f0f051feead7af1d1c4686eeb5d08c24d4633fd4ef9a1e7b55fe5c45
|
|
| MD5 |
25fa3920b6bfa70cb511809c61f1ec0c
|
|
| BLAKE2b-256 |
a7d2f893c9fc4af119c56ea59d9e669e0a669def25e6b9c3d5064f89a30eaa66
|
File details
Details for the file hard_negatives-0.1.3-py3-none-any.whl.
File metadata
- Download URL: hard_negatives-0.1.3-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3f50764c26471426ea8735d422d335d28c1774547fac9ec148ae400af35ad3e
|
|
| MD5 |
ab42b97111ecd2e002b3e298891c4ac3
|
|
| BLAKE2b-256 |
20a52c6b3bdd8de0e49cabc457fafe309b0556a61794cf21d60e88db8086f923
|