-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
askpdf出错,无法使用 #256
Comments
根据给出的上下文信息,代码中的Meet.Zotero.getRelatedText(Meet.Global.input)表明正在调用“Meet.Zotero”中的getRelatedText函数,并将Meet.Global.input作为参数传递给它。由于上下文中没有提供关于Meet.Zotero和getRelatedText函数的详细信息,我无法确定具体的功能和返回结果。 |
这是什么情况 |
长按标签进入编辑模式,确保每个标签的内容如下 zotero-gpt/src/modules/base.ts Lines 85 to 162 in e807323
|
|
@Jasoncrazy-stu 长按标签进入编辑模式,把你的当前标签的内容粘贴上来。另外,你的版本是6.0.27 0.2.9吗 |
#🪐AskPDF[position=10][color=#0EA293][trigger=/^(本文|这篇文章|论文)/] Answer the question:${Meet.Global.input} Reply in ${Zotero.locate} |
可能是版本的问题,你可以尝试改为以下内容 #🪐AskPDF[color=#0EA293][position=10][trigger=/^(本文|这篇文章|论文)/]
You are a helpful assistant. Context information is below.
<code>
Meet.Global.views.messages = [];
Meet.Zotero.getRelatedText(Meet.Global.input)
</code>
Using the provided context information, write a comprehensive reply to the given query. Make sure to cite results using [number] notation after the reference. If the provided context information refer to multiple subjects with the same name, write separate answers for each subject. Use prior knowledge only if the given context didn't provide enough information.
Answer the question: <code>Meet.Global.input</code>
Reply in ${Zotero.locale} 对于其他标签,参照同样的方法对下面的原始内容替换过去即可 var defaultTags = [
`
#\u{1FA90}AskPDF[color=#0EA293][position=10][trigger=/^(\u672C\u6587|\u8FD9\u7BC7\u6587\u7AE0|\u8BBA\u6587)/]
You are a helpful assistant. Context information is below.
<code>
Meet.Global.views.messages = [];
Meet.Zotero.getRelatedText(Meet.Global.input)
</code>
Using the provided context information, write a comprehensive reply to the given query. Make sure to cite results using [number] notation after the reference. If the provided context information refer to multiple subjects with the same name, write separate answers for each subject. Use prior knowledge only if the given context didn't provide enough information.
Answer the question: <code>Meet.Global.input</code>
Reply in ${Zotero.locale}
`,
`
#\u{1F31F}Translate[c=#D14D72][pos=11][trigger=/^\u7FFB\u8BD1/]
Translate these content to \u7B80\u4F53\u4E2D\u6587:
<code>
Meet.Global.input.replace("\u7FFB\u8BD1", "") ||
Meet.Zotero.getPDFSelection() ||
Meet.Global.views.messages[0].content
</code>
`,
`
#\u2728Improve writing[color=#8e44ad][pos=12][trigger=/^\u6DA6\u8272/]
Below is a paragraph from an academic paper. Polish the writing to meet the academic style, improve the spelling, grammar, clarity, concision and overall readability. When necessary, rewrite the whole sentence. Furthermore, list all modification and explain the reasons to do so in markdown table. Paragraph: "<code>
Meet.Global.input.replace("\u6DA6\u8272", "") ||
Meet.Global.views.messages[0].content
</code>"
`,
`
#Clipboard[c=#576CBC][pos=13][trigger=/(\u526A\u8D34\u677F|\u590D\u5236\u5185\u5BB9)/]
This is the content in my clipboard:
<code>Meet.Zotero.getClipboardText()</code>
---
<code>Meet.Global.input</code>
`,
`
#Annotations[c=#F49D1A][pos=14][trigger=/(\u9009\u4E2D|\u9009\u62E9\u7684|\u9009\u62E9|\u6240\u9009)?(\u6CE8\u91CA|\u9AD8\u4EAE|\u6807\u6CE8)/]
These are PDF Annotation contents:
<code>
Meet.Zotero.getPDFAnnotations(Meet.Global.input.match(/(\u9009\u4E2D|\u9009\u62E9\u7684|\u9009\u62E9|\u6240\u9009)/))
</code>
Please answer me in the language of my question. Make sure to cite results using [number] notation after the reference.
My question is: <code>Meet.Global.input</code>
`,
`
#Selection[c=#D14D72][pos=15][trigger=/^(\u8FD9\u6BB5|\u9009\u4E2D)(\u6587\u672C|\u8BDD|\u6587\u5B57|\u63CF\u8FF0)/]
Read these content:
<code>
Meet.Zotero.getPDFSelection() ||
Meet.Global.views.messages[0].content
</code>
---
Answer me in the language of my question. This is my question: <code>Meet.Global.input</code>
`,
`
#Item[c=#159895][pos=16][trigger=/\u8FD9\u7BC7(\u6587\u732E|\u8BBA\u6587|\u6587\u7AE0)/]
This is a Zotero item presented in JSON format:
<code>
JSON.stringify(ZoteroPane.getSelectedItems()[0].toJSON())
</code>
Base on this JSON: <code>Meet.Global.input</code>
`,
`
#Items[c=#159895][pos=17][trigger=/\u8FD9\u4E9B(\u6587\u732E|\u8BBA\u6587)/]
These are Zotero items presented in JSON format:
<code>
Meet.Zotero.getRelatedText(Meet.Global.input)
</code>
Please answer me using the lanaguage as same as my question. Make sure to cite results using [number] notation after the reference.
My question is: <code>Meet.Global.input</code>
`
]; |
全部修改为 |
是的,Zotero没有正确地把 |
|
按照下面的提示保存日志
|
我尝试输出了一下debug,已经发送到你主页中标注的邮箱了 |
必须在zoterogpt的输入框中输入一些内容(也就是必须有提问的问题),再点击下方的标签(例如AskPDF)。若输入框为空(相当于你没问任何问题,它自然不知道要干什么),则不会解析命令语句。 例如你可以输入 |
非常感谢,解决了问题。不过我记得我之前最开始使用的时候,直接点击askpdf就能生成一系列相关的回答,不知道是不是记忆出了问题,不过目前能够使用了,谢谢! |
根据提供的上下文信息,我们可以看出您正在使用Meet.Zotero.getRelatedText函数来获取与创新点相关的文本信息。然而,请注意上下文信息中并没有给出与创新点相关的具体内容,因此我无法为您提供直接的答案。 |
输入创新点,给我这样回复 |
请问这个修改之后怎么保存呢?我修改之后这个对话框里就一直是编辑模式。 我想用这部分替换掉我的 我的里面的这部分是这样的 |
我想问一下如何升级版本?我目前的版本显示是0.2.9 |
修改之后,在编辑框Ctrl+S即可保存 |
你如果使用的是Zotero 6, 0.2.9已经是最新版本了。只有使用Zotero 7 才可以使用0.3.2版本
即使0.2.9也支持提供上下文提问。你需要:
|
是否已经阅读上述解决方案?或者重新安装本插件 |
|
我通过这里的方法解决了问题,谢谢你。 |
这个问题是否已有issue
运行环境
当前配置信息
No response
问题详情
api什么配置的正确的,问普通的问题都能够回答,就是在askpdf中无法获取pdf的文章内容,尝试过右键重置以及升级版本,无法解决问题。
根据提供的上下文信息,Meet.Global.views.messages是一个空数组,而Meet.Zotero.getRelatedText(Meet.Global.input)是一个调用了Zotero库来获取与Meet.Global.input相关的文本的函数。然而,没有提供Meet.Global.input的具体值,所以无法确定具体讲了什么。在没有更多上下文信息的情况下,无法回答本文讲了什么[1]。如果您能提供更多关于Meet.Global.input的信息,我将非常乐意帮助您进一步分析和回答问题。
补充说明
No response
The text was updated successfully, but these errors were encountered: