Skip to content

Commit

Permalink
Fix pytest warning on arxiv lib (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
timsanders256 authored May 11, 2024
1 parent 2e4f20e commit b314f7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion research_town/agents/agent_prompting.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ def summarize_research_direction(personal_info: str) -> List[str]:
top_p=0,
)
content = completion.choices[0].message["content"]
return [content]
return [content]
6 changes: 4 additions & 2 deletions research_town/utils/paper_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ def neiborhood_search(
def get_daily_papers(
topic: str, query: str = "slam", max_results: int = 2
) -> Tuple[Dict[str, Dict[str, List[str]]], str]:
search_engine = arxiv.Search(
client = arxiv.Client()
search = arxiv.Search(
query=query, max_results=max_results, sort_by=arxiv.SortCriterion.SubmittedDate
)
results = client.results(search)
content: Dict[str, Dict[str, List[str]]] = {}
newest_day = ""
for result in search_engine.results():
for result in results:
paper_title = result.title
paper_url = result.entry_id
paper_abstract = result.summary.replace("\n", " ")
Expand Down

0 comments on commit b314f7e

Please sign in to comment.