Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1032,6 +1032,9 @@ def generate_prompt_from_excel_file(df_dict):
|
|
| 1032 |
#prompt += "\n"
|
| 1033 |
|
| 1034 |
# Finalize the prompt with function call description
|
|
|
|
|
|
|
|
|
|
| 1035 |
prompt += f"- Query: A natural language question (e.g., List the distinct broker names). The question should be sent as 'What are the distinct broker names in the excel document.'."
|
| 1036 |
prompt += f"""Output : {docstatus}. Here is the sample table:
|
| 1037 |
{sample_table}.
|
|
@@ -1076,7 +1079,7 @@ def add_to_redmindgpt(title, summary):
|
|
| 1076 |
name="runtimeDocumentData",
|
| 1077 |
args_schema=QueryInput,
|
| 1078 |
output_schema=QueryOutput,
|
| 1079 |
-
description=f"You are an AI assistant trained to help with the questions based on the uploaded document {title}. {summary}. Please provide a complete and concise response within 200 words and Ensure that the response is not truncated and covers the essential points."
|
| 1080 |
)
|
| 1081 |
|
| 1082 |
# Add the new tool to the beginning
|
|
|
|
| 1032 |
#prompt += "\n"
|
| 1033 |
|
| 1034 |
# Finalize the prompt with function call description
|
| 1035 |
+
prompt += f"- Query: A natural language question (e.g., How many brokers are there>). "
|
| 1036 |
+
prompt += f"""Output : The number of brokers are XXX(count in the response)
|
| 1037 |
+
"""
|
| 1038 |
prompt += f"- Query: A natural language question (e.g., List the distinct broker names). The question should be sent as 'What are the distinct broker names in the excel document.'."
|
| 1039 |
prompt += f"""Output : {docstatus}. Here is the sample table:
|
| 1040 |
{sample_table}.
|
|
|
|
| 1079 |
name="runtimeDocumentData",
|
| 1080 |
args_schema=QueryInput,
|
| 1081 |
output_schema=QueryOutput,
|
| 1082 |
+
description=f"You are an AI assistant trained to help with the questions based on the uploaded document {title}. {summary}. Please provide a complete and concise response within 200 words and Ensure that the response is not truncated and covers the essential points.If user asks, 'what is in the document', please give a precise summary of the document."
|
| 1083 |
)
|
| 1084 |
|
| 1085 |
# Add the new tool to the beginning
|