Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -44,8 +44,8 @@ def chat_no_rag(question):
|
|
44 |
def chat_with_rag(question, context_chunks):
|
45 |
context = "\n".join(context_chunks)
|
46 |
prompt = (
|
47 |
-
"Usa el siguiente contexto como referencia para responder la pregunta.
|
48 |
-
|
49 |
f"Contexto:\n{context}\n\n"
|
50 |
f"Pregunta: {question}\nRespuesta:")
|
51 |
response = client.chat.completions.create(
|
|
|
44 |
def chat_with_rag(question, context_chunks):
|
45 |
context = "\n".join(context_chunks)
|
46 |
prompt = (
|
47 |
+
"Usa el siguiente contexto como referencia para responder la pregunta.
|
48 |
+
Puedes complementar con tus propios conocimientos si es necesario.\n\n"
|
49 |
f"Contexto:\n{context}\n\n"
|
50 |
f"Pregunta: {question}\nRespuesta:")
|
51 |
response = client.chat.completions.create(
|