Skip to content

Hypergraph is more powerful. Transform unstructured text into structured knowledge with LLMs. Graphs, hypergraphs, and spatio-temporal extractions — with one command.

fix: warn about dropped chunks in he feed

dex0shubhame80eb8aca6b7
diff --git a/hyperextract/cli/cli.py b/hyperextract/cli/cli.py
index ad38cab..e5339b8 100644
--- a/hyperextract/cli/cli.py
+++ b/hyperextract/cli/cli.py
@@ -1368,6 +1368,12 @@ def _feed_one_document(
logger.debug("stage=feed_text_invoked")
ka.feed_text(text, source_id=source, content_hash=text_hash_to_record)
+ failures = getattr(ka, "extraction_failures", [])
+ if failures:
+ console.print(
+ f"[yellow]Warning:[/yellow] {len(failures)} chunk(s) failed "
+ "extraction and were skipped."
+ )
logger.info("stage=knowledge_appended chars=%d source=%s", len(text), source)
return True