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

Method has_id

python/zvec/model/param/query.py:103–109  ·  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

101 fts: Optional[Fts] = None
102
103 def has_id(self) -> bool:
104 """Check if the query is based on a document ID.
105
106 Returns:
107 bool: True if `id` is set, False otherwise.
108 """
109 return self.id is not None
110
111 def has_vector(self) -> bool:
112 """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