Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -283,14 +283,14 @@ def split_into_chunks(texts, references, chunk_size, chunk_overlap):
|
|
| 283 |
|
| 284 |
# Setup Vectorstore
|
| 285 |
#def setup_vectorstore(chunks, model_name):
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
|
| 295 |
|
| 296 |
def setup_vectorstore(chunks, model_name):
|
|
|
|
| 283 |
|
| 284 |
# Setup Vectorstore
|
| 285 |
#def setup_vectorstore(chunks, model_name):
|
| 286 |
+
# print("Start setup_vectorstore_function")
|
| 287 |
+
# embedding_model = HuggingFaceEmbeddings(model_name=model_name)
|
| 288 |
+
|
| 289 |
+
# vectorstore = Chroma.from_documents(chunks, embedding=embedding_model, persist_directory=persist_directory)
|
| 290 |
+
# vectorstore.persist()
|
| 291 |
+
# print("test1", vectorstore._persist_directory)
|
| 292 |
+
# print("test2",vectorstore.__dir__)
|
| 293 |
+
# return vectorstore
|
| 294 |
|
| 295 |
|
| 296 |
def setup_vectorstore(chunks, model_name):
|