瀏覽代碼

Fix: Nan response for retrieval component. (#6265)

### What problem does this PR solve?

#6247

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.18.0
Kevin Hu 7 月之前
父節點
當前提交
8157285a79
No account linked to committer's email address
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      agent/component/retrieval.py

+ 1
- 1
agent/component/retrieval.py 查看文件

@@ -108,6 +108,6 @@ class Retrieval(ComponentBase, ABC):
df["content"] = df["content_with_weight"]
del df["content_with_weight"]
logging.debug("{} {}".format(query, df))
return df
return df.dropna()



Loading…
取消
儲存