assafelovic / gpt-researcher

GPT based autonomous agent that does online comprehensive research on any given topic
https://gptr.dev
MIT License
12.98k stars 1.61k forks source link

Correct issue #623 where references from proir runs may remain. #632

Closed adrianhensler closed 1 day ago

adrianhensler commented 2 days ago

Pull request to address an issue where references from prior runs might be incorporated into following runs.

Added these two lines and a comment 'conduct_research()':

async def conduct_research(self): """ Runs the GPT Researcher to conduct research """

Reset visited_urls and source_urls at the start of each research task

    self.visited_urls.clear()
    self.source_urls = []
adrianhensler commented 15 hours ago

Thanks for your time to review and merge the changes.