Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -245,7 +245,7 @@ def create_vector_database_ESG():
|
|
245 |
#len(docs)
|
246 |
print(f"length of documents loaded: {len(documents)}")
|
247 |
print(f"total number of document chunks generated :{len(docs)}")
|
248 |
-
persist_directory = "./
|
249 |
embed_model = HuggingFaceEmbeddings()
|
250 |
|
251 |
vs = Chroma.from_documents(
|
@@ -278,7 +278,7 @@ def create_vector_database_financials():
|
|
278 |
docs = text_splitter.split_documents(documents)
|
279 |
|
280 |
# Add a persist directory for Chroma DB
|
281 |
-
persist_directory = "./
|
282 |
embed_model = HuggingFaceEmbeddings()
|
283 |
|
284 |
# Initialize Chroma with persistence
|
|
|
245 |
#len(docs)
|
246 |
print(f"length of documents loaded: {len(documents)}")
|
247 |
print(f"total number of document chunks generated :{len(docs)}")
|
248 |
+
persist_directory = "./chroma_db_LT" # Specify directory for Chroma persistence
|
249 |
embed_model = HuggingFaceEmbeddings()
|
250 |
|
251 |
vs = Chroma.from_documents(
|
|
|
278 |
docs = text_splitter.split_documents(documents)
|
279 |
|
280 |
# Add a persist directory for Chroma DB
|
281 |
+
persist_directory = "./chroma_db_fin" # Specify directory for persistence
|
282 |
embed_model = HuggingFaceEmbeddings()
|
283 |
|
284 |
# Initialize Chroma with persistence
|