Spaces:
Runtime error
Runtime error
captain-awesome
commited on
Commit
•
a1a6c53
1
Parent(s):
53520fe
Update app.py
Browse files
app.py
CHANGED
@@ -167,7 +167,8 @@ def create_vector_database(loaded_documents):
|
|
167 |
embeddings = HuggingFaceBgeEmbeddings(
|
168 |
model_name = "BAAI/bge-large-en"
|
169 |
)
|
170 |
-
|
|
|
171 |
# Create and persist a Chroma vector database from the chunked documents
|
172 |
db = Chroma.from_documents(
|
173 |
documents=chunked_documents,
|
|
|
167 |
embeddings = HuggingFaceBgeEmbeddings(
|
168 |
model_name = "BAAI/bge-large-en"
|
169 |
)
|
170 |
+
|
171 |
+
persist_directory = 'db'
|
172 |
# Create and persist a Chroma vector database from the chunked documents
|
173 |
db = Chroma.from_documents(
|
174 |
documents=chunked_documents,
|