paper-retrieval
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PR_DATA_ROOT | Yes | Where snapshots, indexes, and logs go. | |
| PR_LLM_MODEL | No | Model name for the OpenAI-compatible endpoint used by the optional LLM judge. | |
| PR_LLM_API_KEY | No | API key for the OpenAI-compatible endpoint used by the optional LLM judge. | |
| PR_INTENT_MODEL | No | A directory holding a trained citation-intent model (model.json + model.npz). Without one, relation_type="baseline" ranks like "any" and citation neighbors carry no baseline probability. | |
| PR_LLM_BASE_URL | No | Base URL for an OpenAI-compatible endpoint (e.g. vLLM) used by the optional LLM judge. | |
| PR_METADATA_DIR | Yes | OpenPapers' metadata/ directory. | |
| PR_FULLTEXT_ROOT | Yes | The toolkit's data directory (the parquet's path column is relative to it). | |
| PR_CORPUS_PARQUET | Yes | The toolkit's all_papers_with_refs.parquet (may contain {run_id}). | |
| PR_SNAPSHOT_RUN_ID | Yes | A name for this corpus version, e.g. 2026-11. | |
| PR_CORPUS_DESCRIPTION | No | How the tools describe your corpus to agents (optional). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Paper search over the paper corpus (with full text and an in-corpus citation graph). Start with find_papers, passing the user's question verbatim as both query and original_query. For follow-ups keep original_query = the verbatim question and put the sub-question in query. Cite papers by their url.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| find_papersA | Search the paper corpus (with full text and an in-corpus citation graph) for papers matching a research question. Runs the full pipeline: keyword and embedding search over titles, abstracts and full-text passages, citation-graph expansion, and cross-encoder reranking. This is the main entry point.
ALWAYS pass the user's question verbatim, unchanged, as |
| find_related_papersA | Paper-to-paper search: papers related to a given paper (what it builds on, compares with, or would cite, plus close work). Give exactly one of |
| search_passagesA | Passage-level search over full text (keyword + embedding). Use it to verify a candidate or find where a paper discusses something, optionally restricted to given papers. Returns passages with paper_id, section, text. |
| exact_searchB | Exact, case-insensitive match of a term (method name, dataset name, notation) in titles, abstracts and passages. Without paper_ids, passages are checked among the top 20,000 keyword hits; titles and abstracts in full. |
| get_paperA | Metadata, abstract, and section list of a paper. With |
| get_citation_neighborsB | In-corpus citation neighbors of a paper: |
| get_research_profileA | The passages to read for a research profile of a paper (problem, method, assumptions, findings, limitations): its abstract, the start of the introduction, method sections, and the conclusion, in document order with passage ids (about 14,000 characters). Summarize them yourself, citing passage ids. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
The tools have mostly distinct retrieval goals: broad question search, passage search, exact term matching, related-paper discovery, metadata/section retrieval, citation neighbors, and research-profile extraction. There is some conceptual overlap between search_passages, exact_search, and get_paper with section retrieval, but the descriptions provide clear boundaries for when to use each.
Most names follow a clear verb_noun pattern such as find_papers, search_passages, get_paper, and get_citation_neighbors. exact_search is the main deviation, using an adjective_noun form, but it is still readable and consistent enough overall.
Seven tools is a well-scoped set for a paper retrieval server, with each tool covering a distinct retrieval mode or evidence-gathering need. No tool appears redundant or out of place.
The server covers semantic search, passage verification, exact matching, related work, metadata, citation context, and research-profile extraction. Minor gaps might include author/venue filtering or batch paper comparison, but the core retrieval lifecycle is well represented.