Update app.py
Browse files
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 |
-
|
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 |
|