alexkueck commited on
Commit
a471be0
1 Parent(s): 10847b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -324,6 +324,7 @@ def generate_text (prompt, chatbot, history, rag_option, model_option, openai_ap
324
  splits = document_loading_splitting()
325
  document_storage_chroma(splits)
326
  db = document_retrieval_chroma(llm, history_text_und_prompt)
 
327
  print("LLM aufrufen mit RAG: ...........")
328
  result = rag_chain(llm, history_text_und_prompt, db)
329
  #elif (rag_option == "MongoDB"):
@@ -332,6 +333,7 @@ def generate_text (prompt, chatbot, history, rag_option, model_option, openai_ap
332
  #db = document_retrieval_mongodb(llm, history_text_und_prompt)
333
  #result = rag_chain(llm, history_text_und_prompt, db)
334
  else:
 
335
  print("LLM aufrufen ohne RAG: ...........")
336
  result = llm_chain(llm, history_text_und_prompt)
337
 
 
324
  splits = document_loading_splitting()
325
  document_storage_chroma(splits)
326
  db = document_retrieval_chroma(llm, history_text_und_prompt)
327
+ splittet = True
328
  print("LLM aufrufen mit RAG: ...........")
329
  result = rag_chain(llm, history_text_und_prompt, db)
330
  #elif (rag_option == "MongoDB"):
 
333
  #db = document_retrieval_mongodb(llm, history_text_und_prompt)
334
  #result = rag_chain(llm, history_text_und_prompt, db)
335
  else:
336
+ splittet = False
337
  print("LLM aufrufen ohne RAG: ...........")
338
  result = llm_chain(llm, history_text_und_prompt)
339