nightfury commited on
Commit
0b72d27
·
verified ·
1 Parent(s): 9e54142

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,7 +79,7 @@ def query_chromadb():
79
  #embeddings = OpenAIEmbeddings()
80
  # Load Vector store from local disk
81
  vectorstore = Chroma(persist_directory=DB_DIR, embedding_function=embeddings)
82
- db2.persist()
83
 
84
  result = vectorstore.similarity_search_with_score(query="how to use AI in water conservation?", k=4)
85
 
 
79
  #embeddings = OpenAIEmbeddings()
80
  # Load Vector store from local disk
81
  vectorstore = Chroma(persist_directory=DB_DIR, embedding_function=embeddings)
82
+ vectorstore.persist()
83
 
84
  result = vectorstore.similarity_search_with_score(query="how to use AI in water conservation?", k=4)
85