Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
atomic_concepts_gradio/20250124_170625_aone.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metrics_prompt": "Forget all of our past conversations and treat this as a new conversation. As an expert Data Analyst in the Financial Securities Trading Industry, parse the following question \"{question}\" and list all the metrics mentioned in the statement. Do not list anything that is not a metric. Do not include dimensions. ",
|
| 3 |
+
"dimensions_prompt": " Forget all of our past conversations and treat this as a new conversation. As an expert Data Analyst in the Financial Securities Trading Industry, parse the following question \"{question}\" and identify all the dimensions that are not a metric. List the dimensions including time period and list that only and nothing else. Do not include metrics.",
|
| 4 |
+
"results": [
|
| 5 |
+
{
|
| 6 |
+
"question": "What is the MTD total order volume",
|
| 7 |
+
"metrics": [
|
| 8 |
+
"MTD total order volume"
|
| 9 |
+
],
|
| 10 |
+
"dimensions": [
|
| 11 |
+
"MTD",
|
| 12 |
+
"order"
|
| 13 |
+
]
|
| 14 |
+
},
|
| 15 |
+
{
|
| 16 |
+
"question": "Show total monthly order volume for the past 12 months.",
|
| 17 |
+
"metrics": [
|
| 18 |
+
"total monthly order volume"
|
| 19 |
+
],
|
| 20 |
+
"dimensions": [
|
| 21 |
+
"total monthly order volume",
|
| 22 |
+
"past 12 months"
|
| 23 |
+
]
|
| 24 |
+
}
|
| 25 |
+
],
|
| 26 |
+
"llm_model": "gpt-4o",
|
| 27 |
+
"username": "achinta"
|
| 28 |
+
}
|
atomic_concepts_gradio/20250124_170838_aone.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metrics_prompt": "Forget all of our past conversations and treat this as a new conversation. As an expert Data Analyst in the Financial Securities Trading Industry, parse the following question \"{question}\" and list all the metrics mentioned in the statement. Do not list anything that is not a metric. Do not include dimensions. ",
|
| 3 |
+
"dimensions_prompt": "Forget all of our past conversations and treat this as a new conversation. As an expert Data Analyst in the Financial Securities Trading Industry, parse the following question \"{question}\" and identify all the dimensions that are not a metric. List the dimensions including time period and list that only and nothing else. Do not include metrics.",
|
| 4 |
+
"results": [
|
| 5 |
+
{
|
| 6 |
+
"question": "What is the MTD total order volume",
|
| 7 |
+
"metrics": [
|
| 8 |
+
"MTD total order volume"
|
| 9 |
+
],
|
| 10 |
+
"dimensions": [
|
| 11 |
+
"MTD (Month-to-Date)",
|
| 12 |
+
"Order"
|
| 13 |
+
]
|
| 14 |
+
},
|
| 15 |
+
{
|
| 16 |
+
"question": "Show total monthly order volume for the past 12 months.",
|
| 17 |
+
"metrics": [
|
| 18 |
+
"total monthly order volume"
|
| 19 |
+
],
|
| 20 |
+
"dimensions": [
|
| 21 |
+
"Order Volume",
|
| 22 |
+
"Time Period (Past 12 Months)"
|
| 23 |
+
]
|
| 24 |
+
}
|
| 25 |
+
],
|
| 26 |
+
"llm_model": "gpt-4o",
|
| 27 |
+
"username": "achinta"
|
| 28 |
+
}
|
atomic_concepts_gradio/20250124_171034_aone.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metrics_prompt": "Forget all of our past conversations and treat this as a new conversation. As an expert Data Analyst in the Financial Securities Trading Industry, parse the following question \"{question}\" and list all the metrics mentioned in the statement. Do not list anything that is not a metric. Do not include dimensions.",
|
| 3 |
+
"dimensions_prompt": "Forget all of our past conversations and treat this as a new conversation. As an expert Data Analyst in the Financial Securities Trading Industry, parse the following question \"{question}\" and identify all the dimensions that are not a metric. List the dimensions including time period and list that only and nothing else. Do not include metrics.",
|
| 4 |
+
"results": [
|
| 5 |
+
{
|
| 6 |
+
"question": "What is the MTD total order volume",
|
| 7 |
+
"metrics": [
|
| 8 |
+
"MTD total order volume"
|
| 9 |
+
],
|
| 10 |
+
"dimensions": [
|
| 11 |
+
"MTD",
|
| 12 |
+
"order"
|
| 13 |
+
]
|
| 14 |
+
},
|
| 15 |
+
{
|
| 16 |
+
"question": "Show total monthly order volume for the past 12 months.",
|
| 17 |
+
"metrics": [
|
| 18 |
+
"total monthly order volume"
|
| 19 |
+
],
|
| 20 |
+
"dimensions": [
|
| 21 |
+
"total monthly order volume",
|
| 22 |
+
"past 12 months"
|
| 23 |
+
]
|
| 24 |
+
}
|
| 25 |
+
],
|
| 26 |
+
"llm_model": "gpt-4o",
|
| 27 |
+
"username": "achinta"
|
| 28 |
+
}
|
evaluate_atomic_matching.py
CHANGED
|
@@ -256,8 +256,7 @@ with gr.Blocks(css="footer {visibility: hidden}") as iface:
|
|
| 256 |
download_btn = gr.Button("Download Results", interactive=False)
|
| 257 |
|
| 258 |
def enable_download(message, filepath):
|
| 259 |
-
|
| 260 |
-
return message, filepath
|
| 261 |
|
| 262 |
process_btn.click(
|
| 263 |
fn=process_questions,
|
|
@@ -267,11 +266,11 @@ with gr.Blocks(css="footer {visibility: hidden}") as iface:
|
|
| 267 |
).then(
|
| 268 |
fn=enable_download,
|
| 269 |
inputs=[result, file_output],
|
| 270 |
-
outputs=[result, file_output]
|
| 271 |
)
|
| 272 |
|
| 273 |
download_btn.click(
|
| 274 |
-
fn=lambda filepath: filepath,
|
| 275 |
inputs=[file_output],
|
| 276 |
outputs=gr.File(label="Download JSON")
|
| 277 |
)
|
|
|
|
| 256 |
download_btn = gr.Button("Download Results", interactive=False)
|
| 257 |
|
| 258 |
def enable_download(message, filepath):
|
| 259 |
+
return message, filepath, gr.Button(value="Download Results", interactive=True)
|
|
|
|
| 260 |
|
| 261 |
process_btn.click(
|
| 262 |
fn=process_questions,
|
|
|
|
| 266 |
).then(
|
| 267 |
fn=enable_download,
|
| 268 |
inputs=[result, file_output],
|
| 269 |
+
outputs=[result, file_output, download_btn]
|
| 270 |
)
|
| 271 |
|
| 272 |
download_btn.click(
|
| 273 |
+
fn=lambda filepath: gr.File(value=filepath, label="Download JSON"),
|
| 274 |
inputs=[file_output],
|
| 275 |
outputs=gr.File(label="Download JSON")
|
| 276 |
)
|