Spaces:
Runtime error
Runtime error
Elric2005 commited on
Commit Β·
40f36ec
1
Parent(s): e4d63d3
a test demo added
Browse files- README.md +19 -0
- data/workflow_painpoints_demo.csv +6 -0
- examples/data_agent_demo.ipynb +22 -20
README.md
CHANGED
|
@@ -130,6 +130,25 @@ Finally, graphs of the most important variables are presented.
|
|
| 130 |
|
| 131 |
## <a name='requirements--starting-procedures'></a>Requirements & Starting Procedures
|
| 132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
### Requirements
|
| 134 |
* [Node.js](https://nodejs.org/en)
|
| 135 |
|
|
|
|
| 130 |
|
| 131 |
## <a name='requirements--starting-procedures'></a>Requirements & Starting Procedures
|
| 132 |
|
| 133 |
+
## Demo Dataset
|
| 134 |
+
|
| 135 |
+
This repository includes a **mock dataset** which was added purely for demonstration(and debugging) purposes.
|
| 136 |
+
They are designed to help pinpoint the cause and place for delays/errors within the AI data agent workflow using mock datasets.
|
| 137 |
+
|
| 138 |
+
### User Workflow Steps Demo
|
| 139 |
+
|
| 140 |
+
- `data/workflow_painpoints_demo.csv`
|
| 141 |
+
|
| 142 |
+
Captures how users move through the product demo workflow, such as
|
| 143 |
+
(data upload β schema detection β data cleaning β data analysis β data visualization β exporting the data).
|
| 144 |
+
Each row represents a single workflow step and includes:
|
| 145 |
+
- the time spent on the step in minutes
|
| 146 |
+
- whether or not an error actually occurred(simple boolean)
|
| 147 |
+
- the associated pain point (if it exists to begin with)
|
| 148 |
+
|
| 149 |
+
> **Note:** All added demo datasets in this repository are meant solely for demonstration and testing purposes.
|
| 150 |
+
|
| 151 |
+
|
| 152 |
### Requirements
|
| 153 |
* [Node.js](https://nodejs.org/en)
|
| 154 |
|
data/workflow_painpoints_demo.csv
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
user_id,workflow_step,webtools_used,minutes_spent,error_existence,pain_point
|
| 2 |
+
U001,Data_Upload,CSV Import,6,false,none
|
| 3 |
+
U001,Data_Cleaning,Manual Script,18,true,complex setup
|
| 4 |
+
U002,Mapping,UI Tool,10,false,unclear labelling
|
| 5 |
+
U003,Visualization,Dashboard,7,true,very slow rendering
|
| 6 |
+
U004,Exporting_Results,CSV Export,5,false,none
|
examples/data_agent_demo.ipynb
CHANGED
|
@@ -36,7 +36,7 @@
|
|
| 36 |
},
|
| 37 |
{
|
| 38 |
"cell_type": "code",
|
| 39 |
-
"execution_count":
|
| 40 |
"id": "L0KlJIwcdCed",
|
| 41 |
"metadata": {
|
| 42 |
"id": "L0KlJIwcdCed"
|
|
@@ -83,7 +83,7 @@
|
|
| 83 |
"Collecting langgraph<0.3,>=0.2\n",
|
| 84 |
" Using cached langgraph-0.2.76-py3-none-any.whl.metadata (17 kB)\n",
|
| 85 |
"Collecting langchain-openai>=0.2.0\n",
|
| 86 |
-
"
|
| 87 |
"Collecting langchain-anthropic>=0.2.0\n",
|
| 88 |
" Using cached langchain_anthropic-1.3.0-py3-none-any.whl.metadata (2.6 kB)\n",
|
| 89 |
"Collecting langchain-google-vertexai>=2.0.0\n",
|
|
@@ -141,14 +141,16 @@
|
|
| 141 |
"Requirement already satisfied: mypy-extensions>=0.3.0 in /Users/muhammadarij/cs mac/data-agents/.venv/lib/python3.11/site-packages (from typing-inspect<1,>=0.4.0->dataclasses-json<0.7.0,>=0.6.7->langchain-community==0.3.*) (1.1.0)\n",
|
| 142 |
"INFO: pip is looking at multiple versions of langchain-openai to determine which version is compatible with other requirements. This could take a while.\n",
|
| 143 |
"Collecting langchain-openai>=0.2.0\n",
|
|
|
|
|
|
|
| 144 |
" Using cached langchain_openai-1.1.3-py3-none-any.whl.metadata (2.6 kB)\n",
|
| 145 |
" Using cached langchain_openai-1.1.2-py3-none-any.whl.metadata (2.6 kB)\n",
|
| 146 |
" Using cached langchain_openai-1.1.1-py3-none-any.whl.metadata (2.6 kB)\n",
|
| 147 |
" Using cached langchain_openai-1.1.0-py3-none-any.whl.metadata (2.6 kB)\n",
|
| 148 |
" Using cached langchain_openai-1.0.3-py3-none-any.whl.metadata (2.6 kB)\n",
|
|
|
|
| 149 |
" Using cached langchain_openai-1.0.2-py3-none-any.whl.metadata (1.8 kB)\n",
|
| 150 |
" Using cached langchain_openai-1.0.1-py3-none-any.whl.metadata (1.8 kB)\n",
|
| 151 |
-
"INFO: pip is still looking at multiple versions of langchain-openai to determine which version is compatible with other requirements. This could take a while.\n",
|
| 152 |
" Using cached langchain_openai-1.0.0-py3-none-any.whl.metadata (1.8 kB)\n",
|
| 153 |
" Using cached langchain_openai-0.3.35-py3-none-any.whl.metadata (2.4 kB)\n",
|
| 154 |
"Requirement already satisfied: openai<3.0.0,>=1.104.2 in /Users/muhammadarij/cs mac/data-agents/.venv/lib/python3.11/site-packages (from langchain-openai>=0.2.0) (2.13.0)\n",
|
|
@@ -256,7 +258,7 @@
|
|
| 256 |
"Using cached langchain_experimental-0.3.4-py3-none-any.whl (209 kB)\n",
|
| 257 |
"Using cached langchain_scrapegraph-1.6.0-py3-none-any.whl (20 kB)\n",
|
| 258 |
"Installing collected packages: langchain-core, langchain-scrapegraph, langchain-openai, langchain-anthropic, langgraph, langchain, langchain-google-vertexai, langchain-community, langchain-experimental\n",
|
| 259 |
-
"\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m9/9\u001b[0m [langchain-experimental]hain-experimental]
|
| 260 |
"\u001b[1A\u001b[2K\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
|
| 261 |
"langchain-classic 1.0.0 requires langchain-core<2.0.0,>=1.0.0, but you have langchain-core 0.3.80 which is incompatible.\n",
|
| 262 |
"langchain-classic 1.0.0 requires langchain-text-splitters<2.0.0,>=1.0.0, but you have langchain-text-splitters 0.3.11 which is incompatible.\n",
|
|
@@ -288,7 +290,7 @@
|
|
| 288 |
},
|
| 289 |
{
|
| 290 |
"cell_type": "code",
|
| 291 |
-
"execution_count":
|
| 292 |
"id": "AWWI1FJ6ChHN",
|
| 293 |
"metadata": {
|
| 294 |
"id": "AWWI1FJ6ChHN"
|
|
@@ -337,7 +339,7 @@
|
|
| 337 |
},
|
| 338 |
{
|
| 339 |
"cell_type": "code",
|
| 340 |
-
"execution_count":
|
| 341 |
"id": "g9izxdgGCl-V",
|
| 342 |
"metadata": {
|
| 343 |
"id": "g9izxdgGCl-V"
|
|
@@ -402,7 +404,7 @@
|
|
| 402 |
},
|
| 403 |
{
|
| 404 |
"cell_type": "code",
|
| 405 |
-
"execution_count":
|
| 406 |
"id": "5ldGnv_jPlP8",
|
| 407 |
"metadata": {
|
| 408 |
"id": "5ldGnv_jPlP8"
|
|
@@ -426,7 +428,7 @@
|
|
| 426 |
},
|
| 427 |
{
|
| 428 |
"cell_type": "code",
|
| 429 |
-
"execution_count":
|
| 430 |
"id": "f5e1b596-4568-4078-ae14-b20d25cba62b",
|
| 431 |
"metadata": {
|
| 432 |
"id": "f5e1b596-4568-4078-ae14-b20d25cba62b"
|
|
@@ -470,7 +472,7 @@
|
|
| 470 |
},
|
| 471 |
{
|
| 472 |
"cell_type": "code",
|
| 473 |
-
"execution_count":
|
| 474 |
"id": "B6dGxRmnyJHS",
|
| 475 |
"metadata": {
|
| 476 |
"id": "B6dGxRmnyJHS"
|
|
@@ -617,7 +619,7 @@
|
|
| 617 |
},
|
| 618 |
{
|
| 619 |
"cell_type": "code",
|
| 620 |
-
"execution_count":
|
| 621 |
"id": "789b46d9-2189-4d3c-8f77-61b4675bf950",
|
| 622 |
"metadata": {
|
| 623 |
"id": "789b46d9-2189-4d3c-8f77-61b4675bf950"
|
|
@@ -684,7 +686,7 @@
|
|
| 684 |
},
|
| 685 |
{
|
| 686 |
"cell_type": "code",
|
| 687 |
-
"execution_count":
|
| 688 |
"id": "uajELHHaJjUS",
|
| 689 |
"metadata": {
|
| 690 |
"id": "uajELHHaJjUS"
|
|
@@ -715,7 +717,7 @@
|
|
| 715 |
},
|
| 716 |
{
|
| 717 |
"cell_type": "code",
|
| 718 |
-
"execution_count":
|
| 719 |
"id": "35sreALjyVuA",
|
| 720 |
"metadata": {
|
| 721 |
"id": "35sreALjyVuA"
|
|
@@ -783,7 +785,7 @@
|
|
| 783 |
},
|
| 784 |
{
|
| 785 |
"cell_type": "code",
|
| 786 |
-
"execution_count":
|
| 787 |
"id": "n6sfgj8W4eAA",
|
| 788 |
"metadata": {
|
| 789 |
"id": "n6sfgj8W4eAA"
|
|
@@ -870,7 +872,7 @@
|
|
| 870 |
},
|
| 871 |
{
|
| 872 |
"cell_type": "code",
|
| 873 |
-
"execution_count":
|
| 874 |
"id": "97vYgZVOUQnT",
|
| 875 |
"metadata": {
|
| 876 |
"id": "97vYgZVOUQnT"
|
|
@@ -926,7 +928,7 @@
|
|
| 926 |
},
|
| 927 |
{
|
| 928 |
"cell_type": "code",
|
| 929 |
-
"execution_count":
|
| 930 |
"id": "3_PPBrjqC0Os",
|
| 931 |
"metadata": {
|
| 932 |
"id": "3_PPBrjqC0Os"
|
|
@@ -1022,7 +1024,7 @@
|
|
| 1022 |
},
|
| 1023 |
{
|
| 1024 |
"cell_type": "code",
|
| 1025 |
-
"execution_count":
|
| 1026 |
"id": "OhM41SDzIQdI",
|
| 1027 |
"metadata": {
|
| 1028 |
"id": "OhM41SDzIQdI"
|
|
@@ -1040,8 +1042,8 @@
|
|
| 1040 |
"name": "stdout",
|
| 1041 |
"output_type": "stream",
|
| 1042 |
"text": [
|
| 1043 |
-
"* Running on local URL: http://127.0.0.1:
|
| 1044 |
-
"* Running on public URL: https://
|
| 1045 |
"\n",
|
| 1046 |
"This share link expires in 1 week. For free permanent hosting and GPU upgrades, run `gradio deploy` from the terminal in the working directory to deploy to Hugging Face Spaces (https://huggingface.co/spaces)\n"
|
| 1047 |
]
|
|
@@ -1049,7 +1051,7 @@
|
|
| 1049 |
{
|
| 1050 |
"data": {
|
| 1051 |
"text/html": [
|
| 1052 |
-
"<div><iframe src=\"https://
|
| 1053 |
],
|
| 1054 |
"text/plain": [
|
| 1055 |
"<IPython.core.display.HTML object>"
|
|
@@ -1062,7 +1064,7 @@
|
|
| 1062 |
"data": {
|
| 1063 |
"text/plain": []
|
| 1064 |
},
|
| 1065 |
-
"execution_count":
|
| 1066 |
"metadata": {},
|
| 1067 |
"output_type": "execute_result"
|
| 1068 |
}
|
|
|
|
| 36 |
},
|
| 37 |
{
|
| 38 |
"cell_type": "code",
|
| 39 |
+
"execution_count": 40,
|
| 40 |
"id": "L0KlJIwcdCed",
|
| 41 |
"metadata": {
|
| 42 |
"id": "L0KlJIwcdCed"
|
|
|
|
| 83 |
"Collecting langgraph<0.3,>=0.2\n",
|
| 84 |
" Using cached langgraph-0.2.76-py3-none-any.whl.metadata (17 kB)\n",
|
| 85 |
"Collecting langchain-openai>=0.2.0\n",
|
| 86 |
+
" Downloading langchain_openai-1.1.6-py3-none-any.whl.metadata (2.6 kB)\n",
|
| 87 |
"Collecting langchain-anthropic>=0.2.0\n",
|
| 88 |
" Using cached langchain_anthropic-1.3.0-py3-none-any.whl.metadata (2.6 kB)\n",
|
| 89 |
"Collecting langchain-google-vertexai>=2.0.0\n",
|
|
|
|
| 141 |
"Requirement already satisfied: mypy-extensions>=0.3.0 in /Users/muhammadarij/cs mac/data-agents/.venv/lib/python3.11/site-packages (from typing-inspect<1,>=0.4.0->dataclasses-json<0.7.0,>=0.6.7->langchain-community==0.3.*) (1.1.0)\n",
|
| 142 |
"INFO: pip is looking at multiple versions of langchain-openai to determine which version is compatible with other requirements. This could take a while.\n",
|
| 143 |
"Collecting langchain-openai>=0.2.0\n",
|
| 144 |
+
" Downloading langchain_openai-1.1.5-py3-none-any.whl.metadata (2.6 kB)\n",
|
| 145 |
+
" Using cached langchain_openai-1.1.4-py3-none-any.whl.metadata (2.6 kB)\n",
|
| 146 |
" Using cached langchain_openai-1.1.3-py3-none-any.whl.metadata (2.6 kB)\n",
|
| 147 |
" Using cached langchain_openai-1.1.2-py3-none-any.whl.metadata (2.6 kB)\n",
|
| 148 |
" Using cached langchain_openai-1.1.1-py3-none-any.whl.metadata (2.6 kB)\n",
|
| 149 |
" Using cached langchain_openai-1.1.0-py3-none-any.whl.metadata (2.6 kB)\n",
|
| 150 |
" Using cached langchain_openai-1.0.3-py3-none-any.whl.metadata (2.6 kB)\n",
|
| 151 |
+
"INFO: pip is still looking at multiple versions of langchain-openai to determine which version is compatible with other requirements. This could take a while.\n",
|
| 152 |
" Using cached langchain_openai-1.0.2-py3-none-any.whl.metadata (1.8 kB)\n",
|
| 153 |
" Using cached langchain_openai-1.0.1-py3-none-any.whl.metadata (1.8 kB)\n",
|
|
|
|
| 154 |
" Using cached langchain_openai-1.0.0-py3-none-any.whl.metadata (1.8 kB)\n",
|
| 155 |
" Using cached langchain_openai-0.3.35-py3-none-any.whl.metadata (2.4 kB)\n",
|
| 156 |
"Requirement already satisfied: openai<3.0.0,>=1.104.2 in /Users/muhammadarij/cs mac/data-agents/.venv/lib/python3.11/site-packages (from langchain-openai>=0.2.0) (2.13.0)\n",
|
|
|
|
| 258 |
"Using cached langchain_experimental-0.3.4-py3-none-any.whl (209 kB)\n",
|
| 259 |
"Using cached langchain_scrapegraph-1.6.0-py3-none-any.whl (20 kB)\n",
|
| 260 |
"Installing collected packages: langchain-core, langchain-scrapegraph, langchain-openai, langchain-anthropic, langgraph, langchain, langchain-google-vertexai, langchain-community, langchain-experimental\n",
|
| 261 |
+
"\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m9/9\u001b[0m [langchain-experimental]hain-experimental]\n",
|
| 262 |
"\u001b[1A\u001b[2K\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
|
| 263 |
"langchain-classic 1.0.0 requires langchain-core<2.0.0,>=1.0.0, but you have langchain-core 0.3.80 which is incompatible.\n",
|
| 264 |
"langchain-classic 1.0.0 requires langchain-text-splitters<2.0.0,>=1.0.0, but you have langchain-text-splitters 0.3.11 which is incompatible.\n",
|
|
|
|
| 290 |
},
|
| 291 |
{
|
| 292 |
"cell_type": "code",
|
| 293 |
+
"execution_count": 41,
|
| 294 |
"id": "AWWI1FJ6ChHN",
|
| 295 |
"metadata": {
|
| 296 |
"id": "AWWI1FJ6ChHN"
|
|
|
|
| 339 |
},
|
| 340 |
{
|
| 341 |
"cell_type": "code",
|
| 342 |
+
"execution_count": 42,
|
| 343 |
"id": "g9izxdgGCl-V",
|
| 344 |
"metadata": {
|
| 345 |
"id": "g9izxdgGCl-V"
|
|
|
|
| 404 |
},
|
| 405 |
{
|
| 406 |
"cell_type": "code",
|
| 407 |
+
"execution_count": 43,
|
| 408 |
"id": "5ldGnv_jPlP8",
|
| 409 |
"metadata": {
|
| 410 |
"id": "5ldGnv_jPlP8"
|
|
|
|
| 428 |
},
|
| 429 |
{
|
| 430 |
"cell_type": "code",
|
| 431 |
+
"execution_count": 44,
|
| 432 |
"id": "f5e1b596-4568-4078-ae14-b20d25cba62b",
|
| 433 |
"metadata": {
|
| 434 |
"id": "f5e1b596-4568-4078-ae14-b20d25cba62b"
|
|
|
|
| 472 |
},
|
| 473 |
{
|
| 474 |
"cell_type": "code",
|
| 475 |
+
"execution_count": 45,
|
| 476 |
"id": "B6dGxRmnyJHS",
|
| 477 |
"metadata": {
|
| 478 |
"id": "B6dGxRmnyJHS"
|
|
|
|
| 619 |
},
|
| 620 |
{
|
| 621 |
"cell_type": "code",
|
| 622 |
+
"execution_count": 46,
|
| 623 |
"id": "789b46d9-2189-4d3c-8f77-61b4675bf950",
|
| 624 |
"metadata": {
|
| 625 |
"id": "789b46d9-2189-4d3c-8f77-61b4675bf950"
|
|
|
|
| 686 |
},
|
| 687 |
{
|
| 688 |
"cell_type": "code",
|
| 689 |
+
"execution_count": 47,
|
| 690 |
"id": "uajELHHaJjUS",
|
| 691 |
"metadata": {
|
| 692 |
"id": "uajELHHaJjUS"
|
|
|
|
| 717 |
},
|
| 718 |
{
|
| 719 |
"cell_type": "code",
|
| 720 |
+
"execution_count": 48,
|
| 721 |
"id": "35sreALjyVuA",
|
| 722 |
"metadata": {
|
| 723 |
"id": "35sreALjyVuA"
|
|
|
|
| 785 |
},
|
| 786 |
{
|
| 787 |
"cell_type": "code",
|
| 788 |
+
"execution_count": 49,
|
| 789 |
"id": "n6sfgj8W4eAA",
|
| 790 |
"metadata": {
|
| 791 |
"id": "n6sfgj8W4eAA"
|
|
|
|
| 872 |
},
|
| 873 |
{
|
| 874 |
"cell_type": "code",
|
| 875 |
+
"execution_count": 50,
|
| 876 |
"id": "97vYgZVOUQnT",
|
| 877 |
"metadata": {
|
| 878 |
"id": "97vYgZVOUQnT"
|
|
|
|
| 928 |
},
|
| 929 |
{
|
| 930 |
"cell_type": "code",
|
| 931 |
+
"execution_count": 51,
|
| 932 |
"id": "3_PPBrjqC0Os",
|
| 933 |
"metadata": {
|
| 934 |
"id": "3_PPBrjqC0Os"
|
|
|
|
| 1024 |
},
|
| 1025 |
{
|
| 1026 |
"cell_type": "code",
|
| 1027 |
+
"execution_count": 52,
|
| 1028 |
"id": "OhM41SDzIQdI",
|
| 1029 |
"metadata": {
|
| 1030 |
"id": "OhM41SDzIQdI"
|
|
|
|
| 1042 |
"name": "stdout",
|
| 1043 |
"output_type": "stream",
|
| 1044 |
"text": [
|
| 1045 |
+
"* Running on local URL: http://127.0.0.1:7863\n",
|
| 1046 |
+
"* Running on public URL: https://ae64ffe4a3e6a77910.gradio.live\n",
|
| 1047 |
"\n",
|
| 1048 |
"This share link expires in 1 week. For free permanent hosting and GPU upgrades, run `gradio deploy` from the terminal in the working directory to deploy to Hugging Face Spaces (https://huggingface.co/spaces)\n"
|
| 1049 |
]
|
|
|
|
| 1051 |
{
|
| 1052 |
"data": {
|
| 1053 |
"text/html": [
|
| 1054 |
+
"<div><iframe src=\"https://ae64ffe4a3e6a77910.gradio.live\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
|
| 1055 |
],
|
| 1056 |
"text/plain": [
|
| 1057 |
"<IPython.core.display.HTML object>"
|
|
|
|
| 1064 |
"data": {
|
| 1065 |
"text/plain": []
|
| 1066 |
},
|
| 1067 |
+
"execution_count": 52,
|
| 1068 |
"metadata": {},
|
| 1069 |
"output_type": "execute_result"
|
| 1070 |
}
|