chore: update starter tutorial to properly use sdk search output
This commit is contained in:
parent
8f008a5899
commit
925615b1ce
1 changed files with 13 additions and 3 deletions
16
notebooks/tutorial_stripped.ipynb
vendored
16
notebooks/tutorial_stripped.ipynb
vendored
|
|
@ -226,13 +226,23 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"result = await cognee.add(\n",
|
"await cognee.add(\n",
|
||||||
" \"file://data/guido_contributions.json\",\n",
|
" \"file://data/guido_contributions.json\",\n",
|
||||||
" node_set=[\"guido_data\"]\n",
|
" node_set=[\"guido_data\"]\n",
|
||||||
")\n",
|
")\n",
|
||||||
"await cognee.cognify(temporal_cognify=True)\n",
|
"await cognee.cognify(temporal_cognify=True)"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"id": "e5dde604",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"# Now that we've added data, let's search\n",
|
||||||
"results = await cognee.search(\"Show me commits\")\n",
|
"results = await cognee.search(\"Show me commits\")\n",
|
||||||
"print(results[0])"
|
"print(results)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue