Replies: 1 comment
-
|
Hello @jghauser! I'm a bot that can help you with bugs, questions, and becoming a contributor. Let's solve this issue together! To retain your custom Here's a general approach you might take:
By implementing these changes, you should be able to retain your custom To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Thanks a lot for writing this great piece of software! I'm writing a plugin for Papis, a CLI bibliography management software, with the goal of allowing users to search their library using paper-qa. I wrote a custom metadata provider, which fetches all metadata from Papis (instead of crossref), which is working great.
There's one issue I'm struggling to solve, however. Papis generates what we call a
reffor each document, which are what paper-qa callsbibtex_keyor justkey. I've tried to setting thekey's value to the Papisref, but I can't seem to get it to stick. If I understand things correctly, the problem is that thekeyis set elsewhere to a different value, which leads to it being set toNonewhenDocDetailsare merged, which then leads to thekeybeing regenerated. Is there a way to tellpaper-qato keep thekeyI'm setting? After fiddling with things for a while I managed to set things up that the final instance ofDocDetailsmerging has my value on both sides, but that still ends up clearing it here (since neither side isNone):paper-qa/paperqa/types.py
Lines 764 to 766 in c81e39e
The reason I'm trying to get this to work is that I'd like to have the
keycorrectly set in the answers as that will allow Papis to identify the relevant documents, so that the user can, for instance, pull up more info about it or open the associated pdf. Which means that an alternative solution would be to getpaper-qato provide therefwhen generating answers. Is there a way havingpaper-qaspit out myref(which is in theothermetadata) rather than thekey?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions