Here a language model answers legal research questions by writing a database query over Hong Kong judgments: it picks the courts, the dates and the search terms. A lawyer would expect the same cases whether the question is asked in English or in Chinese. It does not work that way: the model writes a different query for each language, so the two versions of one question can return different cases. This page asks both versions side by side and shows where they disagree.
Or try an example:
checking the model…
Asked in English
以中文提問
Does telling the model to search both languages help?
指示模型以中英文搜尋,是否令結果更一致?
How it works
運作原理
The question becomes a database query.The judgments sit in a database with one row per judgment: court, year, case type, judges, date, and the full text. A language model reads the question and writes a query in SQL, the standard language for asking databases. The query is shown under each answer, so every result can be checked.
The database runs it.The query is run read-only, the model sees the rows that come back, and it may refine the query before answering. The cases listed are the rows of its last query, each linked to HKLII.
Why the two languages disagree.The model chooses the search words itself, and it chooses them from the question. Asked in English, it tends to search for the English term, which appears almost only in English judgments. Asked in Chinese, it searches for the Chinese term and finds mostly Chinese judgments. It can also widen or narrow the search differently, or read "since 2019" or a court's name differently. Each choice is reasonable on its own, but together they give two different lists.
What the research would add.Making the query depend on what is asked, not on the language it is asked in: for example, mapping each legal term to its counterpart in the other language so that both versions search for both, and training the model to write the same query for a question and its translation. The same comparison as on this page then measures whether the two languages agree.
What this prototype is, and is not
The model is an open model, run on one university GPU. Each version of the question is asked once; asking again can give a slightly different query.
Results are compared as sets of judgments. When both versions return counts (per year, per court), the counts are compared group by group.
Tokens are counted by the model that runs here. The cost is what the same number of tokens would cost on a hosted API, without prompt caching; a different model counts tokens a little differently, so it is an estimate.
Automatic translation uses the same model and can get legal terms wrong. Check it, and correct it before asking again if needed.
Live model asks the model now, and saves the run. Saved answers shows a saved run of the same question pair instantly, without the model, with the time, tokens and cost of the original run; examples without a saved run are greyed out. Saved runs belong to one version of the instructions given to the model, so they stop matching when those change.
There is no consistent mode yet: this page measures the gap. Closing it is the subject of the proposed research.
One question at a time with the full trace: /single.