mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-24 17:36:47 +08:00
Fix infinity for compilation (#17313)
This commit is contained in:
@@ -326,7 +326,7 @@ class DataflowService:
|
||||
del ck["metadata"]
|
||||
|
||||
if "content_with_weight" not in ck:
|
||||
ck["content_with_weight"] = ck["text"]
|
||||
ck["content_with_weight"] = ck["text"] or ""
|
||||
del ck["text"]
|
||||
|
||||
if "positions" in ck:
|
||||
|
||||
@@ -496,6 +496,10 @@ class InfinityConnection(InfinityConnectionBase):
|
||||
d[k] = v if v else "{}"
|
||||
else:
|
||||
d[k] = v
|
||||
# Infinity thrift client does not accept None values.
|
||||
for k in list(d.keys()):
|
||||
if d[k] is None:
|
||||
del d[k]
|
||||
for k in [
|
||||
"docnm_kwd",
|
||||
"title_tks",
|
||||
|
||||
Reference in New Issue
Block a user