Skip to content

Commit a020f06

Browse files
author
stlc-bot
committed
Add low, medium and high auto mode complexity levels (#34079)
Stainless-Generated-From: d5c2cfe9829a00183aa4ed1aaef48b7f98e40849
1 parent fa22954 commit a020f06

2 files changed

Lines changed: 30 additions & 12 deletions

File tree

‎llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/configurations/ParseV2Parameters.kt‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7700,8 +7700,9 @@ private constructor(
77007700
)
77017701

77027702
/**
7703-
* Trigger on pages at least this complex. high: pages whose tables look wrong. medium:
7704-
* also pages that are mostly scanned text.
7703+
* Trigger on pages with at least 100 source words. low: table warnings or at least 50%
7704+
* OCR words. medium: at least 3 table concerns or missed tables. high: medium plus at
7705+
* least 2 detected tables.
77057706
*
77067707
* @throws LlamaCloudInvalidDataException if the JSON field has an unexpected type (e.g.
77077708
* if the server responded with an unexpected value).
@@ -8764,8 +8765,9 @@ private constructor(
87648765
)
87658766

87668767
/**
8767-
* Trigger on pages at least this complex. high: pages whose tables look wrong.
8768-
* medium: also pages that are mostly scanned text.
8768+
* Trigger on pages with at least 100 source words. low: table warnings or at least
8769+
* 50% OCR words. medium: at least 3 table concerns or missed tables. high: medium
8770+
* plus at least 2 detected tables.
87698771
*/
87708772
fun minComplexity(minComplexity: MinComplexity?) =
87718773
minComplexity(JsonField.ofNullable(minComplexity))
@@ -12900,8 +12902,9 @@ private constructor(
1290012902
}
1290112903

1290212904
/**
12903-
* Trigger on pages at least this complex. high: pages whose tables look wrong. medium:
12904-
* also pages that are mostly scanned text.
12905+
* Trigger on pages with at least 100 source words. low: table warnings or at least 50%
12906+
* OCR words. medium: at least 3 table concerns or missed tables. high: medium plus at
12907+
* least 2 detected tables.
1290512908
*/
1290612909
class MinComplexity
1290712910
@JsonCreator
@@ -12921,6 +12924,8 @@ private constructor(
1292112924

1292212925
@JvmField val HIGH = of("high")
1292312926

12927+
@JvmField val LOW = of("low")
12928+
1292412929
@JvmField val MEDIUM = of("medium")
1292512930

1292612931
@JvmStatic fun of(value: String) = MinComplexity(JsonField.of(value))
@@ -12929,6 +12934,7 @@ private constructor(
1292912934
/** An enum containing [MinComplexity]'s known values. */
1293012935
enum class Known {
1293112936
HIGH,
12937+
LOW,
1293212938
MEDIUM,
1293312939
}
1293412940

@@ -12944,6 +12950,7 @@ private constructor(
1294412950
*/
1294512951
enum class Value {
1294612952
HIGH,
12953+
LOW,
1294712954
MEDIUM,
1294812955
/**
1294912956
* An enum member indicating that [MinComplexity] was instantiated with an
@@ -12962,6 +12969,7 @@ private constructor(
1296212969
fun value(): Value =
1296312970
when (this) {
1296412971
HIGH -> Value.HIGH
12972+
LOW -> Value.LOW
1296512973
MEDIUM -> Value.MEDIUM
1296612974
else -> Value._UNKNOWN
1296712975
}
@@ -12978,6 +12986,7 @@ private constructor(
1297812986
fun known(): Known =
1297912987
when (this) {
1298012988
HIGH -> Known.HIGH
12989+
LOW -> Known.LOW
1298112990
MEDIUM -> Known.MEDIUM
1298212991
else ->
1298312992
throw LlamaCloudInvalidDataException("Unknown MinComplexity: $value")

‎llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingCreateParams.kt‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8905,8 +8905,9 @@ private constructor(
89058905
)
89068906

89078907
/**
8908-
* Trigger on pages at least this complex. high: pages whose tables look wrong. medium:
8909-
* also pages that are mostly scanned text.
8908+
* Trigger on pages with at least 100 source words. low: table warnings or at least 50%
8909+
* OCR words. medium: at least 3 table concerns or missed tables. high: medium plus at
8910+
* least 2 detected tables.
89108911
*
89118912
* @throws LlamaCloudInvalidDataException if the JSON field has an unexpected type (e.g.
89128913
* if the server responded with an unexpected value).
@@ -9969,8 +9970,9 @@ private constructor(
99699970
)
99709971

99719972
/**
9972-
* Trigger on pages at least this complex. high: pages whose tables look wrong.
9973-
* medium: also pages that are mostly scanned text.
9973+
* Trigger on pages with at least 100 source words. low: table warnings or at least
9974+
* 50% OCR words. medium: at least 3 table concerns or missed tables. high: medium
9975+
* plus at least 2 detected tables.
99749976
*/
99759977
fun minComplexity(minComplexity: MinComplexity?) =
99769978
minComplexity(JsonField.ofNullable(minComplexity))
@@ -14105,8 +14107,9 @@ private constructor(
1410514107
}
1410614108

1410714109
/**
14108-
* Trigger on pages at least this complex. high: pages whose tables look wrong. medium:
14109-
* also pages that are mostly scanned text.
14110+
* Trigger on pages with at least 100 source words. low: table warnings or at least 50%
14111+
* OCR words. medium: at least 3 table concerns or missed tables. high: medium plus at
14112+
* least 2 detected tables.
1411014113
*/
1411114114
class MinComplexity
1411214115
@JsonCreator
@@ -14126,6 +14129,8 @@ private constructor(
1412614129

1412714130
@JvmField val HIGH = of("high")
1412814131

14132+
@JvmField val LOW = of("low")
14133+
1412914134
@JvmField val MEDIUM = of("medium")
1413014135

1413114136
@JvmStatic fun of(value: String) = MinComplexity(JsonField.of(value))
@@ -14134,6 +14139,7 @@ private constructor(
1413414139
/** An enum containing [MinComplexity]'s known values. */
1413514140
enum class Known {
1413614141
HIGH,
14142+
LOW,
1413714143
MEDIUM,
1413814144
}
1413914145

@@ -14149,6 +14155,7 @@ private constructor(
1414914155
*/
1415014156
enum class Value {
1415114157
HIGH,
14158+
LOW,
1415214159
MEDIUM,
1415314160
/**
1415414161
* An enum member indicating that [MinComplexity] was instantiated with an
@@ -14167,6 +14174,7 @@ private constructor(
1416714174
fun value(): Value =
1416814175
when (this) {
1416914176
HIGH -> Value.HIGH
14177+
LOW -> Value.LOW
1417014178
MEDIUM -> Value.MEDIUM
1417114179
else -> Value._UNKNOWN
1417214180
}
@@ -14183,6 +14191,7 @@ private constructor(
1418314191
fun known(): Known =
1418414192
when (this) {
1418514193
HIGH -> Known.HIGH
14194+
LOW -> Known.LOW
1418614195
MEDIUM -> Known.MEDIUM
1418714196
else ->
1418814197
throw LlamaCloudInvalidDataException("Unknown MinComplexity: $value")

0 commit comments

Comments
 (0)