Skip to content

Commit

Permalink
Merge pull request #7 from myscale/qians/fix-nbclean-ci
Browse files Browse the repository at this point in the history
run nb-clean for MyScaleIndexDemo.ipynb
  • Loading branch information
mpskex authored Oct 19, 2023
2 parents 9eda572 + b4c182f commit ba26830
Showing 1 changed file with 8 additions and 29 deletions.
37 changes: 8 additions & 29 deletions docs/examples/vector_stores/MyScaleIndexDemo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,7 @@
"execution_count": null,
"id": "68cbd239-880e-41a3-98d8-dbb3fab55431",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Document ID: a5f2737c-ed18-4e5d-ab9a-75955edb816d\n",
"Number of Documents: 1\n"
]
}
],
"outputs": [],
"source": [
"# load documents\n",
"documents = SimpleDirectoryReader(\"../data/paul_graham\").load_data()\n",
Expand All @@ -109,15 +100,7 @@
"execution_count": null,
"id": "4febd54a",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"../data/paul_graham/paul_graham_essay.txt\n"
]
}
],
"outputs": [],
"source": [
"loader = SimpleDirectoryReader(\"../data/paul_graham\")\n",
"documents = loader.load_data()\n",
Expand Down Expand Up @@ -182,26 +165,22 @@
},
{
"cell_type": "markdown",
"id": "a732d16f0a29f8ab",
"metadata": {},
"source": [
"#### Clear All Indexes"
],
"metadata": {
"collapsed": false
},
"id": "a732d16f0a29f8ab"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "552c203fd054d771",
"metadata": {},
"outputs": [],
"source": [
"for document in documents:\n",
" index.delete_ref_doc(document.doc_id)"
],
"metadata": {
"collapsed": false
},
"id": "552c203fd054d771"
]
}
],
"metadata": {
Expand Down

0 comments on commit ba26830

Please sign in to comment.