@@ -3,12 +3,31 @@ from weaviate.proto.v1.v4216.v1 import base_search_pb2 as _base_search_pb2
33from weaviate .proto .v1 .v4216 .v1 import generative_pb2 as _generative_pb2
44from weaviate .proto .v1 .v4216 .v1 import properties_pb2 as _properties_pb2
55from google .protobuf .internal import containers as _containers
6+ from google .protobuf .internal import enum_type_wrapper as _enum_type_wrapper
67from google .protobuf import descriptor as _descriptor
78from google .protobuf import message as _message
89from typing import ClassVar as _ClassVar , Iterable as _Iterable , Mapping as _Mapping , Optional as _Optional , Union as _Union
910
1011DESCRIPTOR : _descriptor .FileDescriptor
1112
13+ class PropertyValueModifier (int , metaclass = _enum_type_wrapper .EnumTypeWrapper ):
14+ __slots__ = ()
15+ PROPERTY_VALUE_MODIFIER_NONE : _ClassVar [PropertyValueModifier ]
16+ PROPERTY_VALUE_MODIFIER_LOG1P : _ClassVar [PropertyValueModifier ]
17+ PROPERTY_VALUE_MODIFIER_SQRT : _ClassVar [PropertyValueModifier ]
18+
19+ class DecayCurve (int , metaclass = _enum_type_wrapper .EnumTypeWrapper ):
20+ __slots__ = ()
21+ DECAY_CURVE_EXPONENTIAL : _ClassVar [DecayCurve ]
22+ DECAY_CURVE_GAUSS : _ClassVar [DecayCurve ]
23+ DECAY_CURVE_LINEAR : _ClassVar [DecayCurve ]
24+ PROPERTY_VALUE_MODIFIER_NONE : PropertyValueModifier
25+ PROPERTY_VALUE_MODIFIER_LOG1P : PropertyValueModifier
26+ PROPERTY_VALUE_MODIFIER_SQRT : PropertyValueModifier
27+ DECAY_CURVE_EXPONENTIAL : DecayCurve
28+ DECAY_CURVE_GAUSS : DecayCurve
29+ DECAY_CURVE_LINEAR : DecayCurve
30+
1231class SearchRequest (_message .Message ):
1332 __slots__ = ("collection" , "tenant" , "consistency_level" , "properties" , "metadata" , "group_by" , "limit" , "offset" , "autocut" , "after" , "sort_by" , "filters" , "hybrid_search" , "bm25_search" , "near_vector" , "near_object" , "near_text" , "near_image" , "near_audio" , "near_video" , "near_depth" , "near_thermal" , "near_imu" , "generative" , "rerank" , "boost" , "uses_123_api" , "uses_125_api" , "uses_127_api" )
1433 COLLECTION_FIELD_NUMBER : _ClassVar [int ]
@@ -326,37 +345,37 @@ class Boost(_message.Message):
326345 def __init__ (self , conditions : _Optional [_Iterable [_Union [BoostCondition , _Mapping ]]] = ..., weight : _Optional [float ] = ..., depth : _Optional [int ] = ...) -> None : ...
327346
328347class BoostCondition (_message .Message ):
329- __slots__ = ("filter" , "decay" , "weight " , "property_value " )
348+ __slots__ = ("filter" , "decay" , "property_value " , "weight " )
330349 FILTER_FIELD_NUMBER : _ClassVar [int ]
331350 DECAY_FIELD_NUMBER : _ClassVar [int ]
332- WEIGHT_FIELD_NUMBER : _ClassVar [int ]
333351 PROPERTY_VALUE_FIELD_NUMBER : _ClassVar [int ]
352+ WEIGHT_FIELD_NUMBER : _ClassVar [int ]
334353 filter : _base_pb2 .Filters
335354 decay : DecayFunction
336- weight : float
337355 property_value : PropertyValueFunction
338- def __init__ (self , filter : _Optional [_Union [_base_pb2 .Filters , _Mapping ]] = ..., decay : _Optional [_Union [DecayFunction , _Mapping ]] = ..., weight : _Optional [float ] = ..., property_value : _Optional [_Union [PropertyValueFunction , _Mapping ]] = ...) -> None : ...
356+ weight : float
357+ def __init__ (self , filter : _Optional [_Union [_base_pb2 .Filters , _Mapping ]] = ..., decay : _Optional [_Union [DecayFunction , _Mapping ]] = ..., property_value : _Optional [_Union [PropertyValueFunction , _Mapping ]] = ..., weight : _Optional [float ] = ...) -> None : ...
339358
340359class PropertyValueFunction (_message .Message ):
341- __slots__ = ("path " , "modifier" )
342- PATH_FIELD_NUMBER : _ClassVar [int ]
360+ __slots__ = ("property " , "modifier" )
361+ PROPERTY_FIELD_NUMBER : _ClassVar [int ]
343362 MODIFIER_FIELD_NUMBER : _ClassVar [int ]
344- path : _containers . RepeatedScalarFieldContainer [ str ]
345- modifier : str
346- def __init__ (self , path : _Optional [_Iterable [ str ]] = ..., modifier : _Optional [str ] = ...) -> None : ...
363+ property : str
364+ modifier : PropertyValueModifier
365+ def __init__ (self , property : _Optional [str ] = ..., modifier : _Optional [_Union [ PropertyValueModifier , str ] ] = ...) -> None : ...
347366
348367class DecayFunction (_message .Message ):
349- __slots__ = ("path " , "origin" , "scale" , "offset" , "curve" , "decay_value" )
350- PATH_FIELD_NUMBER : _ClassVar [int ]
368+ __slots__ = ("property " , "origin" , "scale" , "offset" , "curve" , "decay_value" )
369+ PROPERTY_FIELD_NUMBER : _ClassVar [int ]
351370 ORIGIN_FIELD_NUMBER : _ClassVar [int ]
352371 SCALE_FIELD_NUMBER : _ClassVar [int ]
353372 OFFSET_FIELD_NUMBER : _ClassVar [int ]
354373 CURVE_FIELD_NUMBER : _ClassVar [int ]
355374 DECAY_VALUE_FIELD_NUMBER : _ClassVar [int ]
356- path : _containers . RepeatedScalarFieldContainer [ str ]
375+ property : str
357376 origin : str
358377 scale : str
359378 offset : str
360- curve : str
379+ curve : DecayCurve
361380 decay_value : float
362- def __init__ (self , path : _Optional [_Iterable [ str ]] = ..., origin : _Optional [str ] = ..., scale : _Optional [str ] = ..., offset : _Optional [str ] = ..., curve : _Optional [str ] = ..., decay_value : _Optional [float ] = ...) -> None : ...
381+ def __init__ (self , property : _Optional [str ] = ..., origin : _Optional [str ] = ..., scale : _Optional [str ] = ..., offset : _Optional [str ] = ..., curve : _Optional [_Union [ DecayCurve , str ] ] = ..., decay_value : _Optional [float ] = ...) -> None : ...
0 commit comments