jgrivolla commited on
Commit
bbc05f7
·
verified ·
1 Parent(s): d046802

Update rag.py

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