Closed dphiggs01 closed 1 month ago
Hi GPT-Researcher team,
This pull request updates the SerperSearch class, following the coding patterns defined in TavilySearch. Two simple modifications were made.
max_results
timeout
I have tested the changes using the local client, and the below simple test.
from gpt_researcher.retrievers.serper.serper import SerperSearch def main(): """ This is Simple test of SerperSearch """ # Query query = "Openai History" serper = SerperSearch(query) results = serper.search(max_results=5) assert len(results) == 5 results = serper.search(max_results=6) assert len(results) == 6 results = results[0] assert "href" in results if __name__ == "__main__": main()
Thanks, Dan
Hi GPT-Researcher team,
This pull request updates the SerperSearch class, following the coding patterns defined in TavilySearch. Two simple modifications were made.
max_results
param was not being used.timeout
, potentially leading to the code hanging.I have tested the changes using the local client, and the below simple test.
Thanks, Dan