LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
UN-3189 [MISC] Add whisper_hash logging in LLMWhisperer adapter extraction (#1776)
alia53561f1c648
diff --git a/unstract/sdk1/src/unstract/sdk1/adapters/x2text/llm_whisperer_v2/src/helper.py b/unstract/sdk1/src/unstract/sdk1/adapters/x2text/llm_whisperer_v2/src/helper.pyindex a36567e40..8fda90790 100644--- a/unstract/sdk1/src/unstract/sdk1/adapters/x2text/llm_whisperer_v2/src/helper.py+++ b/unstract/sdk1/src/unstract/sdk1/adapters/x2text/llm_whisperer_v2/src/helper.py@@ -114,11 +114,10 @@ class LLMWhispererHelper:)if type == "whisper":response = client.whisper(**params, stream=data)+ whisper_hash = response.get(X2TextConstants.WHISPER_HASH_V2, "")+ if whisper_hash:+ logger.info(f"LLMWhisperer responded, whisper_hash: {whisper_hash}")if response["status_code"] == 200:- logger.debug(- "Successfully extracted for whisper hash: "- f"{response.get(X2TextConstants.WHISPER_HASH_V2, '')}"- )response["extraction"][X2TextConstants.WHISPER_HASH_V2] = (response.get(X2TextConstants.WHISPER_HASH_V2, ""))