DD8943 commited on
Commit
7851336
·
verified ·
1 Parent(s): b62cc35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- "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(
 
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(