Skip to content

Persist database regardless of notebook or script - #3

Open
bkamapantula wants to merge 1 commit into
hwchase17:masterfrom
bkamapantula:master
Open

Persist database regardless of notebook or script#3
bkamapantula wants to merge 1 commit into
hwchase17:masterfrom
bkamapantula:master

Conversation

@bkamapantula

Copy link
Copy Markdown

persist() is required even if it's invoked in a script apart from in a notebook.

Without this, an error is thrown

chromadb.errors.NoIndexException: Index is not initialized

@sifatulrabbi

Copy link
Copy Markdown

When I ran this as a script it persisted the information without calling the vectordb.persis().

python 3.11.5
langchain==0.0.310
chromadb==0.4.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants