Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
344 |
-
|
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 |
|