Skip to content

Commit 609dae5

Browse files
UN-2954: Enable line confidence extraction in LLMWhisperer V2 (#204)
* UN-2954: Enable line confidence extraction in LLMWhisperer V2 - Add include_line_confidence parameter to LLMWhisperer V2 whisper requests - Enable confidence extraction when highlighting is enabled - Bump llmwhisperer-client to version 2.5.0 - Update requires-python to >=3.12 (required by llmwhisperer-client 2.5.0) - Bump SDK version to v0.78.2 - Update uv.lock with resolved dependencies * Update src/unstract/sdk/__init__.py Co-authored-by: Chandrasekharan M <[email protected]> Signed-off-by: Deepak K <[email protected]> --------- Signed-off-by: Deepak K <[email protected]> Co-authored-by: Chandrasekharan M <[email protected]>
1 parent b85c150 commit 609dae5

File tree

5 files changed

+861
-2160
lines changed

5 files changed

+861
-2160
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ urls = { Homepage = "https://unstract.com", "Release notes" = "https://github.co
77
license = { text = "AGPL v3" }
88
authors = [{ name = "Zipstack Inc", email = "[email protected]" }]
99
keywords = ["unstract tools-development-kit apps development-kit sdk"]
10-
requires-python = ">=3.9, <3.13"
10+
requires-python = ">=3.12, <3.13"
1111
classifiers = [
1212
"Development Status :: 4 - Beta",
1313
"Intended Audience :: Developers",
@@ -69,7 +69,7 @@ dependencies = [
6969
"httpx>=0.25.2",
7070
"pdfplumber>=0.11.2",
7171
"redis>=5.2.1",
72-
"llmwhisperer-client>=2.2.1",
72+
"llmwhisperer-client>=2.5.0",
7373
]
7474

7575
[project.optional-dependencies]

src/unstract/sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "v0.78.1"
1+
__version__ = "v0.79.0"
22

33

44
def get_sdk_version() -> str:

src/unstract/sdk/adapters/x2text/llm_whisperer_v2/src/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class WhispererConfig:
7272
WAIT_FOR_COMPLETION = "wait_for_completion"
7373
LOGGING_LEVEL = "logging_level"
7474
ADD_LINE_NOS = "add_line_nos"
75+
INCLUDE_LINE_CONFIDENCE = "include_line_confidence"
7576
EXTRACT_ALL_LINES = "extract_all_lines"
7677
LINES = "lines"
7778

src/unstract/sdk/adapters/x2text/llm_whisperer_v2/src/helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ def get_whisperer_params(
201201
WhispererDefaults.PAGE_SEPARATOR,
202202
),
203203
WhispererConfig.ADD_LINE_NOS: extra_params.enable_highlight,
204+
WhispererConfig.INCLUDE_LINE_CONFIDENCE: extra_params.enable_highlight,
204205
# Not providing default value to maintain legacy compatablity
205206
# these are optional params and identifiers for audit
206207
WhispererConfig.TAG: extra_params.tag

0 commit comments

Comments
 (0)