bstraehle commited on
Commit
e6f4b15
1 Parent(s): 9bf30b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -107,7 +107,8 @@ def document_retrieval_mongodb(llm, prompt):
107
 
108
  def llm_chain(llm, prompt):
109
  llm_chain = LLMChain(llm = llm, prompt = LLM_CHAIN_PROMPT, verbose = False)
110
- completion = llm_chain.run({"question": prompt})
 
111
  return completion, llm_chain
112
 
113
  def rag_chain(llm, prompt, db):
 
107
 
108
  def llm_chain(llm, prompt):
109
  llm_chain = LLMChain(llm = llm, prompt = LLM_CHAIN_PROMPT, verbose = False)
110
+ #completion = llm_chain.run({"question": prompt})
111
+ completion = llm_chain.generate([{"question": prompt}])
112
  return completion, llm_chain
113
 
114
  def rag_chain(llm, prompt, db):