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

Method _fts_string

python/zvec/model/param/query.py:140–145  ·  view source on GitHub ↗
(name: str, value: Optional[str])

Source from the content-addressed store, hash-verified

138
139 @staticmethod
140 def _fts_string(name: str, value: Optional[str]) -> str:
141 if value is None:
142 return ""
143 if not isinstance(value, str):
144 raise ValueError(f"Fts {name} must be a string")
145 return value if value.strip() else ""
146
147 def _validate(self) -> None:
148 if not isinstance(self.field_name, str) or not self.field_name.strip():

Callers 2

_fts_query_stringMethod · 0.95
_fts_match_stringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected