Skip to content

Commit

Permalink
reverts hacky fix and module version checked
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-cechmanek committed Sep 26, 2024
1 parent d4ad2d2 commit f0efe5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion redisvl/index/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def from_existing(

# Validate modules
installed_modules = RedisConnectionFactory.get_modules(redis_client)
validate_modules(installed_modules, [{"name": "search", "ver": 20612}])
validate_modules(installed_modules, [{"name": "search", "ver": 20810}])

# Fetch index info and convert to schema
index_info = cls._info(name, redis_client)
Expand Down
4 changes: 1 addition & 3 deletions redisvl/redis/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ def convert_index_info_to_schema(index_info: Dict[str, Any]) -> Dict[str, Any]:

def parse_vector_attrs(attrs):
vector_attrs = {attrs[i].lower(): attrs[i + 1] for i in range(6, len(attrs), 2)}
vector_attrs["dims"] = int(
vector_attrs.pop("dim" if "dim" in vector_attrs else "dims")
)
vector_attrs["dims"] = int(vector_attrs.pop("dim"))
vector_attrs["distance_metric"] = vector_attrs.pop("distance_metric").lower()
vector_attrs["algorithm"] = vector_attrs.pop("algorithm").lower()
vector_attrs["datatype"] = vector_attrs.pop("data_type").lower()
Expand Down

0 comments on commit f0efe5c

Please sign in to comment.