Update README.md
Browse files
README.md
CHANGED
@@ -24,9 +24,9 @@ import torch.nn.functional as F
|
|
24 |
from transformers import AutoTokenizer, AutoModel
|
25 |
|
26 |
# Each query needs to be accompanied by an corresponding instruction describing the task.
|
27 |
-
task_name_to_instruct = {"example": "Given a question, retrieve passages that answer the question
|
28 |
|
29 |
-
query_prefix = task_name_to_instruct["example"] + "\
|
30 |
queries = [
|
31 |
'are judo throws allowed in wrestling?',
|
32 |
'how to become a radiology technician in michigan?'
|
|
|
24 |
from transformers import AutoTokenizer, AutoModel
|
25 |
|
26 |
# Each query needs to be accompanied by an corresponding instruction describing the task.
|
27 |
+
task_name_to_instruct = {"example": "Given a question, retrieve passages that answer the question",}
|
28 |
|
29 |
+
query_prefix = task_name_to_instruct["example"] + "\nquestion: "
|
30 |
queries = [
|
31 |
'are judo throws allowed in wrestling?',
|
32 |
'how to become a radiology technician in michigan?'
|