diff --git a/service/splitter.py b/service/splitter.py index b4a9237d..2443619f 100644 --- a/service/splitter.py +++ b/service/splitter.py @@ -188,6 +188,8 @@ def _append_chunks( # TODO: Think of how to pass this to LLM metadata={"table_content": table, **metadata}, ) + else: + accumulated_element_texts.append(element.get("text")) # Process any remaining accumulated text after the last table # or if no table was encountered