Update app.py
Browse files
app.py
CHANGED
@@ -139,8 +139,8 @@ def invoke(openai_api_key, rag_option, prompt):
|
|
139 |
openai_api_key = openai_api_key,
|
140 |
temperature = 0)
|
141 |
if (rag_option == "Chroma"):
|
142 |
-
splits = document_loading_splitting()
|
143 |
-
document_storage_chroma(splits)
|
144 |
db = document_retrieval_chroma(llm, prompt)
|
145 |
result = rag_chain(llm, prompt, db)
|
146 |
elif (rag_option == "MongoDB"):
|
|
|
139 |
openai_api_key = openai_api_key,
|
140 |
temperature = 0)
|
141 |
if (rag_option == "Chroma"):
|
142 |
+
#splits = document_loading_splitting()
|
143 |
+
#document_storage_chroma(splits)
|
144 |
db = document_retrieval_chroma(llm, prompt)
|
145 |
result = rag_chain(llm, prompt, db)
|
146 |
elif (rag_option == "MongoDB"):
|