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.
-
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
ref
for each document, which are what paper-qa callsbibtex_key
or 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 thekey
is set elsewhere to a different value, which leads to it being set toNone
whenDocDetails
are merged, which then leads to thekey
being regenerated. Is there a way to tellpaper-qa
to keep thekey
I'm setting? After fiddling with things for a while I managed to set things up that the final instance ofDocDetails
merging 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
key
correctly 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-qa
to provide theref
when generating answers. Is there a way havingpaper-qa
spit out myref
(which is in theother
metadata) rather than thekey
?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions