You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add grpc unit test run, expand testing of VectorFactory (#326)
## Problem
There is a small number of unit tests that should only get run when grpc
dependencies are installed. These were previously omitted from CI by
mistake.
## Solution
Add a step to run these grpc steps. Make it conditional on the
`use_grpc` test matrix param.
## Type of Change
- [x] Infrastructure change (CI configs, etc)
message=f"Found excess keys in the vector dictionary: {invalid_keys}. The allowed keys are: {list(REQUIRED_VECTOR_FIELDS|OPTIONAL_VECTOR_FIELDS)}"
12
+
super().__init__(message)
13
+
14
+
classVectorTupleLengthError(ValueError):
15
+
def__init__(self, item):
16
+
message=f"Found a tuple of length {len(item)} which is not supported. Vectors can be represented as tuples either the form (id, values, metadata) or (id, values). To pass sparse values please use either dicts or Vector objects as inputs."
message="Found unexpected data in column `sparse_values`. Expected format is `'sparse_values': {'indices': List[int], 'values': List[float]}`."
22
+
super().__init__(message)
23
+
24
+
classSparseValuesMissingKeysError(ValueError):
25
+
def__init__(self, sparse_values_dict):
26
+
message=f"Missing required keys in data in column `sparse_values`. Expected format is `'sparse_values': {{'indices': List[int], 'values': List[float]}}`. Found keys {list(sparse_values_dict.keys())}"
message=f"Found excess keys in the vector dictionary: {invalid_keys}. The allowed keys are: {list(REQUIRED_VECTOR_FIELDS|OPTIONAL_VECTOR_FIELDS)}"
23
-
super().__init__(message)
24
-
25
-
classVectorTupleLengthError(ValueError):
26
-
def__init__(self, item):
27
-
message=f"Found a tuple of length {len(item)} which is not supported. Vectors can be represented as tuples either the form (id, values, metadata) or (id, values). To pass sparse values please use either dicts or Vector objects as inputs."
message="Found unexpected data in column `sparse_values`. Expected format is `'sparse_values': {'indices': List[int], 'values': List[float]}`."
33
-
super().__init__(message)
34
-
35
-
classSparseValuesMissingKeysError(ValueError):
36
-
def__init__(self, sparse_values_dict):
37
-
message=f"Missing required keys in data in column `sparse_values`. Expected format is `'sparse_values': {{'indices': List[int], 'values': List[float]}}`. Found keys {list(sparse_values_dict.keys())}"
0 commit comments