Metis ยท Librarian โ Ask Library
ask_libraryAnswer a research question by searching your indexed PDF library and receiving a synthesized response 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 |
|---|---|---|---|
| scope | No | default | |
| top_k | No | ||
| question | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |