community[patch]: Update arxiv.py with Entry ID as a return value (#14915)

Added Entry ID as a return value inside get_summaries_as_docs

- **Description:** Added the Entry ID as a return, so it's easier to
track the IDs of the papers that are being returned.


With the addition return of the entry ID in functions like
ArxivRetriever, it will be easier to reference the ID of the paper
itself.
pull/14814/head^2
Archan Ghosh 7 months ago committed by GitHub
parent dc20766513
commit 65678b3816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -118,6 +118,7 @@ class ArxivAPIWrapper(BaseModel):
Document(
page_content=result.summary,
metadata={
"Entry ID": result.entry_id,
"Published": result.updated.date(),
"Title": result.title,
"Authors": ", ".join(a.name for a in result.authors),

Loading…
Cancel
Save