Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghuyihei committed Oct 29, 2024
1 parent b783624 commit b22a282
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,9 @@ async def deep_research_paper_with_chain(self,paper:Result):
current_abstract = paper.abstract
# search after
while len(idea_chain) < self.max_chain_length and len(references) > 0:
search_papers = []
article = None
print(f"The references find:{references}")
while len(references) > 0 and len(search_papers) == 0:
while len(references) > 0:
reference = references.pop(0)
if reference in self.read_papers:
continue
Expand All @@ -350,7 +349,6 @@ async def deep_research_paper_with_chain(self,paper:Result):
break
else:
print(f"the paper {search_paper.title} is not relevant")
search_papers = []

if not article:
rerank_query = f"topic: {self.topic} Title: {current_title} Abstract: {current_abstract}"
Expand Down

0 comments on commit b22a282

Please sign in to comment.