Skip to content

Commit

Permalink
milvus client insert to return ids as well (#1944)
Browse files Browse the repository at this point in the history
Signed-off-by: Buqian Zheng <[email protected]>
  • Loading branch information
zhengbuqian authored Mar 1, 2024
1 parent 8b02374 commit dd6ad25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymilvus/milvus_client/milvus_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def insert(
)
except Exception as ex:
raise ex from ex
return {"insert_count": res.insert_count}
return {"insert_count": res.insert_count, "ids": res.primary_keys}

def upsert(
self,
Expand Down

0 comments on commit dd6ad25

Please sign in to comment.