Redmind commited on
Commit
ebc26b9
·
verified ·
1 Parent(s): 423b9a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -992,7 +992,7 @@ def generate_example_questions(sheet_name, column_headers):
992
  questions.append(f"What is the price of a specific product in {sheet_name}?")
993
 
994
  if any(fnmatch.fnmatch(header, 'Employee*') for header in column_headers):
995
- questions.append(f"What are the details of the distinct broker names?")
996
 
997
  return questions
998
 
@@ -1041,10 +1041,14 @@ def generate_prompt_from_excel_file(df_dict):
1041
  {sample_table}.
1042
  """
1043
 
1044
- #prompt += f"- Query: A natural language question (e.g., List all the employees whose names start with 'A'). The question should be sent as 'What are the employee details with name starts with a'."
1045
- #prompt += f"""Output : {docstatus}. Here is the sample table:
1046
- # {sample_table}.
1047
- # """
 
 
 
 
1048
 
1049
  prompt += f"- Query: A natural language question with request to create LOA document (e.g., can you create LOA document for all the employees with broker name XXXX). The question should be sent as 'What are the employee details with broker name XXXX : LOA document'."
1050
  prompt += f"""Output: {docstatus}. Here is the sample table:
 
992
  questions.append(f"What is the price of a specific product in {sheet_name}?")
993
 
994
  if any(fnmatch.fnmatch(header, 'Employee*') for header in column_headers):
995
+ questions.append(f"What are the the distinct broker names?")
996
 
997
  return questions
998
 
 
1041
  {sample_table}.
1042
  """
1043
 
1044
+ prompt += f"- Query: A natural language question (e.g., List all the employees whose names start with 'A'). The question should be sent as 'What are the employee details with name starts with a'."
1045
+ prompt += f"""Output : {docstatus}. Here is the sample table:
1046
+ {sample_table}.
1047
+ """
1048
+ prompt += f"- Query: A natural language question (e.g., Give me details of sarah webb). The question should be sent as 'What are the employee details with employee name or accouunt name contains sarah webb'"
1049
+ prompt += f"""Output : {docstatus}. Here is the sample table:
1050
+ {sample_table}.
1051
+ """
1052
 
1053
  prompt += f"- Query: A natural language question with request to create LOA document (e.g., can you create LOA document for all the employees with broker name XXXX). The question should be sent as 'What are the employee details with broker name XXXX : LOA document'."
1054
  prompt += f"""Output: {docstatus}. Here is the sample table: