Skip to content

Instantly share code, notes, and snippets.

View Edilson-R's full-sized avatar

Edilson-R Edilson-R

  • Instituto Federal do Tocantins
  • Palmas-TO
View GitHub Profile
@Edilson-R
Edilson-R / paper-qa-zotero.py
Created March 28, 2023 14:50 — forked from lifan0127/paper-qa-zotero.py
Streamlining Literature Reviews with Paper QA and Zotero
import os
os.environ['OPENAI_API_KEY'] = '<Your OpenAI API Key>'
# See here on how to find your Zotero info: https://github.com/urschrei/pyzotero#quickstart
ZOTERO_USER_ID = '<Your Zotero User ID>'
ZOTERO_API_KEY = '<Your Zotero API Key>'
ZOTERO_COLLECTION_ID = '<Your Zotero Collection ID>'
question = 'What predictive models are used in materials discovery?'
# The following prompt instruction is injected to limit the number of keywords per query