Spaces:
Running
Running
Update rag.py
Browse files
rag.py
CHANGED
@@ -42,7 +42,7 @@ class RAG:
|
|
42 |
api_key=os.getenv("HF_TOKEN")
|
43 |
)
|
44 |
|
45 |
-
query = f"{context}\n\n{instruction}"
|
46 |
#sys_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'. <|endoftext|>"
|
47 |
|
48 |
chat_completion = client.chat.completions.create(
|
|
|
42 |
api_key=os.getenv("HF_TOKEN")
|
43 |
)
|
44 |
|
45 |
+
query = f"Context:\n{context}\n\nQuestion:\n{instruction}"
|
46 |
#sys_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'. <|endoftext|>"
|
47 |
|
48 |
chat_completion = client.chat.completions.create(
|