Add logging for missing brackets in extraction result processing
This commit is contained in:
parent
24242c5bb8
commit
e3ebf45a18
1 changed files with 8 additions and 0 deletions
|
|
@ -850,8 +850,16 @@ async def _process_extraction_result(
|
|||
record = record.strip()
|
||||
if record.startswith("(") or record.startswith("("):
|
||||
record = record[1:]
|
||||
else:
|
||||
logger.warning(
|
||||
f"{chunk_key}: Record starting bracket can not be found in extraction result"
|
||||
)
|
||||
if record.endswith(")") or record.endswith(")"):
|
||||
record = record[:-1]
|
||||
else:
|
||||
logger.warning(
|
||||
f"{chunk_key}: Record ending bracket can not be found in extraction result"
|
||||
)
|
||||
|
||||
record = record.strip()
|
||||
if record is None:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue