snlp-2
Paper Review assignment
From Part 1 to Part 2
In Part 1, you used the OpenAI API to see what a smaller open weight model could do with different amounts of information about a paper. An API call can feel like a clunky way to have a conversation, especially if you're used to ChatGPT or Codex. In those applications, much of the work of managing a conversation, gathering context, and using tools happens under the hood. In this course, we'll look at how systems like these are built by trying some of those pieces ourselves.
Maybe the model gave you a plausible account of a paper from its citation alone. Maybe you provided an excerpt and found that a crucial detail was on the next page, or that the model picked up the wrong value from a table. Working out where an answer went wrong is a great outcome of the exercise. It gives you something specific to investigate next.
At this point you may be wondering, “Why use LLMs at all for this?” If you've used a frontier model, the gap may seem as wide as the Grand Canyon. How much of that difference comes from the model's size and training, and how much comes from the software around it? A system that can retrieve a paper, select relevant passages, and check a source is doing more than asking a model to answer from a citation. We can explore one piece of that difference by keeping the model fixed and changing the evidence it receives. Sometimes the extra evidence helps. Sometimes it surfaces another problem!
As you read the examples below, keep one question in mind. What would the model need to have access to for your question to be answerable? See Class Maestro for the Part 2 prompt and rubric.
Tutorials
- Choose and force tool calls with the OpenAI API uses Paper MCP, our toy library for working with research papers. You'll see which tool the model asks to use, what the tool gives it, and how to check the answer against the paper.
- Test image evidence from a paper is optional. It shows how to send a table crop to the model and compare what it gets from the image and the extracted text. You could try a similar comparison with a figure.
Using the example for Paper Review Part 2
Pick one question about your paper with an answer you can check. Keep the question and model the same across two runs, and change one thing about the evidence the model receives. You can reuse a Part 1 run if it used the same question and model.
You can use the supplied paper-tool-choice client for this comparison.
Modifying its code is optional. Start with the tutorial's
local setup and example run.
Then try a question from your own paper.
With your Python environment active and gateway settings defined, copy your PDF
to papers/my-paper.pdf and import it. Set DOCUMENT_ID to the ID returned by
the import. Then use --question to ask your question and --trace to save the
run:
pdf-library import papers/my-paper.pdf
export DOCUMENT_ID="paste your paper's document_id here"
paper-tool-choice "$DOCUMENT_ID" auto \
--question "Replace this with your question about the paper." \
--trace traces/paper-review-part2-auto.jsonl
Choose a new trace filename for each run. Inspect the trace to see what evidence the model received. Changing a tool mode may return the same evidence, so check what actually changed across your comparison. You can also provide evidence directly, as described in the assignment prompt.
Check both answers against a specific passage, table, or figure. Include the paper URL and relevant request and response excerpts, then explain what changed and what evidence might still help. See Class Maestro for the current prompt and rubric.