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

Method vector

python/zvec/model/doc.py:100–109  ·  view source on GitHub ↗

Get a vector by name. Args: name (str): Name of the vector. Returns: Any: The vector (as a list) if it exists, otherwise None.

(self, name: str)

Source from the content-addressed store, hash-verified

98 return name in self.vectors
99
100 def vector(self, name: str):
101 """Get a vector by name.
102
103 Args:
104 name (str): Name of the vector.
105
106 Returns:
107 Any: The vector (as a list) if it exists, otherwise None.
108 """
109 return self.vectors and self.vectors.get(name)
110
111 def field(self, name: str):
112 """Get a scalar field by name.

Calls 1

getMethod · 0.45