Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -505,6 +505,7 @@ def generate_text (prompt, chatbot, history, rag_option, model_option, openai_ap
|
|
| 505 |
if (rag_option == "An"):
|
| 506 |
print("LLM aufrufen mit RAG: ...........")
|
| 507 |
result = rag_chain(llm, history_text_und_prompt, db) #für hugchat noch kein rag möglich...
|
|
|
|
| 508 |
#result = rag_chain2(history_text_und_prompt, db, 5)
|
| 509 |
print("result regchain")
|
| 510 |
print(result)
|
|
|
|
| 505 |
if (rag_option == "An"):
|
| 506 |
print("LLM aufrufen mit RAG: ...........")
|
| 507 |
result = rag_chain(llm, history_text_und_prompt, db) #für hugchat noch kein rag möglich...
|
| 508 |
+
#weitere Möglichkeit für Rag-Chain - dann auch für HF Modelle möglich, da kein llm in Langchain übergeben werden muss...
|
| 509 |
#result = rag_chain2(history_text_und_prompt, db, 5)
|
| 510 |
print("result regchain")
|
| 511 |
print(result)
|