medium severityGPT Researcher (write_report method)
Reports contain fabricated web sources and content that appear real when no relevant context was actually found, misleading users (especially with custom retrievers returning empty results).
Root cause
The write_report method passes empty context to the LLM when no relevant sources are retrieved (e.g., custom RAG returns nothing), causing the LLM to hallucinate realistic-looking sources and content instead of handling the no-data case explicitly.
gpt-researcherhallucinationcitationsragllmreport-generation