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.
This commit is contained in:
Archan Ghosh 2023-12-20 11:00:24 +05:30 committed by GitHub
parent dc20766513
commit 65678b3816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),