Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Vector Fields for Vector Similarity Search #2041

Merged
merged 15 commits into from
Mar 23, 2022
Prev Previous commit
Next Next commit
fix errors
Avital-Fine committed Mar 15, 2022
commit 242a29e4a655e5c1be2beb36e57f43bf9735895d
6 changes: 4 additions & 2 deletions redis/commands/search/field.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import List

from redis import DataError


@@ -16,7 +18,7 @@ class Field:
def __init__(
self,
name: str,
args: list[str] = None,
args: List[str] = None,
sortable: bool = False,
no_index: bool = False,
as_name: str = None,
@@ -145,7 +147,7 @@ def __init__(self, name: str, algorithm: str, attributes: dict, **kwargs):
attr_li = []

for key, value in attributes.items():
attr_li.append([key, value])
attr_li.extend([key, value])

Field.__init__(
self,