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

Method has_vector

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

97 return self.id is not None
98
99 def has_vector(self) -> bool:
100 """Check if the query contains an explicit vector.
101
102 Returns:
103 bool: True if `vector` is non-empty, False otherwise.
104 """
105 return self.vector is not None and len(self.vector) > 0
106
107 def has_fts(self) -> bool:
108 """Check if the query contains an FTS (full-text search) condition.

Calls

no outgoing calls