Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -356,8 +356,8 @@ def get_response_from_excel(query, model, context, num_calls=3, temperature=0.2)
|
|
356 |
logging.info(f"Getting response from Excel using model: {model}")
|
357 |
|
358 |
messages = [
|
359 |
-
{"role": "system", "content": "You are a highly specialized data analyst with expertise in analyzing and summarizing Excel spreadsheets. Your goal is to provide accurate, detailed, and precise
|
360 |
-
{"role": "user", "content": f"Using the following data extracted from Excel spreadsheets:\n{context}\n\nPlease analyze this data and provide a comprehensive answer to the following question: '{query}'.
|
361 |
]
|
362 |
|
363 |
if model.startswith("duckduckgo/"):
|
|
|
356 |
logging.info(f"Getting response from Excel using model: {model}")
|
357 |
|
358 |
messages = [
|
359 |
+
{"role": "system", "content": "You are a highly specialized data analyst with expertise in analyzing and summarizing Excel spreadsheets. Your goal is to provide accurate, detailed, and precise information on the data provided. Focus on identifying key metrics, trends, and significant details relevant to the query. Avoid making assumptions or adding information that is not explicitly supported by the data."},
|
360 |
+
{"role": "user", "content": f"Using the following data extracted from Excel spreadsheets:\n{context}\n\nPlease analyze this data and provide a comprehensive answer to the following question: '{query}'. If appropriate, suggest visualizations that could help illustrate the findings."}
|
361 |
]
|
362 |
|
363 |
if model.startswith("duckduckgo/"):
|