paperpipe 0.8.2__py3-none-any.whl
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.
- AGENT_INTEGRATION.md +37 -0
- LICENSE +21 -0
- README.md +744 -0
- ROADMAP.md +288 -0
- paperpipe/__init__.py +15 -0
- paperpipe/__main__.py +6 -0
- paperpipe/cli.py +3045 -0
- paperpipe/config.py +648 -0
- paperpipe/core.py +390 -0
- paperpipe/install.py +752 -0
- paperpipe/leann.py +153 -0
- paperpipe/output.py +63 -0
- paperpipe/paper.py +1067 -0
- paperpipe/paperqa.py +519 -0
- paperpipe/search.py +859 -0
- paperpipe-0.8.2.dist-info/METADATA +815 -0
- paperpipe-0.8.2.dist-info/RECORD +46 -0
- paperpipe-0.8.2.dist-info/WHEEL +4 -0
- paperpipe-0.8.2.dist-info/entry_points.txt +2 -0
- paperpipe-0.8.2.dist-info/licenses/LICENSE +21 -0
- paperqa_mcp_server.py +316 -0
- prompts/claude/compare-papers.md +23 -0
- prompts/claude/curate-paper-note.md +22 -0
- prompts/claude/ground-with-paper.md +15 -0
- prompts/claude/papi.md +22 -0
- prompts/claude/verify-with-paper.md +22 -0
- prompts/codex/compare-papers.md +23 -0
- prompts/codex/curate-paper-note.md +22 -0
- prompts/codex/ground-with-paper.md +15 -0
- prompts/codex/papi.md +23 -0
- prompts/codex/verify-with-paper.md +22 -0
- prompts/gemini/compare-papers.toml +22 -0
- prompts/gemini/curate-paper-note.toml +21 -0
- prompts/gemini/ground-with-paper.toml +14 -0
- prompts/gemini/papi-list.toml +6 -0
- prompts/gemini/papi-path.toml +6 -0
- prompts/gemini/papi-run.toml +5 -0
- prompts/gemini/papi-search.toml +10 -0
- prompts/gemini/papi-show-eq.toml +7 -0
- prompts/gemini/papi-show-summary.toml +7 -0
- prompts/gemini/papi-show-tex.toml +7 -0
- prompts/gemini/papi-tags.toml +6 -0
- prompts/gemini/papi.toml +21 -0
- prompts/gemini/verify-with-paper.toml +19 -0
- skill/SKILL.md +103 -0
- skill/commands.md +187 -0
AGENT_INTEGRATION.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Agent Integration Snippet (PaperPipe)
|
|
2
|
+
|
|
3
|
+
Copy/paste this into your repo’s agent instructions file (`AGENTS.md`, or `CLAUDE.md` / `GEMINI.md` / etc):
|
|
4
|
+
|
|
5
|
+
```markdown
|
|
6
|
+
## Paper References (PaperPipe)
|
|
7
|
+
|
|
8
|
+
This repo implements methods from scientific papers. Papers are managed via `papi` (PaperPipe).
|
|
9
|
+
|
|
10
|
+
- Paper DB root: run `papi path` (default `~/.paperpipe/`; override via `PAPER_DB_PATH`).
|
|
11
|
+
- Inspect a paper (prints to stdout):
|
|
12
|
+
- Equations (verification): `papi show <paper> -l eq`
|
|
13
|
+
- Definitions (LaTeX): `papi show <paper> -l tex`
|
|
14
|
+
- Overview: `papi show <paper> -l summary`
|
|
15
|
+
- Direct files (if needed): `<paper_db>/papers/{paper}/equations.md`, `source.tex`, `summary.md`
|
|
16
|
+
|
|
17
|
+
Rules:
|
|
18
|
+
- For “does this match the paper?”, use `papi show <paper> -l eq` / `-l tex` and compare symbols step-by-step.
|
|
19
|
+
- For “which paper mentions X?”:
|
|
20
|
+
- Exact string hits (fast): `papi search --grep --fixed-strings "X"`
|
|
21
|
+
- Ranked search (BM25): `papi search-index --rebuild` then `papi search --fts "X"`
|
|
22
|
+
- Hybrid (ranked + exact boost): `papi search --hybrid "X"`
|
|
23
|
+
- If the agent can’t read `~/.paperpipe/`, export context into the repo: `papi export <papers...> --level equations --to ./paper-context/`.
|
|
24
|
+
- Use `papi ask "..."` only when you explicitly want RAG synthesis (PaperQA2 default if installed; optional `--backend leann`).
|
|
25
|
+
- For cheaper/deterministic queries: `papi ask "..." --pqa-agent-type fake`
|
|
26
|
+
- For machine-readable evidence: `papi ask "..." --format evidence-blocks`
|
|
27
|
+
- For debugging PaperQA2 output: `papi ask "..." --pqa-raw`
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
<details>
|
|
31
|
+
<summary>Glossary (optional)</summary>
|
|
32
|
+
|
|
33
|
+
- **RAG** = retrieval‑augmented generation: retrieve passages first, then generate an answer grounded in those passages.
|
|
34
|
+
- **Embeddings** = vector representations used for semantic retrieval; changing the embedding model implies a new index.
|
|
35
|
+
- **MCP** = Model Context Protocol: agent/tool integration for retrieval without pasting PDFs into chat.
|
|
36
|
+
|
|
37
|
+
</details>
|
LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Matthias Humt
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|