Pārlūkot izejas kodu

Fix: Nan issue. (#6242)

### What problem does this PR solve?

#6065

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.18.0
Kevin Hu pirms 7 mēnešiem
vecāks
revīzija
7eb417b24f
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1
    1
      agent/canvas.py
  2. 1
    1
      agent/component/retrieval.py

+ 1
- 1
agent/canvas.py Parādīt failu

@@ -265,7 +265,7 @@ class Canvas:
pid = cpn["parent_id"]
_, o = cpn["obj"].output(allow_partial=False)
_, oo = self.components[pid]["obj"].output(allow_partial=False)
self.components[pid]["obj"].set_output(pd.concat([oo.dropna(axis=1), o.dropna(axis=1)], ignore_index=True))
self.components[pid]["obj"].set_output(pd.concat([oo.dropna(axis=1), o.dropna(axis=1)], ignore_index=True).dropna())
downstream = [pid]

for m in prepare2run(downstream):

+ 1
- 1
agent/component/retrieval.py Parādīt failu

@@ -82,7 +82,7 @@ class Retrieval(ComponentBase, ABC):
rank_feature=label_question(query, kbs))
else:
kbinfos = {"chunks": [], "doc_aggs": []}
if self._param.use_kg and kbs:
ck = settings.kg_retrievaler.retrieval(query,
[kbs[0].tenant_id],

Notiek ielāde…
Atcelt
Saglabāt