diff --git a/rag/app/naive.py b/rag/app/naive.py index 287c163b1..152a9e7e4 100644 --- a/rag/app/naive.py +++ b/rag/app/naive.py @@ -116,6 +116,8 @@ class Docx(DocxParser): if c.text == r.cells[j].text: span += 1 i = j + else: + break i += 1 html += f"{c.text}" if span == 1 else f"{c.text}" html += ""