Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pytest warning on arxiv lib #26

Merged
merged 1 commit into from
May 11, 2024
Merged
Show file tree
Hide file tree
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
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
Loading