lifan0127 / ai-research-assistant

Aria is Your AI Research Assistant Powered by GPT Large Language Models
GNU Affero General Public License v3.0
794 stars 33 forks source link

Using ARIA generates an error #51

Closed odebroqueville closed 8 months ago

odebroqueville commented 1 year ago

Hello Li Fan,

Thank you for making this Zotero plugin. Judging from the number of open issues, it looks like you don't have much spare time to further develop this plugin. I would very much have liked to helped you but the code seems too advanced for me!

I have a Zotero collection called "Quantum Computing" containing the following documents:

Screenshot 2023-06-24 at 21 22 19

Here is a screenshot of the interaction with ARIA with the resulting error:

Screenshot 2023-06-24 at 21 04 35

I don't understand what this error means!

<pre class='error'>{"name":"TypeError","message":"can't redefine non-configurable property \"__run\"","stack":"call@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///Users/odebroqueville/Library/Application%20Support/Zotero/Profiles/9g4fb8na.default/extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file:///Users/odebroqueville/Library/Application%20Support/Zotero/Profiles/9g4fb8na.default/extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:35987:9\n"}</pre>

I'm also not quite sure how your plugin works! Does it scan the entire Library for PDF documents and submit them to LangChain to create a vector database?

Btw, I have a small suggestion: why not rename ARIA to ZAIRA which would stand for Zotero AI Research Assistant.

I was also wondering if it wouldn't be possible to use your plugin in Zotero side panel instead of in its own window. This way we could simultaneously have access to our documents and see what ARIA generates side by side.

UPDATE: Looks like this is the SAME ISSUE AS #23 !

lifan0127 commented 1 year ago

Thank you! I am still working on this open-source project. There has been a lot of new features from OpenAI and LangChain that I would like to incorporate into this plugin.

odebroqueville commented 1 year ago

You're doing a nice service to the Zotero Research Community. I'll be happy to make a modest donation when your plugin is completed. Concerning the possibility to chat in a side panel instead of a stand alone window, I believe it's feasible because I noticed the existence of another Zotero plugin called PDF Preview which opens a preview of PDF documents in the side pane: https://github.com/windingwind/zotero-pdf-preview

As Zotero 7 is scheduled to be released in 2023, you may want to future-prrof your code: https://www.zotero.org/support/dev/zotero_7_for_developers

odebroqueville commented 8 months ago

It's working now. Thank you, Lifan.

lifan0127 commented 8 months ago

Thank you, @odebroqueville ! I appreciate all your feedback.