|
Hi 👋 Does Qdrant support the ability to specify a point as an id of the point and then modify only the payload of that point? In my case, I would like to add a new key and value or modify the value of the existing key while keeping the other elements of payload. I think it's done through upsert, but is it only possible to search and input all existing elements such as vector? Thanks. |
Answered by
joein
Apr 24, 2024
Replies: 2 comments
qdrant_client.overwrite_payload(
collection_name="asan",
# in my case, points=["9fad...(id)"]
points=[Union[List[Union[int, str, PointId]], Filter, PointsSelector]],
payload = {other elements of payload, new_key: new_value, ..},
)This method is valid if choose to import and insert information from other existing payloads. Maybe it's looking for convenience, but it's not just for "=" and it would be nice to have a more flexible ability to modify payloads in the code, such as "append(extend)". |
0 replies
Answer selected by
hwk06023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @hwk06023
overwrite_payloadas in the name, overwrites payload completelythere is another method, with which you can modify payload, it is called
set_payloadlinkI'll move the issue to the discussions