ask_library
Answer questions from your personal PDF library with synthesized, cited summaries using PaperQA2.
Instructions
Answer a question using the user's indexed PDF library via PaperQA2.
Searches the pre-built index (see index_library_pdfs()) and returns
a synthesised answer with citations from the source papers.
Args:
question: Natural language question to answer from the library.
top_k: Number of source passages to retrieve before synthesis (default 5).
scope: Which index to query. "default" = full library. "ph_library" = PH background only.
Build the index first with index_library_pdfs(scope=<scope>).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes | ||
| top_k | No | ||
| scope | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |