Update app.py
Browse files
app.py
CHANGED
@@ -49,9 +49,8 @@ def invoke(openai_api_key, use_rag, prompt):
|
|
49 |
result = rag_chain({"query": prompt})
|
50 |
result = result["result"]
|
51 |
else:
|
52 |
-
chain = LLMChain(llm = llm, prompt =
|
53 |
result = chain.run({"question": prompt})
|
54 |
-
#print(result)
|
55 |
return result
|
56 |
|
57 |
description = """<strong>Overview:</strong> The app demonstrates how to use a Large Language Model (LLM) with Retrieval Augmented Generation (RAG) on external data
|
|
|
49 |
result = rag_chain({"query": prompt})
|
50 |
result = result["result"]
|
51 |
else:
|
52 |
+
chain = LLMChain(llm = llm, prompt = CHAIN_PROMPT)
|
53 |
result = chain.run({"question": prompt})
|
|
|
54 |
return result
|
55 |
|
56 |
description = """<strong>Overview:</strong> The app demonstrates how to use a Large Language Model (LLM) with Retrieval Augmented Generation (RAG) on external data
|