Spanicin commited on
Commit
bf2c469
·
verified ·
1 Parent(s): e0e776a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -340,9 +340,9 @@ def query_extracted_data():
340
  result = process_results[process_id]
341
  text = result["response"]
342
  user_input = request.form['user_question']
343
- # llm_instruction = """You are an AI assistant that strictly follows the given data and information without making assumptions, performing calculations, or using algorithms to infer values. Retrieve answers only from explicitly provided data."""
344
- # response = llm.invoke(llm_instruction + " " + str(text) + " " + user_input)
345
- response = llm.invoke(str(text) + " " + user_input)
346
 
347
  return jsonify({'response': response.content.strip()})
348
 
 
340
  result = process_results[process_id]
341
  text = result["response"]
342
  user_input = request.form['user_question']
343
+ llm_instruction = """You are an AI assistant that strictly follows the given data and information without making assumptions, performing calculations, or using algorithms to infer values. Retrieve answers only from explicitly provided data."""
344
+ response = llm.invoke(llm_instruction + " " + str(text) + " " + user_input)
345
+ # response = llm.invoke(str(text) + " " + user_input)
346
 
347
  return jsonify({'response': response.content.strip()})
348