paperai
Guides paperai workflows for indexing paper corpora, querying scientific articles, and generating RAG-backed Markdown, CSV, or PDF-annotation reports.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- paperai
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guides paperai workflows for indexing paper corpora, querying scientific articles, and generating RAG-backed Markdown, CSV, or PDF-annotation reports.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/install.md1.7 KB
- 参考文档references/repo-provenance.md1.3 KB
- 参考文档references/repo-routing-metadata.json492 B
- 参考文档references/troubleshooting.md2.2 KB
- 脚本scripts/check_install.py1.1 KB
03 SKILL.md 正文
paperai
paperai is a Python application for searching and analyzing scientific and
medical paper corpora. It combines a paperetl-style SQLite database with a
txtai embeddings index and optional LLM/RAG pipelines. Use this skill when a
task asks to build a paperai index, search indexed articles, expose enriched
search results, or generate repeatable reports.
Install and inspect
Use Python 3.10+ and install the public package:
python -m pip install "paperai==2.6.0"
python -m pip check
# from the generated paperai skill directory
python scripts/check_install.py
The last command is a bundled, no-download import check; it does not load model weights or validate a corpus. Read references/install.md for dependency and runtime boundaries, and references/troubleshooting.md for cross-cutting failures.
Route by task
- Build or inspect an index, validate
articles.sqlite, train static vectors, or export section text: read indexing. - Run one-shot searches, use
paperaishell, integrate the enriched API, or make a search UI: read querying. - Define YAML tasks and produce Markdown/CSV/PDF-annotation reports: read reporting.
A normal end-to-end handoff is indexing → querying or
indexing → reporting. The generated skill contains the needed API details and
safe helpers; do not reopen the original repository's source, examples, tests,
or checkout-specific paths.
Shared model-directory contract
Most workflows receive one directory containing articles.sqlite and saved
txtai artifacts (config or config.json plus model/index files). The database
is normally produced by paperetl and is not created by paperai. Validate its
tables and columns before model construction. Model identifiers can trigger
network downloads and optional GPU use; state the cache, device, data, and
runtime constraints before starting a large operation.
Verification boundary
A successful import proves package plumbing only. Validate actual model loading,
SQLite schema compatibility, retrieval quality, report rendering, and optional
PDF annotation separately. Keep maxsize, toprank, topn, and report context
bounded for smoke runs. Markdown/CSV are the portable default; ant annotation
requires original PDFs and additional runtime support.
Read references/repo-provenance.md before using this skill with a changed checkout. If the commit, package version, or evidence paths differ, refresh the repo skill instead of assuming the guidance is current.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).