Skip to content

Commit

Permalink
adjust the tools string
Browse files Browse the repository at this point in the history
  • Loading branch information
Alleria1809 committed May 30, 2024
1 parent 7162ea5 commit b41fa5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/benchmark/ReAct_agent/hotpotQA/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def search(entity: str) -> str:

def lookup(text: str, keyword: str) -> str:
"""
returns the next sentence containing keyword in the current passage.
returns the sentences containing keyword in the current passage.
"""
sentences = text.split('.')
matching_sentences = [sentence.strip() + '.' for sentence in sentences if keyword.lower() in sentence.lower()]
Expand Down

0 comments on commit b41fa5e

Please sign in to comment.