semantic_router.index.postgres.parse_vector#
- semantic_router.index.postgres.parse_vector(vector_str: str | Any) List[float] #
Parses a vector from a string or other representation.
- Parameters:
vector_str (Union[str, Any]) – The string or object representation of a vector.
- Returns:
A list of floats representing the vector.
- Return type:
List[float]