ask_library
Answer questions by searching your personal PDF library. Receive synthesized answers with citations from the source papers.
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 |