-
Notifications
You must be signed in to change notification settings - Fork 609
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
Added some docs and adjusted field names for ease of use in DocDetails #440
Conversation
description="string indicating license." | ||
" Should refer specifically to pdf_url (since that could be preprint). None means unknown/unset.", | ||
) | ||
pdf_url: str | None = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think of calling this source_url
over pdf_url
, as we'll someday generalize beyond PDFs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think doi_url
should cover the HTML/WEB url and pdf_url
should directly go to PDF. We may later add source_url
and then I think doi_url
would be depcretaed rather than pdf_url
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good
) | ||
if self.source_quality_str: | ||
return ( | ||
f"{self.citation} This article has {self.citation_count} citations and is" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does self.citation
have a newline at the end of it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not have that
Just promoted some fields I thought were useful:
license
andpdf_url
. These can be provided by S2 client at some point, but for now they come from unpaywall.Also added to README: https://github.com/Future-House/paper-qa/tree/doc-details-docs?tab=readme-ov-file#using-clients-directly