Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -110,15 +110,16 @@ class DocumentRetrievalAndGeneration:
|
|
110 |
{"role": "user", "content": f"""
|
111 |
I need you to answer my question and provide related information in a specific format.
|
112 |
I have provided five relatable json files {content}, choose the most suitable chunks for answering the query.
|
113 |
-
RETURN ONLY SOLUTION
|
114 |
-
|
|
|
115 |
|
116 |
Here's my question:
|
117 |
Query: {query}
|
118 |
Solution==>
|
119 |
"""}
|
120 |
]
|
121 |
-
|
122 |
input_ids = self.tokenizer.apply_chat_template(conversation, return_tensors="pt").to(self.model.device)
|
123 |
|
124 |
start_time = datetime.now()
|
|
|
110 |
{"role": "user", "content": f"""
|
111 |
I need you to answer my question and provide related information in a specific format.
|
112 |
I have provided five relatable json files {content}, choose the most suitable chunks for answering the query.
|
113 |
+
RETURN ONLY SOLUTION without additional comments, sign-offs, or extra phrases. Be direct and to the point
|
114 |
+
. IF THERE IS NO ANSWER RELATABLE IN RETRIEVED CHUNKS, RETURN "NO SOLUTION AVAILABLE".
|
115 |
+
|
116 |
|
117 |
Here's my question:
|
118 |
Query: {query}
|
119 |
Solution==>
|
120 |
"""}
|
121 |
]
|
122 |
+
#Include a final answer without additional comments, sign-offs, or extra phrases. Be direct and to the point.
|
123 |
input_ids = self.tokenizer.apply_chat_template(conversation, return_tensors="pt").to(self.model.device)
|
124 |
|
125 |
start_time = datetime.now()
|