Skip to content

update only payload of specific point #609

Closed

Description

@hwk06023

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.

Activity

  1. hwk06023 commented on Apr 24, 2024

    @hwk06023
    Author
    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.
    It is good that selecting a target point is strong through Filter.

    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)".

  2. joein commented on Apr 24, 2024

    @joein
    Member

    Hi @hwk06023

    overwrite_payload as in the name, overwrites payload completely
    there is another method, with which you can modify payload, it is called set_payload link

    I'll move the issue to the discussions

  3. locked and limited conversation to collaborators on Apr 24, 2024
  4. converted this issue into a discussion #610 on Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions