Skip to content

Commit a03bc04

Browse files
committed
MArking hybrid query related classes as experimental
1 parent 284041f commit a03bc04

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

redis/commands/search/hybrid_query.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from enum import Enum
22
from typing import Any, Dict, List, Optional, Union
33

4+
from redis.utils import experimental
5+
46
try:
57
from typing import Self # Py 3.11+
68
except ImportError:
@@ -10,6 +12,7 @@
1012
from redis.commands.search.query import Filter, SortbyField
1113

1214

15+
@experimental
1316
class HybridSearchQuery:
1417
def __init__(
1518
self,
@@ -65,6 +68,7 @@ class VectorSearchMethods(Enum):
6568
RANGE = "RANGE"
6669

6770

71+
@experimental
6872
class HybridVsimQuery:
6973
def __init__(
7074
self,
@@ -183,6 +187,7 @@ class CombinationMethods(Enum):
183187
LINEAR = "LINEAR"
184188

185189

190+
@experimental
186191
class CombineResultsMethod:
187192
def __init__(self, method: CombinationMethods, **kwargs) -> None:
188193
"""
@@ -217,6 +222,7 @@ def get_args(self) -> List[Union[str, int]]:
217222
return args
218223

219224

225+
@experimental
220226
class HybridPostProcessingConfig:
221227
def __init__(self) -> None:
222228
"""
@@ -325,6 +331,7 @@ def build_args(self) -> List[str]:
325331
return args
326332

327333

334+
@experimental
328335
class HybridFilter(Filter):
329336
def __init__(
330337
self,
@@ -340,6 +347,7 @@ def __init__(
340347
Filter.__init__(self, "FILTER", *args)
341348

342349

350+
@experimental
343351
class HybridCursorQuery:
344352
def __init__(self, count: int = 0, max_idle: int = 0) -> None:
345353
"""

0 commit comments

Comments
 (0)