Code Monkey home page Code Monkey logo

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

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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zotero-gpt's Issues

流式传输GPT的响应结果

有时候GPT的返回内容会相对比较长,程序就只能等待直到整个结果接收完毕才可以显示
建议采用流式传输,这样基本可以做到提交问题就立马开始实时传输答案,体验效果与网页版类似

我自己Fork代码并添加了这个功能 ,如果需要的话我可以提PR

测试插件
zotero-gpt-0.0.0.zip

将对话框固定在右侧信息/笔记栏或许会更合适些

首先感谢大佬的开源精神。

我试着编辑过几个标签,不知道它是如何处理tokes一下选中特别多的问题(prompt太多一般需要分批处理),以及如何处理不可选中文字的pdf?

有个不成熟的建议,感觉把对话框固定在右侧会更符合使用习惯。有时候浮动会导致跟随鼠标移动,对于不熟悉这款插件的人来说或许会有点不习惯吧。

翻译乱入

我是环境专业,选中文献后会出现两种情况:1.前几句对,后几句介绍肿瘤;2.全介绍非本文翻译。我该如何设置或者操作?

AskPDF问题

为什么我点了AskPDF,显示reading完成了,却一直没有生成回答呢?
image

更新了之后是一定要使用密钥才能Ask pdf吗?

如题,之前没更新的时候他会自己读取文章的主要内容,更新之后ask pdf之后会响应很久,然后回来github上看教程,似乎是要调用自己的API才能实现原来的功能了对吗?有没有什么避免被gpt封号的办法呢?

怎么改成英文

大神你好,怎么把显示改成英文啊,我看你的介绍里都是英文的,不知道应该在哪里设置。因为平时读很多英文文献,翻成中文不太习惯。谢谢!!!

自定义标签的字段问题

大佬,是否可以像style的期刊标签一样,公开一下Zotero内部的字段介绍,或者给个字段的网址。毕竟比起摘要,我觉得对方法和讨论的解读比较重要。感恩

版本即将下线通知

屏幕截图 2023-04-09 215136
最新版本会弹出上图所示通知内容,然后就用不了了,关注公众号后也没有zotero插件的版本更新,

如何将openai 的api 修改为其他的api?

大佬做的这个插件太好了。就是国内不太好用。
我可以在自己服务器上部署一个大模型。
请问如何将请求openai的api,改为请求我自己的api?

一些建议。

1、建议反馈更详细
1)超过五秒后无响应提示服务器未响应同时提供重试选项。
2)当extensions.zotero.zoterogpt.secretKey == default时记录提问次数,提问次数>=50时提示机会已经用完。
2、BUG反馈
当将zoterogpt.secretKey改为自己的key后,软件没有正确的调用我的API,而是一直使用默认直。重启软件无效

祝好

改写了一下摘要提取关键字的代码,以中文#标签的方式返回,仅供参考

#添加摘要#分级标签[c=#AF42B7][pos=0]
现在请你从下面的摘要中分析出四个格式为"标签"的标签,如果标签的语言是英文,请你转换为中文,但是不需要回答标签具体是什么:

i = ZoteroPane.getSelectedItems()[0];
i.getField("abstractNote");

然后你只需要给我一段代码用于向Zotero选中条目添加标签,示例代码如下:{
i = ZoteroPane.getSelectedItems()[0];
tags = ["tag1", "tag2"];
combinedTag = tags.join("/ ");
combinedTagWithHash = "#" + combinedTag;
i.addTag(combinedTagWithHash);
await i.saveTx();
}
最后只输出不包含头文件的代码。

如何取消绑定自己openAI的API?

绑了自己的api后感觉没之前好用了
可能是因为自己用的节点不稳定的原因
如果想要恢复之前的免费API应该怎么操作呢?

shift+/和shift+tab+/无法调用标签

大佬您好,我将其他插件都设置为disable,选中条目后还是按快捷键还是无法调用出标签,之前看着其他的问题也没用解决,请问是什么原因呢?

GPT交互界面

utoolsChatGPT.好友 是我个人用过GPT交互界面最好的,期待后期优化的时候可以作为参考
image
image

恢复Zotero Gpt默认设置

开发者你好,因长按右键误删“Translate标签”,请问如何恢复?已重新安装插件但未奏效,不知是否可以“增设还原默认”的设置。
tmp5309

建议增加API地址设定

很多GPT的项目都可以自定义API地址,比如CHATGPT-WEB,问天等等的。解决的是在不能科学上网的情况下也能使用gpt的服务,api的地址可以反代或者cf worker的。
所以我也建议可以自定义自己的api地址

PDF加载不成功

API可以正常使用,但ask pdf显示不出来结果。是因为PDF没有读取成功吗?
image

image

无法唤醒问题

作者大大你好,安装了它之后,第一次按下shift+/可以启动,但我按下esc之后并没有退出,我重启zotero之后按下shift+/却无法唤醒它,另外zotero的tools--->add-ons点击也没有反应了

使用时遇到的两个问题

Quicker_20230411_162313
这是第一个问题,我想让他查询Deformable Attention这篇文章,我首先是选中了两篇文章,其中一篇是Deformable Attention这篇文章,然后点searchletms它一直在转圈;
tmp13AA

第二个问题是他好像阅读文章的长度是有限的,当我用AskPDF的时候,右下角显示,他到11页就停止了阅读,而且他一直在转圈,
不会给出答案

GPT脚本平台

建议将该插件做成类似浏览器油猴脚本平台类型的,因为每个人的GPT需求各异,需要的脚本也会各式各样。大家共享脚本的话就会让这个GPT插件更丰富、好用。
几个建议:
1.提供搜索、下载、添加、删除 GPT脚本的面板
2.只做gpt使用界面、编程逻辑的优化,不做具体功能。
3.具体功能全部交由脚本运行。

GPT学术项目汇总

1. ChatPaper

通过ChatGPT实现对论文进行总结,帮助科研人进行论文初筛

2.ChatPDF (视频介绍)、 ChatPDF ⭐⭐⭐⭐⭐

ChatPDF的这种能够给出引用位置的这种是比较期待的形式,这种形式可以回溯源头、判断GPT回答是否正确

2. ChatGPT-Paper-Reader

This repo offers a simple interface that helps you to read&summerize research papers in pdf format. You can ask some questions after reading. This interface is developed based on openai API and using GPT-3.5-turbo model.

3. 免费的GPT项目:⭐⭐⭐⭐

介绍:https://www.bilibili.com/video/BV1dd4y1e7FS/?spm_id_from=333.1007.top_right_bar_window_history.content.click
网址:https://typeset.io/careers

4. chatgpt_academic ⭐⭐⭐⭐⭐

科研工作专用ChatGPT拓展,特别优化学术Paper润色体验,支持自定义快捷按钮,支持markdown表格显示,Tex公式双显示,代码显示功能完善,新增本地Python工程剖析功能/自我剖析功能

5. ChatReviewer

利用ChatGPT对论文进行预审稿

6. ChatResponse

利用ChatGPT对审稿人的提问进行回复

couldn't use the plugin in English and other problems

Hi,

I am using Windows 11 and the latest version of Zotero and the plugin; however, it only shows me this window when I start Zotero, if I close it with Esc I can not reopen it with Ctrl + / and I do not understand how I can configure to display the window in English, if you could incorporate that information in the file readme is very grateful!

thank you very much for your work!

image

Shift+/ 无内容显示

你好大佬,直接入坑,首先想请教下这个插件调用的是摘要吗,另外就是我快捷键无法调用插件!!
感谢为爱发电的大大

关于单击标签无反应的问题

开发者您好,在使用过程中,我发现左键单击标签无反应。
图片
API已配置,网络正常,chatgpt网页版正常对话,请问这种是什么情况,感谢回复。
图片

GPT输出代码片段,无法执行

尝试使用 gpt 输出的代码添加文献标签。结果发现,gpt 只会输出代码文本,而不会执行它。

我尝试修改 prompt,让 gpt 用 js 包裹输出的代码。gpt 的输出结果也还是文本,无法运行。

对于AI领域的文献似乎表现不佳

很惊艳的插件!之前看到上传pdf进行问答的GPT相关应用,就在想能否集成到zotero。

能否使插件根据pdf进行总结和问答? 目前大部分AI领域的论文并不是发表在期刊上,会议更迭快,可能也无法通过数据库获取论文的准确信息。个人认为直接基于pdf进行回答是比较可靠的一个方案:) 希望能考虑一下!

参考:

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.