Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -340,7 +340,8 @@ 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 |
|
|
|
|
| 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 |
+
llm_instruction = """Convert the order form into structured JSON format fir for consumption by Order management system"""
|
| 345 |
response = llm.invoke(llm_instruction + " " + str(text) + " " + user_input)
|
| 346 |
# response = llm.invoke(str(text) + " " + user_input)
|
| 347 |
|