diff --git a/examples/sample_report.py b/examples/sample_report.py index 6330abe..1477297 100644 --- a/examples/sample_report.py +++ b/examples/sample_report.py @@ -12,9 +12,13 @@ async def main(): # Report Type report_type = "research_report" - # Run Research + # Initialize the researcher researcher = GPTResearcher(query=query, report_type=report_type, config_path=None) - report = await researcher.run() + # Conduct research on the given query + researcher.conduct_research() + # Write the report + report = await researcher.write_report() + return report