Skip to content

Filter util

MatchTypes = qdrant_models.MatchValue | qdrant_models.MatchAny | qdrant_models.MatchText module-attribute

RangeTypes = qdrant_models.DatetimeRange | qdrant_models.Range module-attribute

add_filter_condition(conditions, key, match=None, range_=None)

add_user_filter_condition(conditions, user_id, match_public_with_user_provided=True)

Add a user condition to the filter.

If user_id is "public", only non-user specific repos will be matched, otherwise both user specific and non-user specific repos will be matched.