back to home

MuiseDestiny / zotero-gpt

GPT Meet Zotero.

6,928 stars
302 forks
230 issues
TypeScriptCSSJavaScript

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing MuiseDestiny/zotero-gpt in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind-ai.vercel.app/repo/MuiseDestiny/zotero-gpt)
Preview:Analyzed by RepoMind

Repository Summary (README)

Preview
<div align="center"> <img src="imgs/background.png" width="50%" />

Awesome GPT

👋

Welcome to share your command tag here using Meet API.

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

<img src="https://user-images.githubusercontent.com/51939531/228763331-90baa9aa-8bef-4b32-9d6f-35538b58b158.png" width="80%" /> </div>

🚀 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.

How to use

  • Get .xpi file
    • download latest release .xpi file
    • or build this project [1] to generate a .xpi file
  • Install .xpi file in Zotero [2]
  • Open Zotero GPT [3]
  • Set your OpenAI secret key [4]

[1] Build the project

Here is an example on how to build this project. For more information on how to build, please visit this project: https://github.com/windingwind/zotero-plugin-template

git clone https://github.com/MuiseDestiny/zotero-gpt.git
cd zotero-gpt
npm install
npm run build

The generated .xpi file in the build directory is the extension that you can install in Zotero.

[2] Install the extension in Zotero

Open Zotero. In the top menu bar, click on Tools > Add-ons. Click on the gear icon at the top right of the window. Click on Install Add-on From File and open the generated .xpi file in the build directory from the previous step.

[3] Open/Exit Zotero GPT

ActionShortcut
Open<img src="https://github.com/MuiseDestiny/zotero-gpt/assets/51939531/f76b23ee-8c54-47da-823c-8c14faa88a87" width="20%">
ExitESC
Multi-line editingShift + Enter

[4] Set up the API key

image

Hi, Command Tag.

👻 Follow the steps below, and you will gain a new understanding of command tags.

StepDescriptionSupplementary Information
1Open Zotero GPTRefer to [3] Open/Exit Zotero GPT
2Type #Tag Name and press Enterimage
3Input your prompt or codeimage
4Run your tagPress Ctrl + R
5Save your tagPress Ctrl + S
6Long press a command tag to access the editing interfaceimage
7Modify the tag's color, position, or trigger; remember to save with Ctrl + Simage
8Press ESC to exit the editing interfaceRemember to save your changes with Ctrl + S before exiting
9Long press the right mouse button to delete a tagNote: Build-in tags do not support deletion

How to run a command tag

Trigger is an attribute of a command tag, as are color and position. Long press any label to view/modify its trigger word. It supports both plain text and JS regular expressions.

How to run a command tag

image

How to write a code block

You can find some build-in APIs here.

A simple example:

Summarize the following paragraph for me:

${Meet.Zotero.getPDFSelection()}

Here, the Summarize the following paragraph for me: represents plain text, while ${your code} denotes a code snippet. Undoubtedly, if you are familiar with Zotero APIs, you can develop your own code. The code snippet will be executed, and the text returned by the code snippet will replace the code snippet. Finally, the replaced text will be input to GPT. So, theoretically, you can accomplish all interactions between Zotero and GPT using command tags.

How to navigate historical chats

Press the up (↑) and down (↓) keys on the keyboard to navigate.

image

GPT Tag Recommendation

Automatically create tags for entries: open and copy then open Zotero, this tag will be automatically imported into Zotero.

Support the project

Here