papi-ask
Original:🇺🇸 English
Translated
Query papers using RAG (PaperQA2 or LEANN). Use when user needs synthesized answers from papers, asks "what does paper X say about Y", or needs cited responses.
89installs
Sourcehummat/paperpipe
Added on
NPX Install
npx skill4agent add hummat/paperpipe papi-askTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Query Papers via RAG
Use for questions requiring synthesis across papers or cited answers.
papi askCost-Aware Retrieval
Before using RAG, consider cheaper alternatives:
- Exact match: — fast, no LLM
papi search --rg "query" - Ranked search: — BM25 ranking
papi search "query" - Direct read: — if you know the paper
papi show <paper> -l eq|tex|summary
Use only when:
papi ask- User explicitly requests RAG/synthesis
- Question spans multiple papers
- Search/show cannot answer
Commands
bash
# PaperQA2 (default) — full RAG with citations
papi ask "question"
# LEANN — faster semantic search + LLM
papi ask "question" --backend leann
# Structured output for programmatic use
papi ask "question" --format evidence-blocksMCP Tools (if available)
For quick retrieval without full RAG:
- — fast semantic search
leann_search(index_name, query, top_k) - — PaperQA2 chunks with citations
retrieve_chunks(query, index_name, k)
Check available indexes: or
leann_list()list_pqa_indexes()Output
RAG answers include:
- Synthesized response
- Citations with page/section references
- Confidence indicators
For general CLI commands, see .
/papi