{
  "schema": "cita.python-evaluacion.v1",
  "pythonDocumentation": "3.13.7",
  "license": "https://docs.python.org/release/3.13.7/license.html#terms-and-conditions-for-accessing-or-otherwise-using-python",
  "queriesSha256": "a0863bb75a565de5464cf9765d4dfb7be3d166117459adaa4ee49ad2430692b8",
  "corpusSha256": "9bcadc7fb647da50667e90ee41cafaeaaf27f3d61dfd28a3732744805305bac3",
  "modelRevision": "e8f8c211226b894fcb81acc59f3b34ba3efd5f42",
  "threshold": 0.5,
  "beforeThreshold": {
    "positive": 16,
    "negative": 8,
    "top1": 15,
    "top3": 16,
    "abstained": 0,
    "mrr3": 0.96875,
    "balanced": 0.5
  },
  "scores": {
    "bm25": {
      "all": {
        "positive": 16,
        "negative": 8,
        "top1": 4,
        "top3": 4,
        "abstained": 8,
        "mrr3": 0.25,
        "balanced": 0.625
      },
      "es": {
        "positive": 8,
        "negative": 4,
        "top1": 4,
        "top3": 4,
        "abstained": 4,
        "mrr3": 0.5,
        "balanced": 0.75
      },
      "en": {
        "positive": 8,
        "negative": 4,
        "top1": 0,
        "top3": 0,
        "abstained": 4,
        "mrr3": 0.0,
        "balanced": 0.5
      }
    },
    "dense": {
      "all": {
        "positive": 16,
        "negative": 8,
        "top1": 13,
        "top3": 14,
        "abstained": 5,
        "mrr3": 0.84375,
        "balanced": 0.75
      },
      "es": {
        "positive": 8,
        "negative": 4,
        "top1": 6,
        "top3": 7,
        "abstained": 1,
        "mrr3": 0.8125,
        "balanced": 0.5625
      },
      "en": {
        "positive": 8,
        "negative": 4,
        "top1": 7,
        "top3": 7,
        "abstained": 4,
        "mrr3": 0.875,
        "balanced": 0.9375
      }
    }
  },
  "references": {
    "PY-CSV@0": {
      "line": "PY-CSV:1",
      "title": "Importar pedidos desde CSV",
      "section": "csv.DictReader",
      "url": "https://docs.python.org/release/3.13.7/library/csv.html#csv.DictReader"
    },
    "PY-CSV@266": {
      "line": "PY-CSV:3",
      "title": "Importar pedidos desde CSV",
      "section": "csv.reader",
      "url": "https://docs.python.org/release/3.13.7/library/csv.html#csv.reader"
    },
    "PY-CSV@558": {
      "line": "PY-CSV:5",
      "title": "Importar pedidos desde CSV",
      "section": "csv.reader y tratamiento de saltos de línea",
      "url": "https://docs.python.org/release/3.13.7/library/csv.html#csv.reader"
    },
    "PY-JSON@0": {
      "line": "PY-JSON:1",
      "title": "Leer y exportar registros JSON",
      "section": "json.dump y ensure_ascii",
      "url": "https://docs.python.org/release/3.13.7/library/json.html#json.dump"
    },
    "PY-JSON@253": {
      "line": "PY-JSON:3",
      "title": "Leer y exportar registros JSON",
      "section": "json.load y parse_float",
      "url": "https://docs.python.org/release/3.13.7/library/json.html#json.load"
    },
    "PY-JSON@531": {
      "line": "PY-JSON:5",
      "title": "Leer y exportar registros JSON",
      "section": "json.JSONDecodeError",
      "url": "https://docs.python.org/release/3.13.7/library/json.html#json.JSONDecodeError"
    },
    "PY-FECHA@0": {
      "line": "PY-FECHA:1",
      "title": "Normalizar fechas de los informes",
      "section": "datetime.strptime",
      "url": "https://docs.python.org/release/3.13.7/library/datetime.html#datetime.datetime.strptime"
    },
    "PY-FECHA@272": {
      "line": "PY-FECHA:3",
      "title": "Normalizar fechas de los informes",
      "section": "datetime.astimezone",
      "url": "https://docs.python.org/release/3.13.7/library/datetime.html#datetime.datetime.astimezone"
    },
    "PY-FECHA@552": {
      "line": "PY-FECHA:5",
      "title": "Normalizar fechas de los informes",
      "section": "Operaciones con datetime.date",
      "url": "https://docs.python.org/release/3.13.7/library/datetime.html#date-objects"
    },
    "PY-RUTA@0": {
      "line": "PY-RUTA:1",
      "title": "Organizar los archivos de una entrega",
      "section": "Path.rglob",
      "url": "https://docs.python.org/release/3.13.7/library/pathlib.html#pathlib.Path.rglob"
    },
    "PY-RUTA@288": {
      "line": "PY-RUTA:3",
      "title": "Organizar los archivos de una entrega",
      "section": "Path.mkdir",
      "url": "https://docs.python.org/release/3.13.7/library/pathlib.html#pathlib.Path.mkdir"
    },
    "PY-RUTA@585": {
      "line": "PY-RUTA:5",
      "title": "Organizar los archivos de una entrega",
      "section": "PurePath.with_suffix",
      "url": "https://docs.python.org/release/3.13.7/library/pathlib.html#pathlib.PurePath.with_suffix"
    }
  },
  "rows": [
    {
      "language": "es",
      "query": "El CSV de pedidos trae encabezados y quiero leer la columna cliente por nombre.",
      "expected": "PY-CSV@0",
      "bm25": {
        "hits": [
          {
            "id": "PY-CSV@0",
            "score": 8.735151671340303
          }
        ],
        "rank": 1
      },
      "dense": {
        "hits": [
          {
            "id": "PY-CSV@0",
            "score": 0.6948425769805908
          },
          {
            "id": "PY-CSV@558",
            "score": 0.5441871881484985
          }
        ],
        "rank": 1
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-CSV@0",
          "score": 0.6948425769805908
        },
        {
          "id": "PY-CSV@558",
          "score": 0.5441871881484985
        },
        {
          "id": "PY-RUTA@0",
          "score": 0.4905608892440796
        }
      ]
    },
    {
      "language": "en",
      "query": "My spreadsheet contains product codes such as 00042. How can I keep the leading zeroes when reading rows?",
      "expected": "PY-CSV@266",
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [],
        "rank": 0
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-CSV@266",
          "score": 0.4923427700996399
        },
        {
          "id": "PY-JSON@253",
          "score": 0.3533625602722168
        },
        {
          "id": "PY-CSV@558",
          "score": 0.2693519592285156
        }
      ]
    },
    {
      "language": "es",
      "query": "Un campo entre comillas contiene un salto de línea. ¿Cómo abro el fichero para que se conserve?",
      "expected": "PY-CSV@558",
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [
          {
            "id": "PY-CSV@558",
            "score": 0.5099811553955078
          }
        ],
        "rank": 1
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-CSV@558",
          "score": 0.5099811553955078
        },
        {
          "id": "PY-RUTA@0",
          "score": 0.3704257905483246
        },
        {
          "id": "PY-JSON@531",
          "score": 0.36158287525177
        }
      ]
    },
    {
      "language": "en",
      "query": "How do I export accented customer names as readable characters in a JSON document?",
      "expected": "PY-JSON@0",
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [
          {
            "id": "PY-JSON@0",
            "score": 0.721473217010498
          }
        ],
        "rank": 1
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-JSON@0",
          "score": 0.721473217010498
        },
        {
          "id": "PY-JSON@531",
          "score": 0.34289515018463135
        },
        {
          "id": "PY-RUTA@585",
          "score": 0.279385507106781
        }
      ]
    },
    {
      "language": "es",
      "query": "¿Cómo evito redondear una cantidad decimal cuando leo precios de un JSON?",
      "expected": "PY-JSON@253",
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [
          {
            "id": "PY-JSON@253",
            "score": 0.7887569665908813
          }
        ],
        "rank": 1
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-JSON@253",
          "score": 0.7887569665908813
        },
        {
          "id": "PY-JSON@0",
          "score": 0.34012913703918457
        },
        {
          "id": "PY-JSON@531",
          "score": 0.3314606547355652
        }
      ]
    },
    {
      "language": "en",
      "query": "The data import stopped on broken JSON. Where can I find the line and column of the syntax mistake?",
      "expected": "PY-JSON@531",
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [
          {
            "id": "PY-JSON@531",
            "score": 0.6095207333564758
          },
          {
            "id": "PY-JSON@0",
            "score": 0.5035812854766846
          }
        ],
        "rank": 1
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-JSON@531",
          "score": 0.6095207333564758
        },
        {
          "id": "PY-JSON@0",
          "score": 0.5035812854766846
        },
        {
          "id": "PY-RUTA@585",
          "score": 0.4141380488872528
        }
      ]
    },
    {
      "language": "es",
      "query": "Los datos de entrada vienen como 04/07/2026. ¿Cómo declaro que el día va primero?",
      "expected": "PY-FECHA@0",
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [
          {
            "id": "PY-FECHA@552",
            "score": 0.649702787399292
          },
          {
            "id": "PY-FECHA@0",
            "score": 0.5134944915771484
          }
        ],
        "rank": 2
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-FECHA@552",
          "score": 0.649702787399292
        },
        {
          "id": "PY-FECHA@0",
          "score": 0.5134944915771484
        },
        {
          "id": "PY-FECHA@272",
          "score": 0.43447446823120117
        }
      ]
    },
    {
      "language": "en",
      "query": "Our batch has an offset-aware time. How do we convert that timestamp to UTC without changing the instant?",
      "expected": "PY-FECHA@272",
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [
          {
            "id": "PY-FECHA@272",
            "score": 0.8092681765556335
          },
          {
            "id": "PY-FECHA@0",
            "score": 0.5856356620788574
          }
        ],
        "rank": 1
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-FECHA@272",
          "score": 0.8092681765556335
        },
        {
          "id": "PY-FECHA@0",
          "score": 0.5856356620788574
        },
        {
          "id": "PY-FECHA@552",
          "score": 0.47038543224334717
        }
      ]
    },
    {
      "language": "es",
      "query": "¿Cómo resto dos fechas para saber cuántos días han pasado entre ellas?",
      "expected": "PY-FECHA@552",
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [
          {
            "id": "PY-FECHA@552",
            "score": 0.740227460861206
          }
        ],
        "rank": 1
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-FECHA@552",
          "score": 0.740227460861206
        },
        {
          "id": "PY-FECHA@0",
          "score": 0.4550122618675232
        },
        {
          "id": "PY-FECHA@272",
          "score": 0.39961040019989014
        }
      ]
    },
    {
      "language": "en",
      "query": "How can I list CSV exports in nested folders in repeatable order?",
      "expected": "PY-RUTA@0",
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [
          {
            "id": "PY-RUTA@0",
            "score": 0.6685761213302612
          },
          {
            "id": "PY-CSV@266",
            "score": 0.5649604797363281
          },
          {
            "id": "PY-CSV@0",
            "score": 0.5221924781799316
          }
        ],
        "rank": 1
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-RUTA@0",
          "score": 0.6685761213302612
        },
        {
          "id": "PY-CSV@266",
          "score": 0.5649604797363281
        },
        {
          "id": "PY-CSV@0",
          "score": 0.5221924781799316
        }
      ]
    },
    {
      "language": "es",
      "query": "Al escribir el informe quiero crear también las carpetas que le faltan a la ruta.",
      "expected": "PY-RUTA@288",
      "bm25": {
        "hits": [
          {
            "id": "PY-RUTA@288",
            "score": 9.58702247565503
          }
        ],
        "rank": 1
      },
      "dense": {
        "hits": [],
        "rank": 0
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-RUTA@288",
          "score": 0.362665057182312
        },
        {
          "id": "PY-RUTA@0",
          "score": 0.13707458972930908
        },
        {
          "id": "PY-CSV@266",
          "score": 0.12757855653762817
        }
      ]
    },
    {
      "language": "en",
      "query": "Change the extension from .csv to .json without renaming the file on disk.",
      "expected": "PY-RUTA@585",
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [
          {
            "id": "PY-RUTA@585",
            "score": 0.5329262018203735
          }
        ],
        "rank": 1
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-RUTA@585",
          "score": 0.5329262018203735
        },
        {
          "id": "PY-CSV@558",
          "score": 0.39693784713745117
        },
        {
          "id": "PY-RUTA@0",
          "score": 0.3968815505504608
        }
      ]
    },
    {
      "language": "es",
      "query": "¿Qué línea y columna provocaron el error de sintaxis en mi JSON?",
      "expected": "PY-JSON@531",
      "bm25": {
        "hits": [
          {
            "id": "PY-JSON@531",
            "score": 7.374821451065079
          }
        ],
        "rank": 1
      },
      "dense": {
        "hits": [
          {
            "id": "PY-JSON@531",
            "score": 0.6563299894332886
          }
        ],
        "rank": 1
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-JSON@531",
          "score": 0.6563299894332886
        },
        {
          "id": "PY-JSON@0",
          "score": 0.4252076745033264
        },
        {
          "id": "PY-JSON@253",
          "score": 0.3180045485496521
        }
      ]
    },
    {
      "language": "en",
      "query": "My CSV has field names in the first record. How can I turn the rest of the records into dictionaries?",
      "expected": "PY-CSV@0",
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [
          {
            "id": "PY-CSV@0",
            "score": 0.6162058115005493
          },
          {
            "id": "PY-CSV@266",
            "score": 0.5549029111862183
          },
          {
            "id": "PY-CSV@558",
            "score": 0.5508756637573242
          }
        ],
        "rank": 1
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-CSV@0",
          "score": 0.6162058115005493
        },
        {
          "id": "PY-CSV@266",
          "score": 0.5549029111862183
        },
        {
          "id": "PY-CSV@558",
          "score": 0.5508756637573242
        }
      ]
    },
    {
      "language": "es",
      "query": "¿Cómo localizo todos los CSV de los subdirectorios en un orden estable?",
      "expected": "PY-RUTA@0",
      "bm25": {
        "hits": [
          {
            "id": "PY-RUTA@0",
            "score": 5.268170604078813
          }
        ],
        "rank": 1
      },
      "dense": {
        "hits": [
          {
            "id": "PY-RUTA@0",
            "score": 0.7118013501167297
          }
        ],
        "rank": 1
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-RUTA@0",
          "score": 0.7118013501167297
        },
        {
          "id": "PY-CSV@266",
          "score": 0.4733659625053406
        },
        {
          "id": "PY-CSV@0",
          "score": 0.4729764461517334
        }
      ]
    },
    {
      "language": "en",
      "query": "We receive day/month/year strings. How can we parse 27/02/2025 as a date?",
      "expected": "PY-FECHA@0",
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [
          {
            "id": "PY-FECHA@0",
            "score": 0.7292243242263794
          },
          {
            "id": "PY-FECHA@552",
            "score": 0.6247090101242065
          },
          {
            "id": "PY-FECHA@272",
            "score": 0.5304182171821594
          }
        ],
        "rank": 1
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-FECHA@0",
          "score": 0.7292243242263794
        },
        {
          "id": "PY-FECHA@552",
          "score": 0.6247090101242065
        },
        {
          "id": "PY-FECHA@272",
          "score": 0.5304182171821594
        }
      ]
    },
    {
      "language": "es",
      "query": "¿Qué contraseña pide el servidor SFTP al subir los CSV?",
      "expected": null,
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [],
        "rank": 0
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-CSV@558",
          "score": 0.42370283603668213
        },
        {
          "id": "PY-CSV@0",
          "score": 0.4142376482486725
        },
        {
          "id": "PY-CSV@266",
          "score": 0.4011073112487793
        }
      ]
    },
    {
      "language": "en",
      "query": "How do I convert an Excel workbook with several worksheets to Parquet?",
      "expected": null,
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [],
        "rank": 0
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-CSV@266",
          "score": 0.28596577048301697
        },
        {
          "id": "PY-RUTA@0",
          "score": 0.16873343288898468
        },
        {
          "id": "PY-CSV@0",
          "score": 0.14181478321552277
        }
      ]
    },
    {
      "language": "es",
      "query": "¿Qué calendario de festivos de Madrid debo usar para contar días laborables?",
      "expected": null,
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [
          {
            "id": "PY-FECHA@552",
            "score": 0.5320345759391785
          }
        ],
        "rank": 0
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-FECHA@552",
          "score": 0.5320345759391785
        },
        {
          "id": "PY-FECHA@272",
          "score": 0.3903196454048157
        },
        {
          "id": "PY-FECHA@0",
          "score": 0.3854675590991974
        }
      ]
    },
    {
      "language": "en",
      "query": "What is the retention period for the nightly exports?",
      "expected": null,
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [],
        "rank": 0
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-FECHA@272",
          "score": 0.41685721278190613
        },
        {
          "id": "PY-FECHA@0",
          "score": 0.4061548709869385
        },
        {
          "id": "PY-FECHA@552",
          "score": 0.3669598400592804
        }
      ]
    },
    {
      "language": "es",
      "query": "¿Cómo valido un archivo contra un esquema JSON Schema que recibí de un proveedor?",
      "expected": null,
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [
          {
            "id": "PY-JSON@531",
            "score": 0.5437802076339722
          },
          {
            "id": "PY-JSON@0",
            "score": 0.5175608396530151
          }
        ],
        "rank": 0
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-JSON@531",
          "score": 0.5437802076339722
        },
        {
          "id": "PY-JSON@0",
          "score": 0.5175608396530151
        },
        {
          "id": "PY-RUTA@585",
          "score": 0.39728695154190063
        }
      ]
    },
    {
      "language": "en",
      "query": "Which permissions should the service account have in the shared folder?",
      "expected": null,
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [],
        "rank": 0
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-CSV@0",
          "score": 0.29653245210647583
        },
        {
          "id": "PY-RUTA@288",
          "score": 0.27681469917297363
        },
        {
          "id": "PY-RUTA@0",
          "score": 0.1383906900882721
        }
      ]
    },
    {
      "language": "es",
      "query": "¿Cómo detecto automáticamente el separador de un CSV con dialecto desconocido?",
      "expected": null,
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [
          {
            "id": "PY-RUTA@0",
            "score": 0.5692551732063293
          },
          {
            "id": "PY-CSV@558",
            "score": 0.5034846663475037
          }
        ],
        "rank": 0
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-RUTA@0",
          "score": 0.5692551732063293
        },
        {
          "id": "PY-CSV@558",
          "score": 0.5034846663475037
        },
        {
          "id": "PY-CSV@266",
          "score": 0.42357224225997925
        }
      ]
    },
    {
      "language": "en",
      "query": "How can I schedule the report at 8 AM every Monday?",
      "expected": null,
      "bm25": {
        "hits": [],
        "rank": 0
      },
      "dense": {
        "hits": [],
        "rank": 0
      },
      "denseBeforeThreshold": [
        {
          "id": "PY-FECHA@552",
          "score": 0.41933301091194153
        },
        {
          "id": "PY-FECHA@272",
          "score": 0.34838348627090454
        },
        {
          "id": "PY-FECHA@0",
          "score": 0.25330835580825806
        }
      ]
    }
  ]
}
