refactor: Resolve issue with notebook after metadata refactor
Resolve issue with LlamaIndex notebook after refactor
This commit is contained in:
parent
4196a4ce89
commit
77f0b45a0d
1 changed files with 4 additions and 4 deletions
|
|
@ -118,10 +118,10 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
|
"cell_type": "code",
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
|
"execution_count": null,
|
||||||
"source": [
|
"source": [
|
||||||
"from typing import Union, BinaryIO\n",
|
"from typing import Union, BinaryIO\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
|
@ -133,7 +133,7 @@
|
||||||
")\n",
|
")\n",
|
||||||
"from cognee.modules.users.models import User\n",
|
"from cognee.modules.users.models import User\n",
|
||||||
"from cognee.modules.users.methods import get_default_user\n",
|
"from cognee.modules.users.methods import get_default_user\n",
|
||||||
"from cognee.tasks.ingestion.ingest_data_with_metadata import ingest_data_with_metadata\n",
|
"from cognee.tasks.ingestion.ingest_data import ingest_data\n",
|
||||||
"import cognee\n",
|
"import cognee\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# Create a clean slate for cognee -- reset data and system state\n",
|
"# Create a clean slate for cognee -- reset data and system state\n",
|
||||||
|
|
@ -153,7 +153,7 @@
|
||||||
" if user is None:\n",
|
" if user is None:\n",
|
||||||
" user = await get_default_user()\n",
|
" user = await get_default_user()\n",
|
||||||
"\n",
|
"\n",
|
||||||
" await ingest_data_with_metadata(data, dataset_name, user)\n",
|
" await ingest_data(data, dataset_name, user)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"await add(documents)\n",
|
"await add(documents)\n",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue