Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit 742f044

Browse files
committed
Update build_index to accomodate API changes
1 parent 4b42c24 commit 742f044

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

notebooks/1-Quickstart.ipynb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,14 @@
240240
" This function kicks off a job that builds a knowledge graph index from files located in a blob storage container.\n",
241241
" \"\"\"\n",
242242
" url = endpoint + \"/index\"\n",
243-
" request = {\"storage_name\": storage_name, \"index_name\": index_name}\n",
244-
" return requests.post(url, params=request, headers=headers)\n",
243+
" return requests.post(\n",
244+
" url,\n",
245+
" params={\n",
246+
" \"index_container_name\": index_name,\n",
247+
" \"storage_container_name\": storage_name,\n",
248+
" },\n",
249+
" headers=headers,\n",
250+
" )\n",
245251
"\n",
246252
"\n",
247253
"response = build_index(storage_name=storage_name, index_name=index_name)\n",

0 commit comments

Comments
 (0)