GithubHelp home page GithubHelp logo

brown8964 / zotero-gpt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from muisedestiny/zotero-gpt

0.0 0.0 0.0 40.89 MB

GPT Meet Zotero.

License: GNU Affero General Public License v3.0

JavaScript 5.24% TypeScript 74.32% CSS 20.44%

zotero-gpt's Introduction

Awesome GPT

๐Ÿ‘‹

Welcome to share your command tag 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.

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

Action Shortcut
Open
Exit ESC
Multi-line editing Shift + 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.

Step Description Supplementary Information
1 Open Zotero GPT Refer to [3] Open/Exit Zotero GPT
2 Type #Tag Name and press Enter image
3 Input your prompt or code image
4 Run your tag Press Ctrl + R
5 Save your tag Press Ctrl + S
6 Long press a command tag to access the editing interface image
7 Modify the tag's color, position, or trigger; remember to save with Ctrl + S image
8 Press ESC to exit the editing interface Remember to save your changes with Ctrl + S before exiting
9 Long press the right mouse button to delete a tag Note: 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

Support the project

Here

zotero-gpt's People

Contributors

muisedestiny avatar windingwind avatar dependabot[bot] avatar zfb132 avatar l0o0 avatar volatile-static avatar yangguang760 avatar retorquere avatar miladhakimi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.