papersearch 0.7.2 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE-paper-search-mcp-nodejs +24 -0
- package/NOTICE +8 -37
- package/README.en.md +7 -3
- package/README.fr.md +268 -0
- package/README.ja.md +268 -0
- package/README.ko.md +268 -0
- package/README.md +7 -3
- package/README.zh-Hant.md +268 -0
- package/dist/capabilities/download/batch/batch.d.ts +16 -1
- package/dist/capabilities/download/batch/batch.d.ts.map +1 -1
- package/dist/capabilities/download/batch/batch.js +669 -53
- package/dist/capabilities/download/batch/batch.js.map +1 -1
- package/dist/capabilities/download/batch/batchFolder.d.ts.map +1 -1
- package/dist/capabilities/download/batch/batchFolder.js +4 -3
- package/dist/capabilities/download/batch/batchFolder.js.map +1 -1
- package/dist/capabilities/download/batch/batchSummary.js +1 -1
- package/dist/capabilities/download/batch/batchSummary.js.map +1 -1
- package/dist/capabilities/download/batch/networkLoss.d.ts +12 -3
- package/dist/capabilities/download/batch/networkLoss.d.ts.map +1 -1
- package/dist/capabilities/download/batch/networkLoss.js +25 -4
- package/dist/capabilities/download/batch/networkLoss.js.map +1 -1
- package/dist/capabilities/download/batch/resume.d.ts +7 -0
- package/dist/capabilities/download/batch/resume.d.ts.map +1 -1
- package/dist/capabilities/download/batch/resume.js +50 -9
- package/dist/capabilities/download/batch/resume.js.map +1 -1
- package/dist/capabilities/download/content/markdown/pro.d.ts +6 -0
- package/dist/capabilities/download/content/markdown/pro.d.ts.map +1 -1
- package/dist/capabilities/download/content/markdown/pro.js.map +1 -1
- package/dist/capabilities/download/content/markdown/shortfall.d.ts +8 -5
- package/dist/capabilities/download/content/markdown/shortfall.d.ts.map +1 -1
- package/dist/capabilities/download/content/markdown/shortfall.js +27 -15
- package/dist/capabilities/download/content/markdown/shortfall.js.map +1 -1
- package/dist/capabilities/download/content/markdown/step.d.ts +9 -0
- package/dist/capabilities/download/content/markdown/step.d.ts.map +1 -1
- package/dist/capabilities/download/content/markdown/step.js +42 -2
- package/dist/capabilities/download/content/markdown/step.js.map +1 -1
- package/dist/capabilities/download/content/markdown/types.d.ts +10 -1
- package/dist/capabilities/download/content/markdown/types.d.ts.map +1 -1
- package/dist/capabilities/download/handler.d.ts.map +1 -1
- package/dist/capabilities/download/handler.js +13 -5
- package/dist/capabilities/download/handler.js.map +1 -1
- package/dist/capabilities/download/outputLayout.d.ts.map +1 -1
- package/dist/capabilities/download/outputLayout.js +3 -1
- package/dist/capabilities/download/outputLayout.js.map +1 -1
- package/dist/capabilities/download/tools.js +2 -2
- package/dist/capabilities/download/tools.js.map +1 -1
- package/dist/capabilities/download/types.d.ts +9 -1
- package/dist/capabilities/download/types.d.ts.map +1 -1
- package/dist/cli.js +3 -1
- package/dist/cli.js.map +1 -1
- package/dist/infrastructure/runlog/RunLedger.d.ts +7 -0
- package/dist/infrastructure/runlog/RunLedger.d.ts.map +1 -1
- package/dist/infrastructure/runlog/RunLedger.js +13 -0
- package/dist/infrastructure/runlog/RunLedger.js.map +1 -1
- package/dist/infrastructure/runlog/failureClass.d.ts +17 -9
- package/dist/infrastructure/runlog/failureClass.d.ts.map +1 -1
- package/dist/infrastructure/runlog/failureClass.js +89 -56
- package/dist/infrastructure/runlog/failureClass.js.map +1 -1
- package/dist/infrastructure/school/SchoolAttempt.d.ts +11 -0
- package/dist/infrastructure/school/SchoolAttempt.d.ts.map +1 -1
- package/dist/infrastructure/school/SchoolAttempt.js +107 -59
- package/dist/infrastructure/school/SchoolAttempt.js.map +1 -1
- package/dist/infrastructure/school/SchoolMcpClient.d.ts +7 -2
- package/dist/infrastructure/school/SchoolMcpClient.d.ts.map +1 -1
- package/dist/infrastructure/school/SchoolMcpClient.js +30 -7
- package/dist/infrastructure/school/SchoolMcpClient.js.map +1 -1
- package/dist/infrastructure/school/SchoolProgress.d.ts +2 -0
- package/dist/infrastructure/school/SchoolProgress.d.ts.map +1 -1
- package/dist/infrastructure/school/SchoolProgress.js +2 -0
- package/dist/infrastructure/school/SchoolProgress.js.map +1 -1
- package/dist/infrastructure/school/SchoolReadiness.d.ts +2 -0
- package/dist/infrastructure/school/SchoolReadiness.d.ts.map +1 -1
- package/dist/infrastructure/school/SchoolReadiness.js +2 -0
- package/dist/infrastructure/school/SchoolReadiness.js.map +1 -1
- package/dist/infrastructure/school/SchoolResultNormalizer.d.ts.map +1 -1
- package/dist/infrastructure/school/SchoolResultNormalizer.js +4 -0
- package/dist/infrastructure/school/SchoolResultNormalizer.js.map +1 -1
- package/dist/infrastructure/school/index.d.ts +2 -2
- package/dist/infrastructure/school/index.d.ts.map +1 -1
- package/dist/infrastructure/school/index.js +1 -1
- package/dist/infrastructure/school/index.js.map +1 -1
- package/dist/infrastructure/school/types.d.ts +52 -3
- package/dist/infrastructure/school/types.d.ts.map +1 -1
- package/dist/infrastructure/school/types.js.map +1 -1
- package/dist/management/failures/index.d.ts +28 -2
- package/dist/management/failures/index.d.ts.map +1 -1
- package/dist/management/failures/index.js +83 -21
- package/dist/management/failures/index.js.map +1 -1
- package/package.json +7 -2
- package/school/NOTICE +3 -2
- package/school/paper_search_school/adapters/__init__.py +2 -0
- package/school/paper_search_school/adapters/aps/__init__.py +3 -6
- package/school/paper_search_school/adapters/base.py +18 -0
- package/school/paper_search_school/adapters/copernicus/__init__.py +2 -7
- package/school/paper_search_school/adapters/elsevier/__init__.py +50 -1
- package/school/paper_search_school/adapters/frontiers/__init__.py +41 -2
- package/school/paper_search_school/adapters/ieee/__init__.py +6 -4
- package/school/paper_search_school/adapters/iop/__init__.py +8 -0
- package/school/paper_search_school/adapters/jama/__init__.py +8 -0
- package/school/paper_search_school/adapters/lww/__init__.py +14 -6
- package/school/paper_search_school/adapters/mdpi/__init__.py +12 -7
- package/school/paper_search_school/adapters/neurology/__init__.py +5 -2
- package/school/paper_search_school/adapters/optica/__init__.py +2 -9
- package/school/paper_search_school/adapters/oup/__init__.py +27 -4
- package/school/paper_search_school/adapters/platforms/__init__.py +4 -1
- package/school/paper_search_school/adapters/platforms/atypon/__init__.py +8 -0
- package/school/paper_search_school/adapters/platforms/jstage/__init__.py +64 -0
- package/school/paper_search_school/adapters/sage/__init__.py +4 -1
- package/school/paper_search_school/adapters/thieme/__init__.py +6 -11
- package/school/paper_search_school/api_keys.py +63 -13
- package/school/paper_search_school/assets/api_keys.json +14 -0
- package/school/paper_search_school/assets/capsule.html +274 -158
- package/school/paper_search_school/assets/capsule_en.json +99 -98
- package/school/paper_search_school/assets/capsule_fr.json +100 -99
- package/school/paper_search_school/assets/capsule_ja.json +99 -98
- package/school/paper_search_school/assets/capsule_ko.json +99 -98
- package/school/paper_search_school/assets/capsule_zh-Hant.json +94 -97
- package/school/paper_search_school/browser/batch_session.py +1 -1
- package/school/paper_search_school/browser/challenge/__init__.py +12 -9
- package/school/paper_search_school/browser/challenge/continuation.py +65 -0
- package/school/paper_search_school/browser/challenge/handlers/__init__.py +1 -0
- package/school/paper_search_school/browser/challenge/handlers/aws_waf.py +260 -0
- package/school/paper_search_school/browser/challenge/handlers/recaptcha_hcaptcha.py +167 -0
- package/school/paper_search_school/browser/challenge/handlers/text_captcha.py +100 -0
- package/school/paper_search_school/browser/challenge/handlers/turnstile.py +174 -0
- package/school/paper_search_school/browser/challenge/kinds.py +203 -0
- package/school/paper_search_school/browser/challenge/local/__init__.py +1 -0
- package/school/paper_search_school/browser/challenge/{interaction.py → local/interaction.py} +94 -13
- package/school/paper_search_school/browser/challenge/{pointer.py → local/pointer.py} +2 -2
- package/school/paper_search_school/browser/challenge/local/prompt.py +283 -0
- package/school/paper_search_school/browser/challenge/local/submission.py +33 -0
- package/school/paper_search_school/browser/challenge/services/__init__.py +1 -0
- package/school/paper_search_school/browser/challenge/services/solver.py +272 -0
- package/school/paper_search_school/cli_config.py +10 -5
- package/school/paper_search_school/cold_start.py +22 -11
- package/school/paper_search_school/config.py +11 -10
- package/school/paper_search_school/download_diagnostics.py +7 -2
- package/school/paper_search_school/engine/access_rules.py +15 -5
- package/school/paper_search_school/engine/batch.py +55 -15
- package/school/paper_search_school/engine/batch_access.py +59 -21
- package/school/paper_search_school/engine/batch_capture.py +215 -18
- package/school/paper_search_school/engine/batch_common.py +3 -0
- package/school/paper_search_school/engine/batch_diagnostics.py +25 -5
- package/school/paper_search_school/engine/batch_institution.py +168 -32
- package/school/paper_search_school/engine/batch_login.py +223 -16
- package/school/paper_search_school/engine/batch_pdf_urls.py +38 -7
- package/school/paper_search_school/engine/batch_waits.py +179 -12
- package/school/paper_search_school/engine/bridge.py +44 -7
- package/school/paper_search_school/engine/fulltext_page.py +45 -7
- package/school/paper_search_school/engine/router.py +18 -2
- package/school/paper_search_school/entitlements.py +1 -1
- package/school/paper_search_school/orchestrator.py +44 -18
- package/school/paper_search_school/pdf_utils.py +25 -16
- package/school/paper_search_school/progress_capsule.py +36 -6
- package/school/paper_search_school/progress_reporter.py +71 -13
- package/school/paper_search_school/progress_view.py +64 -44
- package/school/paper_search_school/publishers/builtin/iop.json +2 -1
- package/school/paper_search_school/publishers/builtin/neurology.json +4 -2
- package/school/paper_search_school/publishers/builtin/sage.json +4 -2
- package/school/paper_search_school/publishers/builtin/thieme.json +3 -1
- package/school/paper_search_school/publishers/site.py +12 -4
- package/school/paper_search_school/school_switch.py +34 -52
- package/school/paper_search_school/school_test.py +1 -1
- package/school/paper_search_school/server.py +24 -11
- package/school/paper_search_school/user_settings.py +13 -0
- package/school/pyproject.toml +1 -0
- package/skills/paper-search/SKILL.md +107 -107
- package/skills/paper-search/references/browser-download.md +102 -101
- package/skills/paper-search/references/capability-routing.md +89 -89
- package/skills/paper-search/references/cli-contract.md +78 -78
- package/skills/paper-search/references/federation-support.md +172 -172
- package/skills/paper-search/references/management-layer.md +78 -78
- package/skills/paper-search/references/publisher-support.md +38 -38
- package/skills/paper-search/references/school-setup.md +56 -55
- package/skills/paper-search/references/setup.md +20 -20
- package/skills/paper-search/references/troubleshooting.md +12 -12
- package/school/paper_search_school/browser/challenge/prompt.py +0 -154
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Capability routing
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Use this file to map the user's literature request to one of the five literature capabilities of `paper-search`.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Capability map
|
|
6
6
|
|
|
7
|
-
|
|
|
7
|
+
| User intent | Capability | Preferred entry | Boundary |
|
|
8
8
|
|---|---|---|---|
|
|
9
|
-
|
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
9
|
+
| Search papers, find related studies, verify DOI/PMID, first screening | `metadata_search` | `paper-search search` integrated entry / `paper-search run search_*` exact tool entry | Returns and verifies paper metadata only; Sci-Hub is not a search source |
|
|
10
|
+
| Expand the citation network of a known paper | `citation_expansion` | `paper-search run get_paper_citations` / `paper-search run get_paper_references` | Needs a known `paperId`, DOI or arXiv ID; returns citing papers or references; not a keyword search |
|
|
11
|
+
| Impact factor, JCR/SSCI/CAS zones, JCI, ESI, warning lists, journal grades | `journal_metrics` | `paper-search journal-metrics` / `paper-search run query_journal_metrics` | Looks up journals, not papers; needs `EASYSCHOLAR_KEY` |
|
|
12
|
+
| Get or download the PDF and supplementary files of a verified paper | `pdf_discovery` | `paper-search download` / `paper-search run download_with_fallback` / `download_batch` | Verify identity before downloading; after the open channels come Sci-Hub (when on) and school subscription downloads (when enabled) |
|
|
13
|
+
| Find how Methods are written, parameters, software, models or statistical wording in body snippets | `body_snippet_search` | `paper-search run search_semantic_snippets` | Searches the Semantic Scholar open-access snippet index; needs `SEMANTIC_SCHOLAR_API_KEY`; not full-text parsing |
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Workflow boundaries
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Open-ended literature tasks take two steps:
|
|
18
18
|
|
|
19
|
-
1.
|
|
20
|
-
2.
|
|
19
|
+
1. Do `metadata_search`: put together and verify the list of papers, with title, authors, year, journal or source, DOI, PMID/PMCID, URL, abstract clues and relevance.
|
|
20
|
+
2. Do `pdf_discovery` only after the user confirms the chosen papers, or the task clearly needs PDFs. Record the reason for each failed download and do not let it block the others.
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
When the user gives a DOI, PMID, PMCID or a verified list, the broad search can be skipped, but the target's identity is still verified before downloading.
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
Do not make up PMIDs, DOIs, titles, authors, journals or years from model memory. For an important citation, give the point it supports, the title, authors, journal or source and year, the DOI or PMID when there is one, and a stable URL.
|
|
25
25
|
|
|
26
|
-
##
|
|
26
|
+
## Metadata search
|
|
27
27
|
|
|
28
|
-
`metadata_search`
|
|
28
|
+
`metadata_search` is for finding papers, expanding keywords, first screening, and verifying DOI/PMID/PMCID.
|
|
29
29
|
|
|
30
|
-
`paper-search search`
|
|
30
|
+
`paper-search search` is the integrated metadata search entry:
|
|
31
31
|
|
|
32
|
-
- `--platform NAME
|
|
33
|
-
- `--sources a,b,c
|
|
34
|
-
- `--platform all`
|
|
32
|
+
- `--platform NAME`: one source only;
|
|
33
|
+
- `--sources a,b,c`: several named sources;
|
|
34
|
+
- `--platform all` or `--sources all`: only when recall matters more than precision.
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
It does not call `citation_expansion`, `journal_metrics`, `pdf_discovery` or `body_snippet_search`.
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
39
|
paper-search search "machine learning" --platform crossref --max-results 5 --pretty
|
|
@@ -42,7 +42,7 @@ paper-search search "transformer attention mechanism" --sources semantic,crossre
|
|
|
42
42
|
paper-search search "causal inference target trial emulation" --sources all --max-results 5 --pretty
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
Exact tool entry:
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
48
|
paper-search run search_pubmed --arg query="osteoarthritis occupational exposure" --arg maxResults=10 --pretty
|
|
@@ -50,22 +50,22 @@ paper-search run search_openalex --arg query="causal inference target trial emul
|
|
|
50
50
|
paper-search run get_paper_by_doi --arg doi="10.xxxx/xxxxx" --pretty
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
Do not use `search_scihub` as a search source: it looks up by DOI or URL and is not part of `metadata_search`.
|
|
54
54
|
|
|
55
|
-
##
|
|
55
|
+
## Citation expansion
|
|
56
56
|
|
|
57
|
-
`citation_expansion`
|
|
57
|
+
`citation_expansion` is for when the user has a known paper and asks which papers cite it, or what it cites.
|
|
58
58
|
|
|
59
59
|
```bash
|
|
60
60
|
paper-search run get_paper_citations --arg doi="10.1038/nature12373" --pretty
|
|
61
61
|
paper-search run get_paper_references --arg doi="10.1038/nature12373" --pretty
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
The identifier priority is `paperId` > `doi` > `arxivId`. Citing papers come from OpenAlex, reference lists from the publisher's Crossref deposit or else OpenAlex (`cli-contract.md`); a Semantic Scholar `paperId` is first turned into its DOI through the Semantic Scholar Graph API. This is separate from the keyword-based `metadata_search`.
|
|
65
65
|
|
|
66
|
-
##
|
|
66
|
+
## Journal metrics
|
|
67
67
|
|
|
68
|
-
`journal_metrics`
|
|
68
|
+
`journal_metrics` looks up journal-level metrics: impact factor, JCR/SSCI quartiles, CAS zones, JCI, ESI, warning lists and grades.
|
|
69
69
|
|
|
70
70
|
```bash
|
|
71
71
|
paper-search journal-metrics "Nature" "BMJ" --pretty
|
|
@@ -73,19 +73,19 @@ paper-search journal-metrics --file journals.txt --include-raw --pretty
|
|
|
73
73
|
paper-search run query_journal_metrics --json-args '{"journals":["Nature"],"includeRaw":true}' --pretty
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
Needs `EASYSCHOLAR_KEY`. Without it, give the user the sign-up address from the error, and ask the user to configure it in their own terminal:
|
|
77
77
|
|
|
78
78
|
```bash
|
|
79
79
|
paper-search setup EASYSCHOLAR_KEY
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
When school subscription downloads are installed and the user is at this computer, you can also run `paper-search settings EASYSCHOLAR_KEY` to open the settings window for the user to fill in.
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
For many journals, use one `journal-metrics` with several journal names or `--file`; do not send EasyScholar requests in parallel.
|
|
85
85
|
|
|
86
|
-
## PDF
|
|
86
|
+
## PDF retrieval
|
|
87
87
|
|
|
88
|
-
`pdf_discovery`
|
|
88
|
+
`pdf_discovery` gets the PDFs of verified papers. Do not start an open-ended literature task with a batch download.
|
|
89
89
|
|
|
90
90
|
```bash
|
|
91
91
|
paper-search download PMC11466435 --platform pmc --pretty
|
|
@@ -93,47 +93,47 @@ paper-search run download_paper --arg paperId="10.xxxx/xxxxx" --arg platform=spr
|
|
|
93
93
|
paper-search run download_with_fallback --json-args '{"source":"crossref","paperId":"10.xxxx/xxxxx","doi":"10.xxxx/xxxxx","title":"Paper title"}' --pretty
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
Without `savePath`, files go to `DEFAULT_DOWNLOAD_PATH` (see "Default download folder" in SKILL.md); pass `savePath` / `--save-path` only when the user names another folder for this download.
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
Downloads come in two kinds: steps 1–6 are open download (available by default), step 7 is the school download (school subscription downloads, `entitled_access`, installed on a computer with the user's consent). The order of `download_with_fallback`:
|
|
99
99
|
|
|
100
|
-
1.
|
|
101
|
-
2.
|
|
102
|
-
3. PubMed Central
|
|
103
|
-
4. Unpaywall
|
|
104
|
-
5. `publisher_api
|
|
105
|
-
6. PaperSearch
|
|
106
|
-
7.
|
|
107
|
-
8. arXiv
|
|
100
|
+
1. The source's own download;
|
|
101
|
+
2. The PDF address in the metadata;
|
|
102
|
+
3. PubMed Central's official channels: DOI → PMCID (NCBI ID conversion) → the PDF in PMC Article Datasets (S3), otherwise Europe PMC's `getPdf`; CORE and OpenAIRE are search sources only;
|
|
103
|
+
4. Unpaywall: all open-access locations, the published version first; copies on sites that refuse plain HTTP downloads (Wiley, ScienceDirect, Springer, MDPI, PMC, etc.) are marked `browser_only` and left to `entitled_access`; arXiv copies are left to the final `preprint` stage;
|
|
104
|
+
5. `publisher_api`: the user's own `ELSEVIER_API_KEY` (PDF) or `SPRINGER_API_KEY` (JATS XML full text), over plain HTTPS; skipped without a key; `not_entitled` when the network or the key has no subscription;
|
|
105
|
+
6. PaperSearch's Sci-Hub, unless `useSciHub=false`;
|
|
106
|
+
7. The optional school download backend (`entitled_access`);
|
|
107
|
+
8. arXiv preprint (`preprint`): tried only when no published-version route got the full text; on success you must tell the user `version: "preprint"`.
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
Fixed order: `primary -> direct_pdf_url -> repositories -> unpaywall -> publisher_api -> scihub -> entitled_access -> preprint`. `download_paper` enters the same funnel, and the source's own download is tried at most once. When Sci-Hub succeeds, the school download backend is not called; only when Sci-Hub fails or is skipped does it go on to `entitled_access`.
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
The school download backend (school subscription downloads) is the only optional authorized download backend. It is off globally unless `PAPER_SEARCH_SCHOOL_ENABLED` is exactly `true`; the request's `useEntitledAccess` defaults to `true` and can only turn off this layer, never bypass the global switch. To turn it off for one request:
|
|
112
112
|
|
|
113
113
|
```bash
|
|
114
114
|
paper-search run download_with_fallback --json-args '{"source":"crossref","paperId":"10.xxxx/xxxxx","doi":"10.xxxx/xxxxx","title":"Paper title","useEntitledAccess":false}' --pretty
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
-
Sci-Hub
|
|
117
|
+
The Sci-Hub fallback is on by default. To skip Sci-Hub for one request and go straight on to the optional school download:
|
|
118
118
|
|
|
119
119
|
```bash
|
|
120
120
|
paper-search run download_with_fallback --json-args '{"source":"crossref","paperId":"10.xxxx/xxxxx","doi":"10.xxxx/xxxxx","title":"Paper title","useSciHub":false}' --pretty
|
|
121
121
|
```
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
What to download is chosen with `content`: `pdf` (the full-text PDF, default), `supplements` (supplementary files, fetched only through the school download backend; which publishers: see `publisher-support.md`); both can be wanted (`"pdf,supplements"`); details in `browser-download.md`.
|
|
124
124
|
|
|
125
|
-
PDF
|
|
125
|
+
PDF source groups:
|
|
126
126
|
|
|
127
|
-
- `open_access_sources
|
|
128
|
-
- `scihub_sources
|
|
127
|
+
- `open_access_sources`: bioRxiv, medRxiv, PMC, Europe PMC, CORE, OpenAIRE, Unpaywall, OpenAlex's open-access metadata, Semantic Scholar's openAccessPdf, publishers' open-access modes, IACR;
|
|
128
|
+
- `scihub_sources`: Sci-Hub, marked separately: a layer on by default after the open channels and before the school download; it is neither open access nor institutional authorization.
|
|
129
129
|
|
|
130
|
-
`metadata_entitled`
|
|
130
|
+
`metadata_entitled` is the metadata class for databases and publishers with keys; it cannot serve as a local authorized PDF backend. The school download backend is called only through PaperSearch's fixed `SchoolBackend` interface; it is installed with `paper-search school install` when the user asks (see `school-setup.md`), and has its own MCP stdio service; no separate MCP package, global MCP configuration, resident process or port is needed.
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
When calling the school download backend, always use `legal_only` (or `institutional_only` when the backend declares support for it, skipping the backend's own race among public sources), and turn off the backend's internal Sci-Hub and Tor. `legal_only` is not `entitled_only`: a successful result may also come from open access, and cannot prove school authorization. Apart from the school download backend, there is no browser, WebVPN or EZProxy fallback.
|
|
133
133
|
|
|
134
|
-
##
|
|
134
|
+
## Verify papers
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
Verify key papers before reporting them:
|
|
137
137
|
|
|
138
138
|
```bash
|
|
139
139
|
paper-search run search_pubmed --arg query="37654321[PMID]" --arg maxResults=1 --pretty
|
|
@@ -141,57 +141,57 @@ paper-search run get_paper_by_doi --arg dois="10.xxxx/aaaaa,10.xxxx/bbbbb,10.xxx
|
|
|
141
141
|
paper-search run search_crossref --arg query="full paper title" --arg maxResults=3 --pretty
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
-
|
|
145
|
-
- `data.papers
|
|
146
|
-
- `data.not_found
|
|
147
|
-
- `data.lookup_failed
|
|
148
|
-
- `data.warnings
|
|
144
|
+
To check several DOIs, pass them at once with `dois` (comma-separated, up to 100); do not call them one by one; with only one, `--arg doi=...` works too. The result has a fixed structure:
|
|
145
|
+
- `data.papers`: the papers found, one per DOI, in the order given;
|
|
146
|
+
- `data.not_found`: DOIs that every source checked and none had; they may be mistyped or not exist;
|
|
147
|
+
- `data.lookup_failed`: DOIs that could not be checked because every source erred; retry later; do not treat them as nonexistent;
|
|
148
|
+
- `data.warnings`: the sources that erred.
|
|
149
149
|
|
|
150
|
-
|
|
150
|
+
Crossref is checked first by default; only the DOIs it lacks go to other sources; to see each source's own record, add `--arg platform=all`. The `data` returned by `paper-search search` is itself the list of papers.
|
|
151
151
|
|
|
152
|
-
PMID
|
|
152
|
+
A PMID is confirmed by PubMed; a DOI by a DOI lookup or the results of Crossref, OpenAlex or Semantic Scholar. The PMID, DOI, title, first author and year of one paper should agree; when they do not, mark it as doubtful.
|
|
153
153
|
|
|
154
|
-
##
|
|
154
|
+
## Body snippet search
|
|
155
155
|
|
|
156
|
-
`body_snippet_search`
|
|
156
|
+
`body_snippet_search` finds body-snippet clues such as how Methods are written, parameters, software names, model descriptions and statistical wording.
|
|
157
157
|
|
|
158
158
|
```bash
|
|
159
159
|
paper-search run search_semantic_snippets --arg query="comparative risk assessment methods uncertainty propagation" --arg limit=5 --arg fieldsOfStudy=Medicine --pretty
|
|
160
160
|
```
|
|
161
161
|
|
|
162
|
-
`search_semantic_snippets`
|
|
162
|
+
`search_semantic_snippets` needs `SEMANTIC_SCHOLAR_API_KEY`, and its count parameter is `limit`, not `maxResults`. Without the key, give the user the sign-up address from the error and `paper-search setup SEMANTIC_SCHOLAR_API_KEY` (with a settings window, `paper-search settings SEMANTIC_SCHOLAR_API_KEY` also works).
|
|
163
163
|
|
|
164
|
-
|
|
164
|
+
Only results with `snippetKind="body"` can serve as body-snippet evidence; those from `title` or `abstract` are only clues. Before citing or relying on a snippet, verify the title, authors, year, journal or source, DOI or PMID.
|
|
165
165
|
|
|
166
|
-
|
|
166
|
+
When giving a body snippet in an answer, quote the original English sentence as it is (no translation, no rewording, no joining of sentences), and on the next line give the source, using this result's `source` directly (first author et al., year, journal · section · DOI · license); when an explanation in another language (such as Chinese) is wanted, put it in a separate paragraph:
|
|
167
167
|
|
|
168
168
|
```text
|
|
169
169
|
> "The primary outcome in the DAPA-HF trial was the composite of … whichever occurred first."
|
|
170
170
|
> —— M. Kosiborod et al., 2019, Circulation · Clinical outcomes · DOI 10.1161/CIRCULATIONAHA.119.044138 · CC BY
|
|
171
171
|
```
|
|
172
172
|
|
|
173
|
-
- `title
|
|
174
|
-
- `paper.metadataStatus`
|
|
173
|
+
- Results matched in `title` or `abstract` do not use this format; when listing them, mark them "clue (abstract)" or "clue (title)", in the user's language.
|
|
174
|
+
- When `paper.metadataStatus` is not `found`, the source has no year, journal or DOI: write "DOI to be verified", and look it up with the verification steps above before citing it; for `lookup_failed`, the command's first line says so.
|
|
175
175
|
|
|
176
|
-
##
|
|
176
|
+
## Choose sources
|
|
177
177
|
|
|
178
|
-
|
|
|
178
|
+
| Task | Preferred | Also |
|
|
179
179
|
|---|---|---|
|
|
180
|
-
|
|
|
181
|
-
| Methods
|
|
182
|
-
|
|
|
183
|
-
|
|
|
184
|
-
|
|
|
185
|
-
|
|
|
186
|
-
|
|
|
187
|
-
|
|
|
188
|
-
|
|
|
189
|
-
|
|
|
190
|
-
|
|
|
191
|
-
|
|
192
|
-
##
|
|
193
|
-
|
|
194
|
-
-
|
|
195
|
-
-
|
|
196
|
-
-
|
|
197
|
-
-
|
|
180
|
+
| Biomedicine, clinical medicine, pharmacy, public health | `pubmed` | `pmc`, `europepmc`, `semantic`, `crossref` |
|
|
181
|
+
| Methods, body-snippet clues | `search_semantic_snippets` | first use `pubmed`, `semantic` to find titles and synonyms |
|
|
182
|
+
| Citation network expansion | `get_paper_citations`, `get_paper_references` | only after the target paper's identifier is known |
|
|
183
|
+
| Computer science, AI, mathematics, physics | `semantic`, `dblp` | `crossref`, `openalex`, `openreview` |
|
|
184
|
+
| Computer science bibliography and conference metadata | `dblp` | `acm`, `usenix`, `openreview`; `ieee` needs a key |
|
|
185
|
+
| Cross-disciplinary coverage | `crossref` | `openalex`, `semantic` |
|
|
186
|
+
| Find open-access full text | the layers of `download_with_fallback` (PMC official channels, Unpaywall) | `download_with_fallback` |
|
|
187
|
+
| Journal impact factor, quartiles, grades | `journal-metrics` | `query_journal_metrics` |
|
|
188
|
+
| Cryptography | `iacr` | `dblp` |
|
|
189
|
+
| Sort by citation count | `semantic`, `crossref`, `openalex` | `webofscience`, `scopus` need keys |
|
|
190
|
+
| Metadata of publishers or paid databases | `webofscience`, `ieee`, `scopus`, `sciencedirect`, `springer` / `springerlink` | only with the matching metadata key configured; this does not authorize PDF downloads |
|
|
191
|
+
|
|
192
|
+
## Build search terms
|
|
193
|
+
|
|
194
|
+
- Research questions in Chinese (or another language) are translated into English keywords by default.
|
|
195
|
+
- Use 3–8 core concept words, not long sentences.
|
|
196
|
+
- Add MeSH or standard terms for medical topics when needed.
|
|
197
|
+
- For method details, add software names, parameter names, model names, or section words such as `methods`, `statistical analysis`, `adjusted for`, `bootstrap`, `sensitivity analysis`.
|