You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.report_source = getattr( self.cfg, 'report_source', None) or report_source
should be
self.report_source = report_source if report_source else getattr(self.cfg, 'report_source', 'web')
otherwise it will always use the default "web" even if one passes "local" or hybrid. This basically prevents any local or hybrid search no?
The text was updated successfully, but these errors were encountered:
alesaccoia
changed the title
The use of "local" or "hybrid" search isn't allowed by a bug in the GPTResearcher constructor
GPTResearcher constructor, can't use "local" or "hybrid" report_source
Jan 7, 2025
Describe the bug
Both using the websocket and the code as a library, passing "local" as report source is ignored
gpt-researcher/gpt_researcher/agent.py
Line 58 in 079be67
To Reproduce
Instantiage GPTResearcher with report_source different from default or "web"
Expected behavior
It should use local files
Desktop
Line
should be
otherwise it will always use the default "web" even if one passes "local" or hybrid. This basically prevents any local or hybrid search no?
The text was updated successfully, but these errors were encountered: