Fix infinity for compilation (#17313)

This commit is contained in:
Yingfeng
2026-07-23 21:43:56 +08:00
committed by GitHub
parent 0c5732108a
commit 08e5d9c6be
2 changed files with 5 additions and 1 deletions

View File

@@ -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:

View File

@@ -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",