MCPcopy Create free account
hub / github.com/alibaba/zvec / has_id

Method has_id

python/zvec/model/param/query.py:91–97  ·  view source on GitHub ↗

Check if the query is based on a document ID. Returns: bool: True if `id` is set, False otherwise.

(self)

Source from the content-addressed store, hash-verified

89 fts: Optional[Fts] = None
90
91 def has_id(self) -> bool:
92 """Check if the query is based on a document ID.
93
94 Returns:
95 bool: True if `id` is set, False otherwise.
96 """
97 return self.id is not None
98
99 def has_vector(self) -> bool:
100 """Check if the query contains an explicit vector.

Callers 8

test_has_idMethod · 0.95
_validateMethod · 0.95
group_by_queryMethod · 0.80
set_query_vectorMethod · 0.80
_build_search_queryMethod · 0.80

Calls

no outgoing calls