Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def chat_no_rag(question):
|
|
48 |
|
49 |
def chat_with_rag(question, context_chunks):
|
50 |
context = "\n".join(context_chunks)
|
51 |
-
|
52 |
|
53 |
response = client.chat.completions.create(
|
54 |
model="gpt-3.5-turbo",
|
|
|
48 |
|
49 |
def chat_with_rag(question, context_chunks):
|
50 |
context = "\n".join(context_chunks)
|
51 |
+
prompt = f"Ayudate en el siguiente contexto para responder la pregunta y usa tus conocimientos en caso de ser necesario: \n\n{context}\n\nPregunta: {question}"
|
52 |
|
53 |
response = client.chat.completions.create(
|
54 |
model="gpt-3.5-turbo",
|