Update app.py
Browse files
app.py
CHANGED
@@ -440,6 +440,16 @@ def initialize():
|
|
440 |
print("Subdirectories:", [d for d in os.listdir(os.getcwd()) if os.path.isdir(os.path.join(os.getcwd(), d))])
|
441 |
vectorstore = get_chroma_vectorstore2(EMBEDDING_MODEL_NAME)
|
442 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
443 |
initialize()
|
444 |
|
445 |
|
|
|
440 |
print("Subdirectories:", [d for d in os.listdir(os.getcwd()) if os.path.isdir(os.path.join(os.getcwd(), d))])
|
441 |
vectorstore = get_chroma_vectorstore2(EMBEDDING_MODEL_NAME)
|
442 |
|
443 |
+
|
444 |
+
current_directory = os.getcwd()
|
445 |
+
|
446 |
+
# Construct the path to the 'data' folder
|
447 |
+
data_path = os.path.join(current_directory, 'data')
|
448 |
+
|
449 |
+
texts = ["Text 1", "Text 2", "Text 3"]
|
450 |
+
|
451 |
+
vectorstore = Chroma.from_texts(texts, embedding_function=EMBEDDING_MODEL_NAME)
|
452 |
+
|
453 |
initialize()
|
454 |
|
455 |
|