Skip to content

WengMixin/zotero-gpt

 
 

Repository files navigation

Zotero GPT

👋

Share the tag command you made in here using Meet API.

Using Zotero Plugin Template Latest release Release Date License Downloads latest release


🚀 Main Features

Features about GPT:

  • 🔗 Integrate with Zotero: You can use the plugin to search and ask items in the library based on the selected text or the PDF file.
  • 🧠 Use GPT to generate reply text: support gpt-3.5-turbo and gpt-4
  • 🏷️ Command tags: Click once to accelerate your research.
    • 💬 Ask questions about current PDF file (full-text or selected text).
    • 💬 Ask questions about selected paper (Abstract).
    • 📝 Summarize the selected paper into several highly condensed sentences.
    • 🔍 Search items in the library based on the selected text.
    • ... ...
  • ⚙️ Advanced settings for GPT: You can set the api key, model name, api url, temperature.
  • 📚 Integrate with Better Notes: You can directly open this plugin when using Better Notes.

Features about UI:

  • 🎨 Real-time markdown rendering for reply text: Latex and mathjax are supported.
  • 🔍 Zoom in and out of the reply text or the size of the plugin window.
  • 🖱️ Move the plugin window to any position on the screen.
  • 📋 Copy the reply text to the clipboard.
  • ⚠️ Detailed error message will be displayed when the request fails.
  • 🔧 Compatible with Zotero 6 and Zotero 7.
  • 🎉 Discover more exciting features that are not listed here.

Quick Start

Use Shift + / to call this plug-in,select the text in a PDF file and then pressShift + Tab + / to enter the prompt input. Use Esc to exit.

API-key:

image

Command Tags

The plug-in design concept is to configure command tabs according to different application scenarios, and directly click on the tabs to complete the interaction with GPT.

Type #label_name[color=#eee][position=1] and Enter to edit a lable. Save with Ctrl + S. Save and Run with Ctrl + R.

color can be abbreviated to c, position can be reviated to pos and the values can be quoted.

For example, #test[c=#eee][pos=9] is a legit input.

Of course color and position are optional parameters and will have default values if not entered.

In the next step, you can declare an executable code fragment for the current environment like this:

image

It will be executed and the returned result will replace the code snippet here.

You can command GPT to output a code fragment and the plugin can execute it.

Click the left mouse button and hold to enter the edit mode of a label.

Hold with the right mouse button is to delete the label.

Single click on a label is to execute it.

You can click and hold on each label after installing the plugin to see the internal statements of the sample tags, and I'm sure you'll be up and running writing a new one in no time.

Ask PDF [build-in tag]

bandicam.2023-04-17.21-24-36-125.mp4

Implementation method:

Make sure the plugin version is up-to-date.

Search Items [build-in tag]

image

Implementation method: Same as Ask PDF

Ask Annotations [Under development]

image

Demonstration

image

image

Support the project

Here

Packages

No packages published

Languages

  • TypeScript 74.0%
  • CSS 21.0%
  • JavaScript 5.0%