Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/sherpa_ai/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ def _run(
summaries = re.findall(summary_pattern, xml_content, re.DOTALL)
title_pattern = r"<title>(.*?)</title>"
titles = re.findall(title_pattern, xml_content, re.DOTALL)

# Note that arXiv may return on extra title for the search feed itself
titles = titles[len(titles) - len(summaries):] # align titles and summaries

id_pattern = r"<id>(.*?)</id>"
ids = re.findall(id_pattern, xml_content, re.DOTALL)

Expand Down
Loading