Shortcuts

qdrant_client.local.payload_value_extractor module

parse_uuid(value: Any) Optional[UUID][source]

Parse UUID from value. :param value: arbitrary value

value_by_key(payload: dict, key: str, flat: bool = True) Optional[List[Any]][source]

Get value from payload by key. :param payload: arbitrary json-like object :param flat: If True, extend list of values. If False, append. By default, we use True and flatten the arrays,

we need it for filters, however for count method we need to keep the arrays as is.

Parameters

key

Key or path to value in payload. .. rubric:: Examples

  • ”name”

  • ”address.city”

  • ”location[].name”

  • ”location[0].name”

Returns

List of values or None if key not found.

Qdrant

Learn more about Qdrant vector search project and ecosystem

Discover Qdrant

Similarity Learning

Explore practical problem solving with Similarity Learning

Learn Similarity Learning

Community

Find people dealing with similar problems and get answers to your questions

Join Community