You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -52,32 +46,25 @@ class DecompositionType(Enum):
52
46
53
47
# Example input data
54
48
example1_input=ClaimDecompositionInput(
55
-
response="Charles Babbage was a French mathematician, philosopher, and food critic.",
56
-
sentences=[
57
-
"Charles Babbage was a French mathematician, philosopher, and food critic."
58
-
],
49
+
response="Charles Babbage was a French mathematician, philosopher, and food critic."
59
50
)
60
51
61
-
# Define the examples using the new structure
52
+
# Define the examples using the Pydantic structure
62
53
claim_decomposition_examples= {
63
54
DecompositionType.LOW_ATOMICITY_LOW_COVERAGE: [
64
55
(
65
56
example1_input,
66
57
ClaimDecompositionOutput(
67
-
decomposed_claims=[
68
-
["Charles Babbage was a mathematician and philosopher."]
69
-
]
58
+
claims=["Charles Babbage was a mathematician and philosopher."]
70
59
),
71
60
)
72
61
],
73
62
DecompositionType.LOW_ATOMICITY_HIGH_COVERAGE: [
74
63
(
75
64
example1_input,
76
65
ClaimDecompositionOutput(
77
-
decomposed_claims=[
78
-
[
79
-
"Charles Babbage was a French mathematician, philosopher, and food critic."
80
-
]
66
+
claims=[
67
+
"Charles Babbage was a French mathematician, philosopher, and food critic."
81
68
]
82
69
),
83
70
)
@@ -86,9 +73,9 @@ class DecompositionType(Enum):
86
73
(
87
74
example1_input,
88
75
ClaimDecompositionOutput(
89
-
decomposed_claims=[
90
-
["Charles Babbage was a mathematician."],
91
-
["Charles Babbage was a philosopher."],
76
+
claims=[
77
+
"Charles Babbage was a mathematician.",
78
+
"Charles Babbage was a philosopher.",
92
79
]
93
80
),
94
81
)
@@ -97,11 +84,11 @@ class DecompositionType(Enum):
97
84
(
98
85
example1_input,
99
86
ClaimDecompositionOutput(
100
-
decomposed_claims=[
101
-
["Charles Babbage was a mathematician."],
102
-
["Charles Babbage was a philosopher."],
103
-
["Charles Babbage was a food critic."],
104
-
["Charles Babbage was French."],
87
+
claims=[
88
+
"Charles Babbage was a mathematician.",
89
+
"Charles Babbage was a philosopher.",
90
+
"Charles Babbage was a food critic.",
91
+
"Charles Babbage was French.",
105
92
]
106
93
),
107
94
)
@@ -110,23 +97,17 @@ class DecompositionType(Enum):
110
97
111
98
# Example input data with two sentences
112
99
example2_input=ClaimDecompositionInput(
113
-
response="Albert Einstein was a German theoretical physicist. He developed the theory of relativity and also contributed to the development of quantum mechanics.",
114
-
sentences=[
115
-
"Albert Einstein was a German theoretical physicist.",
116
-
"He developed the theory of relativity and also contributed to the development of quantum mechanics.",
117
-
],
100
+
response="Albert Einstein was a German theoretical physicist. He developed the theory of relativity and also contributed to the development of quantum mechanics."
118
101
)
119
102
120
103
# Adding examples to the dictionary with different decomposition types
0 commit comments