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

Field 'title' Not Set #75

Open richardkaplan opened 4 months ago

richardkaplan commented 4 months ago

Greetings.

Why might I get this error? The item in question does indeed have a Title.

<pre>{
  "message": "Item data not loaded and field 'title' not set for item 7/AADJVMSN",
  "dataType": "itemData",
  "stack": "Zotero.Exception.UnloadedDataException@chrome://zotero/content/xpcom/error.js:159:16\nZotero.Item.prototype.getField@chrome://zotero/content/xpcom/data/item.js:279:11\nZotero.Item.prototype.getDisplayTitle@chrome://zotero/content/xpcom/data/item.js:872:31\ncompileItemInfo@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:/<local-profile-dir>/extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file:/<local-profile-dir>/extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:52564:20\ngetItemAndBestAttachment@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:/<local-profile-dir>/extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file:/<local-profile-dir>/extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:52598:20\n",
  "name": "UnloadedDataException"
}</pre>
lifan0127 commented 4 months ago

Hi @richardkaplan, could you please share more information about this item? What is its item type? Does it have any attachments?

richardkaplan commented 4 months ago

It is a collection containing 3 items.

Two of the items have a PDF: the third has only a snapshot.

This morning it did not give the error but instead responded that it could not find any results.

But I may have realized the problem. If I refer to a Collection name and ask it to "Summarize each item" it never gives any response. But if I instead indivdually drag/drop each item from the collection, the results are much better.

So is it correct that I need to reference (drag/drop) each item and cannot simply reference a collection of articles?

lifan0127 commented 4 months ago

Thanks for the additional information. Your way of asking the question is completely reasonable. I will try it on my side and trace the GPT response to see where the issue might be.

lifan0127 commented 4 months ago

I tried your question several times and indeed GPT could not correctly reference the collection. I will add this question to my test cases for prompt optimization.