Replies: 2 comments 2 replies
-
Hey @rbpasker! I'm here to assist you with any issues or questions you have. Let's tackle this together! To update your from paperqa import Docs
from paperqa.contrib import ZoteroDB
from some_llm_library import generate_keywords # Hypothetical function to generate keywords
docs = Docs()
zotero = ZoteroDB(library_type="user") # Use "group" if it's a group library
# Generate dynamic query terms using an LLM
query_terms = generate_keywords("Enter your topic or question here")
for item in zotero.iterate(
q=query_terms,
qmode="everything",
sort="date",
direction="desc",
limit=100,
):
print("Adding", item.title)
docs.add(item.pdf, docname=item.key) In this example, To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
going through the docs again, I see:
but its not clear how to perform the "Paper Search" against the Zotero search engine |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking to update this gist:
https://gist.github.com/lifan0127/e34bb0cfbf7f03dc6852fd3e80b8fb19#file-paper-qa-zotero-py-L21
which uses the outdated method 'docs.generate_search_query()' to generate keywords to search ZoteroDB
the paper-qa doc here: https://github.com/Future-House/paper-qa?tab=readme-ov-file#zotero
doesnt use a generated search query, but rather a fixed one 'large language models'
I'm wondering how to get paper_qa to generate query terms that can be submitted to ZoteroDB to find and download only those papers which might be applicable, rather than a fixed set, as in the example.
Beta Was this translation helpful? Give feedback.
All reactions