Skip to content

Commit

Permalink
fix graph bug about second retrieval (#1688)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

#1651

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
KevinHuSh authored Jul 24, 2024
1 parent d96348e commit fdfa5d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion graph/component/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,10 @@ def get_input(self):
break

if upstream_outs:
return pd.concat(upstream_outs, ignore_index=False)
df = pd.concat(upstream_outs, ignore_index=True)
if "content" in df:
df = df.drop_duplicates(subset=['content']).reset_index(drop=True)
return df
return pd.DataFrame()

def get_stream_input(self):
Expand Down

0 comments on commit fdfa5d0

Please sign in to comment.