Spaces:
Sleeping
Sleeping
Ahmet Kaan Sever
commited on
Commit
·
f17e8ce
1
Parent(s):
fba0349
Changed system prompt to user
Browse files
src/deepeval/base_task.py
CHANGED
@@ -142,11 +142,11 @@ class BaseTask(ABC):
|
|
142 |
self.model.config.pad_token_id = self.tokenizer.eos_token_id
|
143 |
|
144 |
chat = [
|
145 |
-
{"role": "
|
146 |
{"role": "assistant", "content": "I am here to help you with any questions you may have."},
|
147 |
{"role": "user", "content": prompt},
|
148 |
]
|
149 |
-
|
150 |
formatted_chat = self.tokenizer.apply_chat_template(
|
151 |
chat,
|
152 |
tokenize=False,
|
|
|
142 |
self.model.config.pad_token_id = self.tokenizer.eos_token_id
|
143 |
|
144 |
chat = [
|
145 |
+
{"role": "user", "content": "You are a helpful AI assistant."},
|
146 |
{"role": "assistant", "content": "I am here to help you with any questions you may have."},
|
147 |
{"role": "user", "content": prompt},
|
148 |
]
|
149 |
+
|
150 |
formatted_chat = self.tokenizer.apply_chat_template(
|
151 |
chat,
|
152 |
tokenize=False,
|