{
  "licence": "https://creativecommons.org/licenses/by/4.0/",
  "credit": "Saulius Beconis, sbeconis.com",
  "page": "https://sbeconis.com/lab/eu-law-qa/",
  "url": "https://sbeconis.com/lab/eu-law-qa/eu-law-qa-2026-10-26.json",
  "note": "Measurements and text are CC BY 4.0. Source data and quoted excerpts keep their own licences: see \"attribution\".",
  "lab": "LAB/024",
  "title": "EU law questions in Lithuanian and English",
  "date": "2026-10-26",
  "method": {
    "texts": "AI Act (Regulation 2024/1689), NIS2 (Directive 2022/2555) and GDPR (Regulation 2016/679), English and Lithuanian, from the CELLAR XHTML on EUR-Lex; articles split into numbered paragraphs; recitals and annexes left out",
    "questions": "Qwen3-14B (Q4_K_M, llama.cpp, temperature 0) wrote two practical questions per article per language from the article text, with one fixed prompt; 209 dropped for copying five consecutive words of the article, 19 for naming an article, 1 unreadable; 802 kept",
    "split": "articles split 30% dev / 70% test by hash of law and article number; settings checked on dev, results on test",
    "search": "BM25 (bm25s, Snowball stemmer, Lucene variant, k1 1.5, b 0.75); bge-m3 dense embeddings, fp16; hybrid by reciprocal-rank fusion (k 60); hybrid reranked with bge-reranker-v2-m3 on the top 30 paragraphs",
    "answers": "Qwen3-14B with the top 5 reranked paragraphs, or with no text; JSON answer plus a list of cited articles; scored on whether the list includes the source article",
    "pilot": "question writing piloted on articles 1–3 of each law (31 questions, read in full) before the full run"
  },
  "environment": {
    "gpu": "RTX 4070 12 GB",
    "llm": "Qwen3-14B Q4_K_M, llama.cpp, 8k context"
  },
  "tables": {
    "retrieval": {
      "caption": "Right article among the first 1 and 5 results, test questions: 247 Lithuanian, 268 English. Index: 1,302 paragraphs per language from the AI Act, NIS2 and GDPR.",
      "columns": [
        {
          "key": "lt1",
          "label": "LT top 1",
          "suffix": "%"
        },
        {
          "key": "lt5",
          "label": "LT top 5",
          "suffix": "%"
        },
        {
          "key": "en1",
          "label": "EN top 1",
          "suffix": "%"
        },
        {
          "key": "en5",
          "label": "EN top 5",
          "suffix": "%"
        }
      ],
      "rows": [
        {
          "label": "Keyword search (BM25)",
          "highlight": false,
          "cells": {
            "lt1": 66.4,
            "lt5": 92.3,
            "en1": 53.4,
            "en5": 77.6
          }
        },
        {
          "label": "Embeddings (bge-m3)",
          "highlight": false,
          "cells": {
            "lt1": 74.1,
            "lt5": 92.7,
            "en1": 65.3,
            "en5": 86.6
          }
        },
        {
          "label": "Keyword + embeddings",
          "highlight": false,
          "cells": {
            "lt1": 75.3,
            "lt5": 95.1,
            "en1": 65.3,
            "en5": 86.6
          }
        },
        {
          "label": "Keyword + embeddings, reranked",
          "highlight": true,
          "cells": {
            "lt1": 83.8,
            "lt5": 97.6,
            "en1": 75.7,
            "en5": 90.7
          }
        },
        {
          "label": "Embeddings, other language's text",
          "highlight": false,
          "cells": {
            "lt1": 68.4,
            "lt5": 88.7,
            "en1": 53.4,
            "en5": 82.5
          }
        },
        {
          "label": "Reranked, other language's text",
          "highlight": false,
          "cells": {
            "lt1": 78.1,
            "lt5": 95.1,
            "en1": 67.2,
            "en5": 88.8
          }
        }
      ],
      "note": "Paragraph results are reduced to articles in order of first appearance. Other language: Lithuanian questions searched in the English text, and the reverse."
    },
    "laws": {
      "caption": "Right article in the top 5 by law, reranked search, test questions.",
      "columns": [
        {
          "key": "lt",
          "label": "Lithuanian",
          "suffix": "%"
        },
        {
          "key": "en",
          "label": "English",
          "suffix": "%"
        },
        {
          "key": "n",
          "label": "Questions",
          "decimals": 0
        }
      ],
      "rows": [
        {
          "label": "AI Act",
          "cells": {
            "lt": 98,
            "en": 88.7,
            "n": 208
          }
        },
        {
          "label": "NIS2",
          "cells": {
            "lt": 98,
            "en": 90.6,
            "n": 102
          }
        },
        {
          "label": "GDPR",
          "cells": {
            "lt": 96.9,
            "en": 92.7,
            "n": 205
          }
        }
      ]
    },
    "answers": {
      "caption": "Qwen3-14B answering the test questions, in the question's language. 515 questions.",
      "columns": [
        {
          "key": "lt_hit",
          "label": "LT: cites the right article",
          "suffix": "%"
        },
        {
          "key": "en_hit",
          "label": "EN: cites the right article",
          "suffix": "%"
        },
        {
          "key": "lt_prec",
          "label": "LT: cited articles right",
          "suffix": "%"
        },
        {
          "key": "en_prec",
          "label": "EN: cited articles right",
          "suffix": "%"
        }
      ],
      "rows": [
        {
          "label": "With the top 5, citation format fixed (28 Oct)",
          "highlight": true,
          "cells": {
            "lt_hit": 91.1,
            "en_hit": 86.9,
            "lt_prec": 51.6,
            "en_prec": 51.7
          }
        },
        {
          "label": "With the top 5 paragraphs",
          "highlight": false,
          "cells": {
            "lt_hit": 71.3,
            "en_hit": 86.2,
            "lt_prec": 51.4,
            "en_prec": 50.5
          }
        },
        {
          "label": "Same, law names read leniently (diagnostic)",
          "highlight": false,
          "cells": {
            "lt_hit": 89.9,
            "en_hit": 86.2,
            "lt_prec": 50,
            "en_prec": 50.5
          }
        },
        {
          "label": "From memory (no text given)",
          "highlight": false,
          "cells": {
            "lt_hit": 12.1,
            "en_hit": 23.9,
            "lt_prec": 5.6,
            "en_prec": 11.3
          }
        }
      ],
      "note": "An answer counts if its list of articles includes the one the question was written from. The answer text itself is not graded. Diagnostic row: answers whose list named the law in Lithuanian or with an invented code, instead of the code asked for, are counted as that law; it was not the pre-set scoring."
    }
  },
  "charts": {
    "overlap": {
      "title": "Questions that share fewer words with the law are harder to place",
      "meta": "Right article in the top 5 · reranked search · by share of the question's words found in the article",
      "max": 100,
      "decimals": 1,
      "suffix": "%",
      "groups": [
        {
          "label": "Low (under 57%)",
          "bars": [
            {
              "label": "Lithuanian",
              "value": 87.5,
              "highlight": true
            },
            {
              "label": "English",
              "value": 85.8,
              "highlight": false
            }
          ]
        },
        {
          "label": "Middle (57–73%)",
          "bars": [
            {
              "label": "Lithuanian",
              "value": 100,
              "highlight": true
            },
            {
              "label": "English",
              "value": 93.5,
              "highlight": false
            }
          ]
        },
        {
          "label": "High (73% and over)",
          "bars": [
            {
              "label": "Lithuanian",
              "value": 99.2,
              "highlight": true
            },
            {
              "label": "English",
              "value": 97.9,
              "highlight": false
            }
          ]
        }
      ]
    }
  },
  "examples": {
    "memory": {
      "title": "The same question, from memory and with the search results",
      "verdict": "note",
      "fields": [
        {
          "label": "Question (machine-written)",
          "text": "Kokie yra pagrindiniai reikalavimai, kuriuos turi laikytis įmonės, siekiant pateikti dirbtinio intelekto sistemas rinkai?"
        },
        {
          "label": "Written from",
          "text": "DI aktas, 1 straipsnis: Dalykas"
        },
        {
          "label": "Answer from memory",
          "text": "Pagrindiniai reikalavimai, kuriuos turi laikytis įmonės, siekiant pateikti dirbtinio intelekto sistemas rinkai, apima tinkamą rizikos vertinimą, dokumentavimą, naudotojų informavimą ir atitiktį etiniams reikalavimams. Šie reikalavimai yra nustatyti AI Act, kuris siekia užtikrinti saugų ir etiškai atsakingą dirbtinio intelekto naudojimą. [Articles cited: AI Act Article 6, AI Act Article 10, AI Act Article 13]"
        },
        {
          "label": "Answer with the search results",
          "text": "Pagrindiniai reikalavimai, kuriuos turi laikytis įmonės, siekiant pateikti dirbtinio intelekto sistemas rinkai, apima aukšto lygio sveikatos, saugos ir pagrindinių teisių apsaugą, įskaitant demokratiją, teisinę valstybę ir aplinkos apsaugą nuo žalingo DI sistemų poveikio. Taip pat reikalavimai apima atitiktį III skyriaus 2 skirsnyje nustatytiems reikalavimams, kurie yra svarbūs vertinant DI sistemų atitiktį ir jų saugumą. [Articles cited: AI Act Article 1, AI Act Article 74, AI Act Article 102, AI Act Article 105]"
        }
      ],
      "source": "EUR-Lex, © European Union; question written by Qwen3-14B"
    },
    "miss": {
      "title": "A question the search did not place",
      "verdict": "wrong",
      "fields": [
        {
          "label": "Question (machine-written)",
          "text": "Kada pradėsio taikytis reglamentas, kuris yra susijęs su AI technologijų naudojimu verslo aplinkoje?"
        },
        {
          "label": "Written from",
          "text": "DI aktas, 113 straipsnis: Įsigaliojimas ir taikymas"
        },
        {
          "label": "Top 5 articles found",
          "text": "AI Act Article 102, AI Act Article 105, AI Act Article 111, AI Act Article 57, AI Act Article 6"
        },
        {
          "label": "Answer with the search results",
          "text": "Reglamentas, susijęs su AI technologijų naudojimu verslo aplinkoje, pradės taikytis ne vėliau kaip 2026 m. rugpjūčio 2 d., kai pradės veikti apribotos bandomosios AI reglamentavimo aplinkos. [Articles cited: AI Act Article 57]"
        }
      ],
      "source": "EUR-Lex, © European Union; question written by Qwen3-14B"
    }
  },
  "stats": {
    "headline": {
      "items": [
        {
          "value": "98%",
          "label": "of Lithuanian questions: right article in the top 5 results",
          "signal": true
        },
        {
          "value": "91%",
          "label": "of Lithuanian answers cite the right article, with the citation format fixed"
        },
        {
          "value": "12%",
          "label": "from the model's memory alone"
        },
        {
          "value": "95%",
          "label": "searching the English text with Lithuanian questions"
        }
      ]
    }
  },
  "intervals": {
    "lt_top5_rerank": [
      94.8,
      98.9
    ]
  },
  "counts": {
    "articles": 258,
    "questions": 802,
    "test": 515,
    "answer_seconds": 3417,
    "median_latency_s": 3,
    "sources_none_lt": 56,
    "sources_none_en": 1,
    "sources_retrieved_lt": 241,
    "diag_rerun": 57,
    "diag_identical": 57,
    "lt_law_names_in_empty_lists": {
      "DI aktas": 53,
      "ai_act|nis2|gdpr": 23,
      "bdar": 12,
      "di_act": 11,
      "BDAR": 8,
      "ai_act|nis2": 3,
      "tis2": 2
    }
  },
  "v2": {
    "lt": {
      "n": 247,
      "hit": 225,
      "right": 238,
      "cited": 461,
      "none": 0,
      "checked": 225,
      "outside": 1
    },
    "en": {
      "n": 268,
      "hit": 233,
      "right": 256,
      "cited": 495,
      "none": 0,
      "checked": 233,
      "outside": 0
    },
    "seconds": 1883
  },
  "headline": {
    "value": "98%",
    "label": "of Lithuanian questions about the AI Act, NIS2 and GDPR found the right article in the top 5, offline"
  },
  "attribution": "Legal texts: EUR-Lex, © European Union, reused under Commission Decision 2011/833/EU; only the official Journal texts are authentic. Questions: machine-written by Qwen3-14B (Apache-2.0). Models: bge-m3 and bge-reranker-v2-m3 (BAAI, MIT)."
}
