You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Generate a response using general knowledge when no context is available"""
232
257
logger.info("Generating general knowledge response...")
233
258
234
-
ifself.use_cot:
235
-
prompt=f"""You are a helpful AI assistant. While I don't have specific information from my document collection about this query, I'll share what I generally know about it.
259
+
ifself.language=="es":
260
+
ifself.use_cot:
261
+
prompt=f"""Eres un asistente de IA útil. Si bien no tengo información específica de mi colección de documentos sobre esta consulta, compartiré lo que sé al respecto.
262
+
263
+
Por favor, responde a la siguiente consulta en español usando razonamiento paso a paso:
264
+
265
+
Consulta: {query}
266
+
267
+
Pensemos en esto paso a paso:"""
268
+
else:
269
+
prompt=f"""Eres un asistente de IA útil. Si bien no tengo información específica de mi colección de documentos sobre esta consulta, compartiré lo que sé al respecto.
270
+
271
+
Consulta: {query}
272
+
273
+
Respuesta:"""
274
+
else:
275
+
ifself.use_cot:
276
+
prompt=f"""You are a helpful AI assistant. While I don't have specific information from my document collection about this query, I'll share what I know about it.
236
277
237
278
Please answer the following query using chain of thought reasoning:
238
279
239
280
Query: {query}
240
281
241
282
Let's think about this step by step:"""
242
-
else:
243
-
prompt=f"""You are a helpful AI assistant. While I don't have specific information from my document collection about this query, I'll share what I generally know about it.
283
+
else:
284
+
prompt=f"""You are a helpful AI assistant. While I don't have specific information from my document collection about this query, I'll share what I know about it.
prefix="No encontré información específica en mis documentos, pero esto es lo que sé al respecto:\n\n"ifself.language=="es"else"I didn't find specific information in my documents, but here's what I know about it:\n\n"
295
+
253
296
return {
254
-
"answer": "I didn't find specific information in my documents, but here's what I know about it:\n\n"+response,
"""Generate a response using general knowledge when no context is available"""
125
-
ifself.use_cot:
126
-
template="""You are a helpful AI assistant. While I don't have specific information from my document collection about this query, I'll share what I generally know about it.
150
+
ifself.language=="es":
151
+
ifself.use_cot:
152
+
template="""Eres un asistente de IA útil. Si bien no tengo información específica de mi colección de documentos sobre esta consulta, compartiré lo que sé al respecto.
153
+
154
+
Por favor, responde a la siguiente consulta en español usando razonamiento paso a paso:
155
+
156
+
Consulta: {query}
157
+
158
+
Pensemos en esto paso a paso:"""
159
+
else:
160
+
template="""Eres un asistente de IA útil. Si bien no tengo información específica de mi colección de documentos sobre esta consulta, compartiré lo que sé al respecto.
161
+
162
+
Consulta: {query}
163
+
164
+
Respuesta:"""
165
+
else:
166
+
ifself.use_cot:
167
+
template="""You are a helpful AI assistant. While I don't have specific information from my document collection about this query, I'll share what I know about it.
127
168
128
169
Please answer the following query using chain of thought reasoning:
129
170
130
171
Query: {query}
131
172
132
173
Let's think about this step by step:"""
133
-
else:
134
-
template="""You are a helpful AI assistant. While I don't have specific information from my document collection about this query, I'll share what I generally know about it.
174
+
else:
175
+
template="""You are a helpful AI assistant. While I don't have specific information from my document collection about this query, I'll share what I know about it.
prefix="No encontré información específica en mis documentos, pero esto es lo que sé al respecto:\n\n"ifself.language=="es"else"I didn't find specific information in my documents, but here's what I know about it:\n\n"
186
+
144
187
return {
145
-
"answer": "I didn't find specific information in my documents, but here's what I know about it:\n\n"+response.content,
0 commit comments