Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix bulk error for table method (#407)

KevinHuSh800b5c7aaa6e
diff --git a/rag/app/table.py b/rag/app/table.py
index aca1bbfbf8..29fa25461a 100644
--- a/rag/app/table.py
+++ b/rag/app/table.py
@@ -223,8 +223,8 @@ def chunk(filename, binary=None, from_page=0, to_page=10000000000,
continue
if not str(row[clmns[j]]):
continue
- #if pd.isna(row[clmns[j]]):
- # continue
+ if pd.isna(row[clmns[j]]):
+ continue
fld = clmns_map[j][0]
d[fld] = row[clmns[j]] if clmn_tys[j] != "text" else huqie.qie(
row[clmns[j]])
diff --git a/rag/utils/es_conn.py b/rag/utils/es_conn.py
index 2dd02bd68d..a3ceaf36de 100644
--- a/rag/utils/es_conn.py
+++ b/rag/utils/es_conn.py
@@ -2,6 +2,7 @@ import re
import json
import time
import copy
+
import elasticsearch
from elastic_transport import ConnectionTimeout
from elasticsearch import Elasticsearch