pvanand commited on
Commit
8d2a747
1 Parent(s): a56efa8

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -4
main.py CHANGED
@@ -39,9 +39,9 @@ sys_prompts = {
39
  },
40
  "online": {
41
  "Chat": "You are an expert AI, complete the given task using the provided context. Do not add any additional comments.",
42
- "Full Text Report": "You are an expert AI who can create a detailed report using information provided in the context from user request. The report should be in markdown format. Do not add any additional comments.",
43
- "Tabular Report": "You are an expert AI who can create a structured report using information provided in the context from user request. The report should be in markdown format structured into subtopics/tables/lists. Do not add any additional comments.",
44
- "Tables only": "You are an expert AI who can create a structured tabular report using information provided in the context from user request. The report should be in markdown format consists of only markdown tables. Do not add any additional comments.",
45
  },
46
  }
47
 
@@ -76,7 +76,7 @@ async def generate_report(request: Request, query: QueryModel):
76
 
77
  # Prepare the prompt for generating the report
78
  additional_context = limit_tokens(str(all_text_with_urls))
79
- prompt = f"#### COMPLETE THE TASK: {description} #### IN THE CONTEXT OF ### CONTEXT: {query_str} #### ADDITIONAL CONTEXT:{additional_context}"
80
 
81
  else:
82
  prompt = f"#### COMPLETE THE TASK: {query_str} #### IN THE CONTEXT OF ### CONTEXT: {description}"
 
39
  },
40
  "online": {
41
  "Chat": "You are an expert AI, complete the given task using the provided context. Do not add any additional comments.",
42
+ "Full Text Report": "You are an expert AI who can create a detailed report using information scraped from the internet. You should decide which information is relevant to the user query and use it to create a report. The report should be in markdown format. Do not add any additional comments.",
43
+ "Tabular Report": "You are an expert AI who can create a structured report using information scraped from the internet. You should decide which information is relevant to the user query and use it to create a report. The report should be in markdown format structured into subtopics/tables/lists. Do not add any additional comments.",
44
+ "Tables only": "You are an expert AI who can create a structured tabular report using information scraped from the internet. You should decide which information is relevant to the user query. The report should be in markdown format consists of only markdown tables. Do not add any additional comments.",
45
  },
46
  }
47
 
 
76
 
77
  # Prepare the prompt for generating the report
78
  additional_context = limit_tokens(str(all_text_with_urls))
79
+ prompt = f"#### COMPLETE THE TASK: {description} #### IN THE CONTEXT OF ### CONTEXT: {query_str} USING THE #### SCRAPED DATA:{additional_context}"
80
 
81
  else:
82
  prompt = f"#### COMPLETE THE TASK: {query_str} #### IN THE CONTEXT OF ### CONTEXT: {description}"