Zekun Wu
commited on
Commit
·
595f661
1
Parent(s):
0955149
update
Browse files- util/evaluator.py +1 -1
util/evaluator.py
CHANGED
@@ -59,7 +59,7 @@ class evaluator:
|
|
59 |
Answer:
|
60 |
"""
|
61 |
|
62 |
-
response = self.model.invoke(evaluation_prompt,temperature=0
|
63 |
#response = """{{"Factually Correct": 0.9,"Useful": 0.85,"Context Specific": 0.8,"User Specific": 0.75,"Provides Pluralism": 0.7}}"""
|
64 |
print(response)
|
65 |
try:
|
|
|
59 |
Answer:
|
60 |
"""
|
61 |
|
62 |
+
response = self.model.invoke(evaluation_prompt,temperature=0, max_tokens=500).strip()
|
63 |
#response = """{{"Factually Correct": 0.9,"Useful": 0.85,"Context Specific": 0.8,"User Specific": 0.75,"Provides Pluralism": 0.7}}"""
|
64 |
print(response)
|
65 |
try:
|