Skip to content

Paper Review

As of: 23.10.2026

Paper review (function_type_id = 10) is the scenario type for literature studies such as systematic reviews (SLR) and surveys. Every item is a scientific paper as a PDF. Next to it, reviewers answer a codebook questionnaire, for example “Which methodology is used?” and, only if prompting was chosen, “Is the prompt shown in the paper?”. Several people code the same paper, and LLARS computes the agreement per question.

On request, a language model suggests the answers with page evidence. A suggestion is never preselected; it is only applied by a click.

When to use it — and when not

Situation Type
One text gets one category Labeling (7)
One text gets values on several scales Rating (2)
A paper is coded with several questions of different kinds (single choice, multiple choice, yes/no, number, free text), some only under conditions Paper review (10)

The difference decides what the numbers are computed over:

  • The unit of analysis is the paper, separately for each question. A single value across all questions would be meaningless because the levels of measurement mix.
  • Progress follows the required questions. A paper is done when every visible required question is answered; optional questions do not count.
  • Time on task spans several sessions, because a paper is rarely coded in one go.

Labeling remains the right choice when each text gets exactly one decision. Rating fits when only numbers on scales are asked for.

Adding papers

Every item carries exactly one PDF. There are three routes, and the server checks the file the same way on all three.

In the scenario wizard (PDF mode)

Drop only PDF files in the first step. The wizard then switches to PDF mode: it reports “PDF files detected: n. The scenario becomes a paper review, the AI data analysis is skipped.” and preselects paper review.

  • In PDF mode only paper review can be selected. Without PDFs, paper review is locked.
  • PDFs cannot be mixed with JSON or CSV files; the wizard says so at once.
  • The browser checks size and PDF signature up front. The check on the server remains authoritative.
  • In the configuration step you edit the codebook.
  • The team step has no LLM evaluators. A review by the creator alone is enough.
  • The PDFs are uploaded only after the scenario is created, one after the other with a progress display (“Uploading paper 2 of 5 …”). Each PDF becomes one paper whose title is the file name without .pdf. A notice names duplicates and rejected files. If not a single PDF arrives, the empty scenario is deleted again.

In the data tab

In the scenario manager the “Upload papers” button replaces the data import for paper review. The dialog takes several PDFs by drag and drop or file selection and uploads them one after the other. Each file shows its state: “Queued”, “Uploading …”, “Uploaded”, “Duplicate” or “Rejected” with a reason.

The table shows a PDF column per paper with the page count and the text layer (“Text extracted”, “No text layer (scan)”, “Text shortened”). Above it are three figures: papers, with PDF and finished reviews.

  • Replace PDF only works while there is no review of this paper yet, not even in another scenario that holds the same paper. Otherwise page references in answers and AI evidence would silently point into a different document. Uploading the same PDF again changes nothing.
  • Remove paper only works while there is no review in this scenario. The paper and its PDF leave the scenario. If it is not linked to any other scenario, it is deleted completely.
  • Replacing and removing also delete the AI prefill of this paper, because its evidence names pages of the old PDF.

Through the v1 API

A script first creates the scenario and then uploads one PDF per call. The v1 API also accepts a title, metadata and the abstract.

# 1. Create the scenario: the codebook sits in eval_config.config
curl -X POST https://llars.example.org/api/v1/scenarios \
  -H "X-API-Key: $LLARS_API_KEY" -H "Content-Type: application/json" \
  -d '{
    "name": "SLR LLM methods",
    "eval_config": {"type": "paper_review", "config": {"questions": [
      {"id": "include", "type": "single",
       "title": {"de": "Wird das Paper eingeschlossen?", "en": "Is the paper included?"},
       "options": [{"id": "yes", "label": {"de": "Ja", "en": "Yes"}},
                   {"id": "no",  "label": {"de": "Nein", "en": "No"}}]}
    ]}},
    "assessors": [{"username": "evaluator", "evaluation_role": "assessor"}]
  }'

# 2. One PDF per call, optionally with title, metadata and abstract
curl -X POST https://llars.example.org/api/v1/scenarios/42/papers \
  -H "X-API-Key: $LLARS_API_KEY" \
  -F "file=@smith2025.pdf" \
  -F "label=Prompting Strategies for Counselling Chatbots" \
  -F 'metadata={"authors": ["A. Smith", "B. Jones"], "year": 2025, "doi": "10.1234/abcd.5678"}' \
  -F "abstract=We compare zero-shot and few-shot prompting ..."

From the metadata the interface shows title, authors, year and doi (only a real DOI is linked, to doi.org). The abstract can be expanded above the PDF. All fields, responses and error codes are listed under v1 Scenario API › Paper review.

Upload limits

Rule Behaviour
Size at most 10 MB per PDF, otherwise too_large (HTTP 413)
File type only .pdf with a real PDF signature, otherwise not_pdf
Password protection rejected (encrypted)
Damaged or without pages rejected (corrupt)
More than 2,000 pages rejected (too_large)
Scanned PDFs without a text layer accepted; only the PDF tab, no AI prefill
Very long PDFs accepted; at most 500 pages and 600,000 characters are read (“Text shortened”), the PDF stays complete
Text extraction fails accepted; the PDF is readable, the text is missing
Duplicate the same PDF (same checksum) in the same scenario: 409 DUPLICATE_DOCUMENT with existing_item_id

LLARS reads the text exactly once, on upload. A large PDF therefore takes a moment until the upload finishes.

Codebook

The codebook is the configuration of the scenario (eval_config.config). It consists of questions, optional sections, the switch for notes and the block for the AI prefill.

{
  "codebook_id": "slr-llm-methods",
  "codebook_version": 1,
  "notes_enabled": true,
  "sections": [{"id": "method", "title": {"de": "Methodik", "en": "Methodology"}}],
  "questions": [],
  "ai_prefill": {"enabled": false, "show_to_reviewers": true}
}

At most 100 questions are allowed. Every question has an id (lowercase letter first, then a–z, 0–9, _), a title in German and English, and optionally a help text (help), a section (section), a condition (show_if) and a hint for the AI (ai_hint, in English, at most 1,000 characters). Without required, a question is required.

Question types

Type Answered with Stored as Notes
single one option option id 2–50 options
multi one or more options list of option ids in codebook order 2–50 options
boolean yes or no true / false “No” is an answer
number a number number optional min and max
text free text text without surrounding whitespace max_length default 2,000, at most 8,000

Options have an id (a–z, 0–9, _, -) and a label in German and English. An option with allows_text: true (such as “Other”) gets an extra field “Please specify” of at most 500 characters. The extra text is stored next to the answer, not inside it.

Required questions and the completion rule

Server and browser compute the status with the same rule:

Status When
Done every visible required question is answered
In progress at least one visible question is answered or a note is written
Open none of these

A codebook needs at least one required question without a condition. The status is always computed from the current codebook; hub, statistics, export and agreement therefore count the same way.

Conditional follow-up questions (show_if)

A question with show_if only appears when the condition holds. There are three forms:

Form Meaning
{"question": "<id>", "equals": <value>} single choice has this option, or yes/no has true or false
{"question": "<id>", "includes_any": ["<option>", …]} single or multiple choice contains at least one of these options
{"and": [clause, …]} or {"or": [clause, …]} all clauses or at least one clause hold; one level, no nesting

item is accepted as another name for question. Three rules keep the questionnaire unambiguous:

  • A condition only points to an earlier question of type single, multi or boolean, and only to existing options. This rules out cycles.
  • Visibility is computed in question order. A hidden question counts as unanswered for later conditions, so hiding carries forward.
  • If an answered follow-up question becomes hidden, for example by switching from “Prompting only” to “DPO”, LLARS discards its answer at once. A notice states the number of hidden follow-up questions. The server also discards hidden answers when saving.
{"id": "prompt_shown", "type": "single",
 "title": {"de": "Wird der Prompt im Paper dargestellt?", "en": "Is the prompt shown in the paper?"},
 "show_if": {"question": "methodology", "includes_any": ["prompting_only"]},
 "options": [{"id": "yes", "label": {"de": "Ja", "en": "Yes"}},
             {"id": "no", "label": {"de": "Nein", "en": "No"}}]}

{"id": "repo_url", "type": "text", "required": false, "max_length": 300,
 "title": {"de": "Link zum Code", "en": "Link to the code"},
 "show_if": {"question": "code_available", "equals": true}}

{"id": "training_data", "type": "text", "required": false,
 "title": {"de": "Welche Trainingsdaten?", "en": "Which training data?"},
 "show_if": {"or": [{"question": "methodology", "includes_any": ["finetuning", "dpo"]},
                    {"question": "code_available", "equals": true}]}}

A violation is rejected with 400 on creation; the error code stands in square brackets in the message, e.g. [showIfForward] for a reference to a later question, [showIfUnknown] for an unknown question or option and [showIfOperator] for an operator that does not fit the question type.

Sections

Sections group long codebooks under headings, for example “Methodology”, “Reproducibility” and “Models”. If there are sections, every question carries one of them, and along the question list the sections follow the order of sections. Otherwise the grouped display would change the order of the questions, and “earlier question” would no longer hold.

Templates

Template Content
SLR: Screening (slr-screening, default) “Is the paper included?” (Yes, No, Unsure) and, only for No, the main reason for exclusion with “Other reason” as free text
SLR: LLM methodology (slr-llm-methods) methodology as multiple choice (Prompting only, Fine-tuning, Activation steering, DPO, RLHF, Other), “Is the prompt shown?” only for prompting, “Is the training data publicly available?” only for fine-tuning, DPO or RLHF, plus code available (yes/no), models (free text) and number of models

Both templates are starting points. They can be adapted freely in the editor.

The editor

The codebook editor sits in the configuration step of the wizard. There you add, reorder and delete sections and questions. For each question you choose the type, title and help in German and English, whether it is required, answer options with an extra field, limits (number: minimum and maximum, free text: maximum length) and the hint for the AI. The id is derived from the German title as long as nobody changes it by hand.

  • Condition: “Only show if [earlier question] [includes one of these answers | is answered with Yes | is answered with No]”. Compound conditions (and/or) can only be edited in JSON mode.
  • Edit as JSON shows the whole codebook as text.
  • When you delete a question or option, the editor removes the conditions that pointed to it and names the affected questions. Moving does not repair anything: if a condition then points to a later question, the error appears at that question.
  • Errors appear right at the question or section, even when it is collapsed. The wizard only continues with a valid codebook.

Changing it after the first review

After creation you change the codebook through the v1 API (PUT /api/v1/scenarios/{id}/paper-review/config). As long as there is no review, everything is allowed. After that only additions are possible:

  • allowed: new questions (with their own required flag and condition), new options, changed texts and help, sections, a wider number range, a larger max_length, a new extra field on an option;
  • locked (409 CODEBOOK_LOCKED): removing a question or option, changing the type, changing the required flag or condition of an existing question, narrowing the number range, reducing max_length, removing an extra field.

Stored answers would otherwise be orphaned or silently count differently. Every change to questions or sections increments codebook_version, and every review remembers the version it was coded against. LLARS then recomputes every status: a new required question puts finished reviews back to “In progress” until it is answered. Anyone who has the paper open sees a notice to reload the page. Saving the scenario settings also checks the codebook and enforces the same lock.

The interface

The paper on the left, the questionnaire on the right. The divider can be moved, and LLARS remembers the width. Each side scrolls on its own.

Header: title, authors, year and DOI of the paper. If there is an abstract, the “Abstract” button expands it.

PDF tab: the PDF appears in the browser's built-in viewer. “Open page” jumps to a page, “Open in new tab” opens the PDF on its own. If the PDF is missing, the interface says so; the owner additionally sees the hint to the data tab.

Text tab: the text read on upload, page by page, with search. A scan without a text layer only has the PDF tab and a notice. If the text was shortened, a notice says so above the text.

Questionnaire: sections as headings, below them only the visible questions. At the top are the progress (“2/5 required questions”) and the status. Required questions carry an asterisk, optional questions the marker “Optional”; the help of a question appears at the question mark. If the codebook allows it (notes_enabled), a field for notes on the paper follows at the end (at most 8,000 characters).

Saving is automatic, 800 ms after the last input and immediately when you move on to the next paper. The indicator switches between “Saving …” and “Saved”. The whole state of the questionnaire is saved every time.

Done follows the completion rule. The case list of the session shows “PDF · n pp.” and the status for each paper. A finished paper can still be changed.

View only: anyone who may not rate in the scenario sees the paper and the questionnaire read-only; nothing is saved then.

On a phone (narrower than 600 px) there are three tabs: Questions, Text and PDF. There is no embedded PDF there, because iOS Safari only shows the first page in it and Android Chrome shows nothing at all. The PDF tab opens the document in a new tab and names the target page; the text tab shows the content directly.

AI prefill

A language model can read every paper and suggest an answer with page evidence and a confidence for each question. The prefill is switched off in the codebook (ai_prefill.enabled: false). It is switched on in the editor in the block “AI prefill”; that block also holds “Show AI answers to reviewers” and additional instructions for the model (at most 2,000 characters, English works best). The per-question hint for the AI (ai_hint) also goes into the prompt.

Starting: owners, editors and admins start a run in the data tab, in the block “AI prefill”, with “Start AI prefill” (later “Run again”), or through the v1 API. A run only starts on that click or call, never automatically. If the prefill is switched off in the codebook, the block only shows a notice and starting is disabled.

  • Model: the choice is the KIZ models that the person who created the scenario may use in the chat, each with its context window. Preselected is the model with the largest context window, in practice Mistral Medium 3.5 (131,000 tokens). OpenAI models are not offered.
  • Process: the run works through the papers one by one in the background, one call per paper in JSON mode with a 60 s time limit and no retry. The control shows prefilled, failed and open papers per model and polls every 5 s while a run is active.
  • Running again: every start first deletes this model's error rows, so a new start is a retry. Papers that are already prefilled are skipped unless you choose “Recompute papers that are already prefilled”. Scans without a text layer are always skipped (“Without text layer (skipped): n”).
  • One run at a time: with the same model at most one run per scenario is active; a second start answers “An AI prefill is already running.”
  • Protection: after three failures in a row or 30 failures in total the run stops, and immediately on an access error (HTTP 401 or 403).

What the model reads: the text read on upload. The references are cut off first: LLARS looks for a heading References, Bibliography, Literatur or Literaturverzeichnis (also with a chapter number) alone on a line in the back part of the paper. An appendix that follows (Appendix, Appendices, Supplementary material, Anhang) is kept, because prompts are often printed there. If the text still does not fit the context window, it is shortened at a page boundary; reviewers then see “The AI only read up to p. n.” The prompt is in English, and the paper is user data in it, never an instruction.

What the model returns: for each question a value or “Not stated in the paper”, up to five pieces of evidence with page and quote (at most 300 characters), and a confidence (high, medium, low). LLARS checks every quote against the text of the stated page; differences in quotation marks, dashes, hyphenation, whitespace and case do not count. A quote that was found carries a check mark, one that was not found a warning sign (“Quote not found in the text”). Quotes shorter than 8 characters are never confirmed.

What reviewers see: a chip at each question such as “AI suggestion: DPO · p. 3 ✓” with the confidence and the “Apply” button. A click on the page opens the PDF there and highlights the quote in yellow; on a phone it jumps to the text tab. “Apply all AI answers” only fills unanswered visible questions, including follow-up questions that only appear as a result. If there are prefills from several models, LLARS shows the one of the model in ai_prefill.model_key in the codebook, otherwise the most recent finished one for the paper.

  • Never preselected. As long as nobody clicks, no AI answer is set.
  • Log: an applied answer is marked as an AI answer. On the first save with visible suggestions, LLARS records what was shown. Later runs and deleting a prefill do not change this snapshot.
  • Blind phase: if “Show AI answers to reviewers” is off, reviewers see no suggestions. The prefill settings and the full model id never reach assessors.
  • Not a rater: the AI never counts towards the agreement among humans. Its agreement with the humans is reported separately (see Evaluation).

Prefills of a model that ran outside LLARS can be imported through the v1 API.

Evaluation

Agreement per question

The Evaluation tab in the scenario manager shows the table “Agreement per question”: question, type, papers (pairable), reviewers, Krippendorff's α, depending on the type Fleiss' κ or Jaccard, agreement in percent, the distribution of answers and the AI agreement.

Question type Measure
single, boolean nominal Krippendorff's α, Fleiss' κ (Cohen's κ for two reviewers), percent agreement
multi Krippendorff's α with the Jaccard distance, mean pairwise Jaccard similarity, percent of identical sets, α per option
number interval α and percent of identical numbers
text no agreement, only the number of answers

For multiple choice the Jaccard distance gives partial agreement partial credit: {Prompting} and {Prompting, DPO} are closer than {Prompting} and {RLHF}. If everyone chose the same set, α cannot be computed (no variation), and the table says so.

Which answers count

  • Humans only, and only active assessors. The AI is not a rater.
  • Finished reviews only. A half-coded paper is work in progress, not a judgement.
  • Conditional questions only count papers where at least two reviewers saw the question. Someone who did not see the question has a missing cell there, not a “no”. The disagreement that led to the hiding shows up at the triggering question.
  • The agreement is computed fresh on every request, not read from a cache.

Comparing answers per paper

In the data tab, a paper opens the detail view with the matrix “Answers per reviewer”: one row per question, one column per reviewer. A cell shows the answer, “not shown” for a hidden follow-up question or “not answered”. Questions with conflicting answers carry the marker “Disagreement”. The notes follow below, and on the right there is one column per AI model. Free text never counts as disagreement.

Time on task

time_on_item_ms is only written on the first transition to “Done” and measures the time since the paper was opened in that session. active_time_on_item_ms sums the visible tab time across all sessions, at most one hour per save, so that a forgotten tab does not distort the mean.

Exports

v1 API (long format)

GET /api/v1/scenarios/{id}/results keeps the familiar long format without new columns. For each reviewer and paper there is one row with vote_type = review and, for each answered visible question, one row with vote_type = question_answer.

Row Key columns
review status (computed from the current codebook), notes, answers_json = {answers, answer_meta, codebook_version, document_sha256}, time_on_item_ms, active_time_on_item_ms
question_answer dimension_id = question id, vote_value_str, vote_value_num, status of the review, notes = extra text of an option such as “Other”, ai_shown, ai_models_shown, ai_suggestions_json, ai_agree_models, ai_agree_any, ai_applied_model

vote_value_str is the option id for single choice, the ids joined with ; in codebook order for multiple choice (prompting_only;dpo), true or false for yes/no, otherwise the number or the text. vote_value_num carries numbers and yes/no as 1 or 0. Empty reviews are left out; reviews “In progress” are included, so filter on status = done for final results. The AI prefill appears as rows with voter_kind = llm (prefill and question_answer); include_llms=0 leaves them out.

The JSON envelope also holds paper_review_metrics (PDF coverage, current codebook_version, reviews per version, AI versus human) and, under metrics.per_question, the agreement per question. GET /api/v1/scenarios/{id}/metrics returns the same list.

Export in the scenario manager (wide)

The CSV export of the scenario manager has one row per reviewer and paper and one column q_<question> per question in codebook order, plus q_<question>_other for questions with an extra field. It also contains status, codebook_version, notes, active_time_on_item_ms and the file name of the PDF. Hidden and unanswered questions stay empty. The AI prefill has rows of its own with type = paper_review_ai.

Permissions

Who May
Assessors see and fill in the PDF, the text and their own questionnaire; AI suggestions only if they are switched on for reviewers
Owner, editor, admin additionally upload, replace and remove papers and start the AI prefill in the data tab
Owner, editor, viewers (manager role), admin agreement per question, answers of all reviewers in the paper detail, and exports
Members with a read-only role the paper and the questionnaire, read-only

Assessors see neither the agreement nor other people's answers nor the prefill settings. They would otherwise learn how others coded before making their own decision. A paper from someone else's scenario is out of their reach. The v1 routes for papers and the codebook may only be called by the person who created the scenario and by admins; everybody else gets 404.

Known limits

  • Phones: on iOS and Android there is no embedded PDF, but the new tab and the text tab. Some viewers ignore the page jump; that is why the notice names the target page.
  • Duplicates are only recognised by identical bytes. A freshly exported PDF of the same paper counts as a different document.
  • Two tabs on the same paper: the last save wins.
  • No OCR: scanned PDFs can be read, but not searched and not prefilled.
  • Codebook lock: after the first review only additions are allowed. The editor only exists in the wizard; after that the v1 API is the way.
  • Title: through the wizard and the data tab, the title is the file name. Only the v1 API sets another title (label).
  • No parts, co-pilot or LLM evaluators: paper review has no study parts, no co-pilot and no LLM evaluators; every assessor gets every paper. Scenarios from batch generation cannot be paper reviews.
  • Not included yet: a consensus value per paper (adjudication), a pairwise agreement heatmap and several prefill models side by side.