From 0ceae7c9e79b13169fca1d2e8c634c79ace5fc55 Mon Sep 17 00:00:00 2001 From: assafelovic Date: Fri, 8 Dec 2023 13:24:17 +0200 Subject: [PATCH] modified prompt for including sources in source report --- gpt_researcher/master/prompts.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gpt_researcher/master/prompts.py b/gpt_researcher/master/prompts.py index df9cab1be..22f7d887d 100644 --- a/gpt_researcher/master/prompts.py +++ b/gpt_researcher/master/prompts.py @@ -49,11 +49,12 @@ def generate_resource_report_prompt(question, context, report_format="apa", tota """ return f'"""{context}""" Based on the above information, generate a bibliography recommendation report for the following' \ f' question or topic: "{question}". The report should provide a detailed analysis of each recommended resource,' \ - ' explaining how each source can contribute to finding answers to the research question.' \ - ' Focus on the relevance, reliability, and significance of each source.' \ - ' Ensure that the report is well-structured, informative, in-depth, and follows Markdown syntax.' \ - ' Include relevant facts, figures, and numbers whenever available.' \ - ' The report should have a minimum length of 1,200 words.' + ' explaining how each source can contribute to finding answers to the research question.\n' \ + 'Focus on the relevance, reliability, and significance of each source.\n' \ + 'Ensure that the report is well-structured, informative, in-depth, and follows Markdown syntax.\n' \ + 'Include relevant facts, figures, and numbers whenever available.\n' \ + 'The report should have a minimum length of 700 words.\n' \ + 'You MUST include all relevant source urls.' def generate_outline_report_prompt(question, context, report_format="apa", total_words=1000):