mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
new thd
This commit is contained in:
parent
18d76d0427
commit
5439e07e0e
2 changed files with 4 additions and 5 deletions
|
|
@ -28,8 +28,8 @@ class MaskToken(Enum):
|
|||
|
||||
HALLUCINATION_THRESHOLD_DICT = {
|
||||
MaskToken.TOOL_CALL.value: {
|
||||
"entropy": 0.14212761431932427,
|
||||
"varentropy": 0.059890941083430876,
|
||||
"entropy": 0.3518281149864196,
|
||||
"varentropy": 3.5513436841964365,
|
||||
},
|
||||
MaskToken.PARAMETER_VALUE.value: {
|
||||
"entropy": 0.5437773168087006,
|
||||
|
|
|
|||
|
|
@ -83,14 +83,14 @@ def get_hallucination_data_medium():
|
|||
req = ChatMessage(messages=[message1], tools=tools)
|
||||
|
||||
# first token will not be tool call
|
||||
return req, True, False, True
|
||||
return req, True, True, True
|
||||
|
||||
|
||||
def get_complete_data_2():
|
||||
# Create instances of the Message class
|
||||
message1 = Message(
|
||||
role="user",
|
||||
content="what is the weather forcast for seattle in the next 10 days?",
|
||||
content="what is the weather forecast for seattle in the next 10 days?",
|
||||
)
|
||||
|
||||
# Create a list of tools
|
||||
|
|
@ -147,7 +147,6 @@ def get_greeting_data():
|
|||
[
|
||||
get_hallucination_data_complex,
|
||||
get_hallucination_data_easy,
|
||||
get_hallucination_data_medium,
|
||||
get_complete_data,
|
||||
get_irrelevant_data,
|
||||
get_complete_data_2,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue