pvanand commited on
Commit
a4dd9db
1 Parent(s): 0692f72

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +18 -15
main.py CHANGED
@@ -58,21 +58,24 @@ prompt_system["online"] = """You are an expert AI who can provide answers using
58
 
59
  prompt_system["offline"] = """Your response should be properly formatted and well readable using markdown formatting."""
60
 
61
- sys_prompts = {
62
- "offline": {
63
- "Chat": "You are an expert AI, complete the given task. Do not add any additional comments.",
64
- "Full Text Report": "You are an expert AI who can create a detailed report from user request. The report should be in markdown format. Do not add any additional comments.",
65
- "Tabular Report": "You are an expert AI who can create a structured report from user request.The report should be in markdown format structured into subtopics/tables/lists. Do not add any additional comments.",
66
- "Tables only": "You are an expert AI who can create a structured tabular report from user request.The report should be in markdown format consists of only markdown tables. Do not add any additional comments.",
67
- },
68
- "online":
69
- "user":{
70
- "Chat": "You are an expert AI, complete the given task using the provided context. Do not add any additional comments.",
71
- "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 given task and use it to create a report. The report should be in markdown format. Do not add any additional comments.",
72
- "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 given task 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.",
73
- "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 given task. The report should be in markdown format consists of only markdown tables. Do not add any additional comments.",
74
- },
75
- }
 
 
 
76
 
77
  class QueryModel(BaseModel):
78
  topic: str = Query(default="market research", description="input query to generate Report")
 
58
 
59
  prompt_system["offline"] = """Your response should be properly formatted and well readable using markdown formatting."""
60
 
61
+ # sys_prompts = {
62
+ # "offline": {
63
+ # "Chat": "You are an expert AI, complete the given task. Do not add any additional comments.",
64
+ # "Full Text Report": "You are an expert AI who can create a detailed report from user request. The report should be in markdown format. Do not add any additional comments.",
65
+ # "Tabular Report": "You are an expert AI who can create a structured report from user request.The report should be in markdown format structured into subtopics/tables/lists. Do not add any additional comments.",
66
+ # "Tables only": "You are an expert AI who can create a structured tabular report from user request.The report should be in markdown format consists of only markdown tables. Do not add any additional comments.",
67
+ # },
68
+ # "online": {
69
+ # "Chat": "You are an expert AI, complete the given task using the provided context. Do not add any additional comments.",
70
+ # "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 given task and use it to create a report. The report should be in markdown format. Do not add any additional comments.",
71
+ # "Tabular Report": """You are an expert AI who can provide answers using internet search results.
72
+ # 1 filter and summarize relevant information, if there are conflicting information, use the latest source.
73
+ # 2. use it to construct a clear and factual answer.
74
+ # Your response should be properly formatted and well readable using markdown formatting. """,
75
+ # "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 given task. The report should be in markdown format consists of only markdown tables. Do not add any additional comments.",
76
+ # },
77
+ # }
78
+
79
 
80
  class QueryModel(BaseModel):
81
  topic: str = Query(default="market research", description="input query to generate Report")