--- pretty_name: Mostly Basic Python Problems (MBPP) in Lance license: cc-by-4.0 language: - en task_categories: - text-generation tags: - lance - vector-search - python - code-generation - benchmark size_categories: - 1K/.lance`. Hugging Face Data Studio uses byte-identical copies of the original Parquet files in `viewer/`. The [conversion metadata](meta/conversion.json) records every split's path, row count, columns, and checksum. ## Search in Python This release generated normalized 256-dimensional float32 vectors from the original English task description in `text` (full) or `prompt` (sanitized). The encoder is `sentence-transformers/static-retrieval-mrl-en-v1` at revision `f60985c706f192d45d218078e49e5a8b6f15283a`. The code uses the compatible query encoder and an exact cosine search over the chosen split. It prints cosine similarity and identifying fields for five matches. [Pinned encoder](https://huggingface.co/sentence-transformers/static-retrieval-mrl-en-v1/tree/f60985c706f192d45d218078e49e5a8b6f15283a) ```bash pip install pylance==14.0.3 sentence-transformers==6.3.0 ``` ```python import lance from sentence_transformers import SentenceTransformer encoder = SentenceTransformer( "sentence-transformers/static-retrieval-mrl-en-v1", revision="f60985c706f192d45d218078e49e5a8b6f15283a", truncate_dim=256, device="cpu", ) query = "Given a list of strings, find the longest prefix shared by every string." vector = encoder.encode_query(query, normalize_embeddings=True) tasks = lance.dataset("hf://datasets/lance-format/mbpp-lance/data/full/test.lance") hits = tasks.to_table( columns=["task_id", "text", "_distance"], nearest={"column": "task_embedding", "q": vector, "k": 5, "metric": "cosine"}, ).to_pylist() for hit in hits: print(f"{1.0 - hit['_distance']:.4f}\t{hit['task_id']}\t{hit['text']}") ``` ## Attribution and license Credit Google Research, Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, and Charles Sutton. The source and this release are distributed under [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/). The conversion adds the Lance format and description embeddings. The published Parquet copies preserve the source bytes. The release retains the [original dataset card](source/README.md) and [license text](LICENSE.txt). [Project repository](https://github.com/google-research/google-research/tree/master/mbpp) ยท [Benchmark paper](https://arxiv.org/abs/2108.07732)