IFEval in Lance
Find instruction-following evaluation prompts by the constraints they place on a response. Each match includes the original prompt and its verifiable instruction identifiers. Pinned original dataset
Data and splits
| Source configuration | Split | Rows | Lance table |
|---|---|---|---|
default |
train |
541 | data/train.lance |
The release preserves all source rows in their original order, with the original key, prompt, instruction_id_list, and kwargs columns. The typed kwargs structs represent absent JSON keys as null. The original JSONL preserves their sparse representation. The conversion manifest records source and preview checksums.
Hugging Face Data Studio reads the original viewer's Parquet export under viewer/. Use the Lance table below for vector search. Open the preview
Search in Python
The additional embedding column stores generated 1024-dimensional, L2-normalized float32 vectors. Each document input starts with Required constraints: , followed by the comma-separated names after : in the original instruction IDs with underscores replaced by spaces. A period, space, and the original prompt follow the names. The encoder is sentence-transformers/static-retrieval-mrl-en-v1 at revision f60985c706f192d45d218078e49e5a8b6f15283a. Search ranks by cosine distance and prints cosine similarity as 1 - distance. Pinned encoder
pip install pylance==14.0.3 sentence-transformers==6.3.0
import lance
from sentence_transformers import SentenceTransformer
encoder = SentenceTransformer(
"sentence-transformers/static-retrieval-mrl-en-v1",
revision="f60985c706f192d45d218078e49e5a8b6f15283a",
device="cpu",
)
query = "Find prompts that explicitly require the response to be valid JSON."
vector = encoder.encode_query(query, normalize_embeddings=True)
dataset = lance.dataset("hf://datasets/lance-format/ifeval-lance/data/train.lance")
hits = dataset.to_table(
columns=["key", "prompt", "instruction_id_list", "_distance"],
nearest={"column": "embedding", "q": vector, "k": 5, "metric": "cosine"},
).to_pylist()
for hit in hits:
print(f"{1.0 - hit['_distance']:.4f} key={hit['key']} {hit['instruction_id_list']}")
print(hit["prompt"])
Attribution and license
Credit Jeffrey Zhou, Tianjian Lu, Swaroop Mishra, Siddhartha Brahma, Sujoy Basu, Yi Luan, Denny Zhou, and Le Hou for Instruction-Following Evaluation for Large Language Models. Google declares Apache 2.0 for its release. Wikipedia-derived passages in rows 1999 and 2859 are attributed to the respective Wikipedia contributors under CC BY-SA 4.0. This release adds the Lance representation and search embeddings and keeps the source prompt values as released. License details · Original dataset card · Paper · Original evaluation repository