arjunanand13 commited on
Commit
f56c61e
·
verified ·
1 Parent(s): 611f263

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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. IF THERE IS NO ANSWER RELATABLE IN RETRIEVED CHUNKS, RETURN "NO SOLUTION AVAILABLE".
114
- Include a final answer without additional comments, sign-offs, or extra phrases. Be direct and to the point.
 
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()