|
5 | 5 | from tenacity import retry, stop_after_attempt, wait_random_exponential |
6 | 6 | from tenacity.retry import retry_if_not_exception_type |
7 | 7 |
|
8 | | -from redisvl.utils.vectorize.base import BaseVectorizer |
9 | 8 | from redisvl.utils.utils import deprecated_argument |
10 | | - |
| 9 | +from redisvl.utils.vectorize.base import BaseVectorizer |
11 | 10 |
|
12 | 11 | # ignore that openai isn't imported |
13 | 12 | # mypy: disable-error-code="name-defined" |
@@ -169,7 +168,7 @@ def _set_model_dims(self, model) -> int: |
169 | 168 | stop=stop_after_attempt(6), |
170 | 169 | retry=retry_if_not_exception_type(TypeError), |
171 | 170 | ) |
172 | | - @deprecated_argument('dtype') |
| 171 | + @deprecated_argument("dtype") |
173 | 172 | def embed_many( |
174 | 173 | self, |
175 | 174 | texts: List[str], |
@@ -216,7 +215,7 @@ def embed_many( |
216 | 215 | stop=stop_after_attempt(6), |
217 | 216 | retry=retry_if_not_exception_type(TypeError), |
218 | 217 | ) |
219 | | - @deprecated_argument('dtype') |
| 218 | + @deprecated_argument("dtype") |
220 | 219 | def embed( |
221 | 220 | self, |
222 | 221 | text: str, |
@@ -255,7 +254,7 @@ def embed( |
255 | 254 | stop=stop_after_attempt(6), |
256 | 255 | retry=retry_if_not_exception_type(TypeError), |
257 | 256 | ) |
258 | | - @deprecated_argument('dtype') |
| 257 | + @deprecated_argument("dtype") |
259 | 258 | async def aembed_many( |
260 | 259 | self, |
261 | 260 | texts: List[str], |
@@ -304,7 +303,7 @@ async def aembed_many( |
304 | 303 | stop=stop_after_attempt(6), |
305 | 304 | retry=retry_if_not_exception_type(TypeError), |
306 | 305 | ) |
307 | | - @deprecated_argument('dtype') |
| 306 | + @deprecated_argument("dtype") |
308 | 307 | async def aembed( |
309 | 308 | self, |
310 | 309 | text: str, |
|
0 commit comments