Skip to content

Commit b7a7438

Browse files
Alvin RyanputraAlvin Ryanputra
Alvin Ryanputra
authored and
Alvin Ryanputra
committed
better docs, no full stop allowed in collection_name
1 parent bbbb9bc commit b7a7438

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

demo/langchain_demo.ipynb

+5-3
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@
9191
"metadata": {},
9292
"outputs": [],
9393
"source": [
94+
"# Under the hood, this becomes a SQL table. CANNOT have '.' in the name\n",
9495
"COLLECTION_NAME = \"state_of_the_union_test\"\n",
9596
"\n",
97+
"# This creates a table(or vector store). You should run this ONCE only\n",
9698
"db = IRISVector.from_documents(\n",
9799
" embedding=embeddings,\n",
98100
" documents=docs,\n",
@@ -107,7 +109,7 @@
107109
"metadata": {},
108110
"outputs": [],
109111
"source": [
110-
"# If reconnecting to the database, use this:\n",
112+
"# Subsequent calls to reconnect to the database and make searches should use this. Do not run from_documents every time.TimeoutError \n",
111113
"\n",
112114
"# db = IRISVector(\n",
113115
"# embedding_function=embeddings,\n",
@@ -123,7 +125,7 @@
123125
"metadata": {},
124126
"outputs": [],
125127
"source": [
126-
"# To add documents to existing vector store:\n",
128+
"# To add documents to an EXISTING vector store:\n",
127129
"\n",
128130
"# db.add_documents(docs)"
129131
]
@@ -288,7 +290,7 @@
288290
"name": "python",
289291
"nbconvert_exporter": "python",
290292
"pygments_lexer": "ipython3",
291-
"version": "3.10.13"
293+
"version": "3.10.14"
292294
}
293295
},
294296
"nbformat": 4,

0 commit comments

Comments
 (0)