From 4bc622b4097a2c5ae44a4cd782a3978d302746ec Mon Sep 17 00:00:00 2001 From: qinling0210 <88864212+qinling0210@users.noreply.github.com> Date: Mon, 9 Feb 2026 17:56:59 +0800 Subject: [PATCH] Fix parameter of calling self.dataStore.get() and warning info during parser (#13068) ### What problem does this PR solve? Fix parameter of calling self.dataStore.get() and warning info during parser https://github.com/infiniflow/ragflow/issues/13036 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- rag/app/table.py | 5 ++--- rag/nlp/search.py | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/rag/app/table.py b/rag/app/table.py index 106f06a4c..f521ab23d 100644 --- a/rag/app/table.py +++ b/rag/app/table.py @@ -304,9 +304,8 @@ class Excel(ExcelParser): def trans_datatime(s): try: return datetime_parse(s.strip()).strftime("%Y-%m-%d %H:%M:%S") - except Exception as e: - logging.warning(f"Failed to parse date from {s}, error: {e}") - pass + except Exception: + return None def trans_bool(s): diff --git a/rag/nlp/search.py b/rag/nlp/search.py index a36a8d967..0d9bd096e 100644 --- a/rag/nlp/search.py +++ b/rag/nlp/search.py @@ -627,7 +627,7 @@ class Dealer: if cid in id2idx: chunks[id2idx[cid]]["similarity"] += sim continue - chunk = self.dataStore.get(cid, idx_nms, kb_ids) + chunk = self.dataStore.get(cid, idx_nms[0], kb_ids) if not chunk: continue d = { @@ -677,7 +677,7 @@ class Dealer: vector_size = 1024 for id, cks in mom_chunks.items(): - chunk = self.dataStore.get(id, idx_nms, [ck["kb_id"] for ck in cks]) + chunk = self.dataStore.get(id, idx_nms[0], [ck["kb_id"] for ck in cks]) d = { "chunk_id": id, "content_ltks": " ".join([ck["content_ltks"] for ck in cks]),