mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
parent
3f8f3de28e
commit
324c86acd5
@ -150,7 +150,7 @@ class WebResearchRetriever(BaseRetriever):
|
||||
return query.strip()
|
||||
|
||||
def search_tool(self, query: str, num_search_results: int = 1) -> List[dict]:
|
||||
"""Returns num_serch_results pages per Google search."""
|
||||
"""Returns num_search_results pages per Google search."""
|
||||
query_clean = self.clean_search_query(query)
|
||||
result = self.search.results(query_clean, num_search_results)
|
||||
return result
|
||||
|
Loading…
Reference in New Issue
Block a user