Update app.py
Browse files
app.py
CHANGED
@@ -124,8 +124,8 @@ def invoke(openai_api_key, rag_option, prompt):
|
|
124 |
db = document_retrieval_chroma(llm, prompt)
|
125 |
result = rag_chain(llm, prompt, db)
|
126 |
elif (rag_option == "MongoDB"):
|
127 |
-
splits = document_loading_splitting()
|
128 |
-
document_storage_mongodb(splits)
|
129 |
db = document_retrieval_mongodb(llm, prompt)
|
130 |
result = rag_chain(llm, prompt, db)
|
131 |
else:
|
|
|
124 |
db = document_retrieval_chroma(llm, prompt)
|
125 |
result = rag_chain(llm, prompt, db)
|
126 |
elif (rag_option == "MongoDB"):
|
127 |
+
#splits = document_loading_splitting()
|
128 |
+
#document_storage_mongodb(splits)
|
129 |
db = document_retrieval_mongodb(llm, prompt)
|
130 |
result = rag_chain(llm, prompt, db)
|
131 |
else:
|