From 3fb4997ad8fab4395e1070ec169d4a73a54b855f Mon Sep 17 00:00:00 2001 From: Bhanu K Date: Tue, 4 Apr 2023 02:51:17 +0530 Subject: [PATCH] Persist database regardless of notebook or script context (#2351) `persist()` is required even if it's invoked in a script. Without this, an error is thrown: ``` chromadb.errors.NoIndexException: Index is not initialized ``` --- docs/modules/indexes/vectorstores/examples/chroma.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/modules/indexes/vectorstores/examples/chroma.ipynb b/docs/modules/indexes/vectorstores/examples/chroma.ipynb index 6474c99a2fc..0f1fd6938c6 100644 --- a/docs/modules/indexes/vectorstores/examples/chroma.ipynb +++ b/docs/modules/indexes/vectorstores/examples/chroma.ipynb @@ -170,12 +170,13 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "f568a322", "metadata": {}, "source": [ "### Persist the Database\n", - "In a notebook, we should call persist() to ensure the embeddings are written to disk. This isn't necessary in a script - the database will be automatically persisted when the client object is destroyed." + "We should call persist() to ensure the embeddings are written to disk." ] }, {