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

Method has_vector

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

Check if the query contains an explicit vector. Returns: bool: True if `vector` is non-empty, False otherwise.

(self)

Source from the content-addressed store, hash-verified

109 return self.id is not None
110
111 def has_vector(self) -> bool:
112 """Check if the query contains an explicit vector.
113
114 Returns:
115 bool: True if `vector` is non-empty, False otherwise.
116 """
117 return self.vector is not None and len(self.vector) > 0
118
119 def has_fts(self) -> bool:
120 """Check if the query contains an FTS (full-text search) condition.

Calls

no outgoing calls