Update app.py
Browse files
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):
|