samwjya commited on
Commit ·
dea32d3
1
Parent(s): dce4654
add paperid
Browse files- retriever.py +1 -0
retriever.py
CHANGED
|
@@ -44,6 +44,7 @@ def fetch_papers(query: str, limit: int = 50) -> list[dict]:
|
|
| 44 |
if not abstract:
|
| 45 |
continue
|
| 46 |
papers.append({
|
|
|
|
| 47 |
"title": p.get("title") or "",
|
| 48 |
"abstract": abstract,
|
| 49 |
"year": p.get("publication_year"),
|
|
|
|
| 44 |
if not abstract:
|
| 45 |
continue
|
| 46 |
papers.append({
|
| 47 |
+
"paperId": p.get("id") or "",
|
| 48 |
"title": p.get("title") or "",
|
| 49 |
"abstract": abstract,
|
| 50 |
"year": p.get("publication_year"),
|