Spaces:
Sleeping
Sleeping
gaia dataset val
Browse files- agent.py +1 -4
- setup_actions.ipynb +2 -3
agent.py
CHANGED
|
@@ -100,10 +100,7 @@ embeddings = HuggingFaceEmbeddings(
|
|
| 100 |
) # dim=768
|
| 101 |
|
| 102 |
# Load the GAIA validation dataset
|
| 103 |
-
dataset = load_dataset("gaia-benchmark/GAIA", name="2023_level1", split="validation")
|
| 104 |
-
|
| 105 |
-
# Prepare the embeddings model
|
| 106 |
-
embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
|
| 107 |
|
| 108 |
# Extract questions and their answers
|
| 109 |
documents = []
|
|
|
|
| 100 |
) # dim=768
|
| 101 |
|
| 102 |
# Load the GAIA validation dataset
|
| 103 |
+
dataset = load_dataset("gaia-benchmark/GAIA", name="2023_level1", split="validation", trust_remote_code=True, cache_dir = "ragdata")
|
|
|
|
|
|
|
|
|
|
| 104 |
|
| 105 |
# Extract questions and their answers
|
| 106 |
documents = []
|
setup_actions.ipynb
CHANGED
|
@@ -291,7 +291,7 @@
|
|
| 291 |
},
|
| 292 |
{
|
| 293 |
"cell_type": "code",
|
| 294 |
-
"execution_count":
|
| 295 |
"id": "521be8df",
|
| 296 |
"metadata": {},
|
| 297 |
"outputs": [
|
|
@@ -311,8 +311,7 @@
|
|
| 311 |
"from langchain.schema import Document\n",
|
| 312 |
"\n",
|
| 313 |
"# Load the GAIA validation dataset\n",
|
| 314 |
-
"dataset = load_dataset(\"gaia-benchmark/GAIA\", name=\"2023_level1\", split=\"validation\")\n",
|
| 315 |
-
"\n",
|
| 316 |
"# Prepare the embeddings model\n",
|
| 317 |
"embeddings = HuggingFaceEmbeddings(model_name=\"all-MiniLM-L6-v2\")\n",
|
| 318 |
"\n",
|
|
|
|
| 291 |
},
|
| 292 |
{
|
| 293 |
"cell_type": "code",
|
| 294 |
+
"execution_count": null,
|
| 295 |
"id": "521be8df",
|
| 296 |
"metadata": {},
|
| 297 |
"outputs": [
|
|
|
|
| 311 |
"from langchain.schema import Document\n",
|
| 312 |
"\n",
|
| 313 |
"# Load the GAIA validation dataset\n",
|
| 314 |
+
"dataset = load_dataset(\"gaia-benchmark/GAIA\", name=\"2023_level1\", split=\"validation\", trust_remote_code=True, cache_dir = \"ragdata\")\n",
|
|
|
|
| 315 |
"# Prepare the embeddings model\n",
|
| 316 |
"embeddings = HuggingFaceEmbeddings(model_name=\"all-MiniLM-L6-v2\")\n",
|
| 317 |
"\n",
|