bstraehle commited on
Commit
5614ed2
1 Parent(s): e38fd6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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 = 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