Spaces:
Runtime error
Runtime error
Update rag.py
Browse files
rag.py
CHANGED
|
@@ -49,7 +49,7 @@ class RAG:
|
|
| 49 |
"Content-Type": "application/json"
|
| 50 |
}
|
| 51 |
|
| 52 |
-
query = f"### Instruction\n{instruction}\n\n### Context\n{context}\n\n### Answer\n "
|
| 53 |
prompt = "You are a helpful assistant. Answer the question using only the context you are provided with. If it is not possible to do it with the context, just say 'I can't answer'. "
|
| 54 |
|
| 55 |
|
|
|
|
| 49 |
"Content-Type": "application/json"
|
| 50 |
}
|
| 51 |
|
| 52 |
+
query = f"### Instruction\n{instruction}\n\n### Context\n{context}\n\n### Answer\n<|endoftext|> "
|
| 53 |
prompt = "You are a helpful assistant. Answer the question using only the context you are provided with. If it is not possible to do it with the context, just say 'I can't answer'. "
|
| 54 |
|
| 55 |
|