
    'XhN                    +   d dl mZm Z  d dlmZ d dlmZmZmZmZm	Z	m
Z
 d dlmZ d dlmZmZ d dlmZmZmZmZ eeef   Zeedf   Zeedf   Zeed	f   Zeed
f   Zeedf   Zeedf   Z G d ded      Z G d ded      Z G d ded      Z G d ded      Z  G d de      Z! G d de      Z" G d de      Z# G d ded      Z$ G d d ed      Z% G d! d"ed      Z& G d# d$ee      Z' G d% d&ee      Z( G d' d(ed      Z) G d) d*ee      Z* G d+ d,ed      Z+ G d- d.ed      Z, G d/ d0e      Z- G d1 d2e      Z. G d3 d4e      Z/ G d5 d6e      Z0 G d7 d8e      Z1 G d9 d:e      Z2 G d; d<e      Z3 G d= d>e      Z4 G d? d@e      Z5 G dA dBe      Z6 G dC dDe      Z7 G dE dFe      Z8 G dG dHed      Z9 G dI dJee      Z: G dK dLe      Z; G dM dNe      Z< G dO dPe      Z= G dQ dRe      Z> G dS dTe      Z? G dU dVee      Z@ G dW dXe      ZA G dY dZe      ZB G d[ d\e      ZC G d] d^e      ZD G d_ d`ed      ZE G da dbed      ZF G dc dded      ZG G de dfed      ZH G dg dhe      ZI G di djee      ZJ G dk dled      ZK G dm dned      ZL G do dped      ZM G dq dred      ZN G ds dted      ZO G du dved      ZP G dw dxee      ZQ G dy dzed      ZR G d{ d|ed      ZS G d} d~ee      ZT G d ded      ZU G d ded      ZV G d ded      ZW G d ded      ZX G d ded      ZY G d ded      ZZ G d ded      Z[ G d ded      Z\ G d ded      Z] G d ded      Z^ G d dee      Z_ G d dee      Z` G d ded      Za G d ded      Zb G d ded      Zc G d ded      Zd G d dee      Ze G d ded      Zf G d ded      Zg G d ded      Zh G d ded      Zi G d ded      Zj G d ded      Zk G d de      Zl G d de      Zm G d ded      Zn G d ded      Zo G d ded      Zp G d de      Zq G d de      Zr G d de      Zs G d ded      Zt G d ded      Zu G d ded      Zv G dÄ ded      Zw G dń dee      Zx G dǄ ded      Zy G dɄ dee      Zz G d˄ ded      Z{ G d̈́ ded      Z| G dτ ded      Z} G dф ded      Z~ G dӄ ded      Z G dՄ ded      Z G dׄ dee      Z G dل ded      Z G dۄ ded      Z G d݄ ded      Z G d߄ ded      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d ded      Z G d ded      Z G d de      Z G d ded      Z G d de      Z G d ded      Z G d de      Z G d de      Z G d ded      Z G d de      Z G d d ed      Z G d de      Z G d de      Z G d de      Z G d de      Z G d	 d
e      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d d e      Z G d! d"e      Z G d# d$e      Z G d% d&e      Z G d' d(e      Z G d) d*e      Z G d+ d,e      Z G d- d.e      Z G d/ d0e      Z G d1 d2e      Z G d3 d4e      Z G d5 d6e      Z G d7 d8ed      Z G d9 d:ee      Z G d; d<ed      Z G d= d>ed      Z G d? d@ed      Z G dA dBee      Z G dC dDee      Z G dE dFed      Z G dG dHed      Z G dI dJe      Z G dK dLe      Z G dM dNed      Z G dO dPed      Z G dQ dRed      Z G dS dTed      Z G dU dVed      Z G dW dXed      Z G dY dZed      Z G d[ d\ed      Z G d] d^ee      Z G d_ d`e      Z G da dbe      Z G dc dded      Z G de dfed      Z G dg dhe      Z G di djee      Z G dk dled      Z G dm dned      Z G do dped      Z G dq dree      Z G ds dted      Z G du dved      Z G dw dxed      Z G dy dzed      Z G d{ d|ed      Z G d} d~ed      Z G d ded      Z G d de      Z G d de      Z G d de      Z G d ded      Z G d dee      Z G d de      Z G d ded      Z G d ded      Z G d ded      Z G d de      Z G d de      Z G d ded      Z G d de      Z G d de      Z G d dee      Z G d ded      Z G d ded      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d ded      Z G d ded      Z G d ded      Z G d ded      Z G d ded      Z G d ded      Z G d ded      Z G d ded      Z G d ded      Z G d ded      Z G dÄ ded      Z G dń ded      Z G dǄ ded      Z G dɄ ded      Z G d˄ ded      Z G d̈́ de      Z G dτ de      Z G dф ded      Z G dӄ dee      Z G dՄ ded      Z  G dׄ ded      Z G dل ded      Z G dۄ ded      Z G d݄ ded      Z G d߄ dee      Z G d de      Z G d de      Z G d de      Z G d ded      Z	 G d ded      Z
 G d ded      Z G d de      Z G d dee      Z G d ded      Z G d ded      Z G d de      Z G d dee      Z G d dee      Z G d de      Z G d ded      Z G d d ed      Z G d de      Z G d dee      Z G d ded      Z G d ded      Z G d	 d
ed      Z G d dee      Z G d de      Z G d ded      Z G d de      Z G d ded      Z G d de      Z  G d de      Z! G d de      Z" G d ded      Z# G d ded      Z$ G d d ed      Z% G d! d"ed      Z& G d# d$e      Z' G d% d&e      Z( G d' d(e      Z) G d) d*ee      Z* G d+ d,ed      Z+ G d- d.ed      Z, G d/ d0e      Z- G d1 d2e      Z. G d3 d4ee      Z/ G d5 d6e      Z0 G d7 d8e      Z1 G d9 d:ed      Z2 G d; d<ee      Z3 G d= d>e      Z4 G d? d@ee      Z5 G dA dBee      Z6 G dC dDee      Z7 G dE dFee      Z8 G dG dHee      Z9 G dI dJe      Z: G dK dLee      Z; G dM dNed      Z< G dO dPee      Z= G dQ dRee      Z> G dS dTed      Z? G dU dVe      Z@ G dW dXed      ZA G dY dZee      ZB G d[ d\ee      ZC G d] d^ee      ZD G d_ d`ed      ZE G da dbe      ZF G dc ded      ZG G dd deee      ZH G df dgee      ZI G dh died      ZJ G dj dked      ZK G dl dmed      ZL G dn doee      ZM G dp dqed      ZN G dr dsed      ZO G dt due      ZP G dv ded      ZQ G dw d	e      ZR G dx d
ed      ZS G dy de      ZT G dz d{ed      ZU G d| d}e      ZV G d~ ded      ZW G d dee      ZX G d dee      ZY G d dee      ZZ G d de      Z[ G d de      Z\ G d de      Z] G d ded      Z^ G d ded      Z_ G d de      Z` G d dee      Za G d ded      Zb G d ded      Zc G d ded      Zd G d de      Ze G d ded      Zf G d dee      Zg G d ded      Zh G d de      Zi G d de      Zj G d de      Zk G d ded      Zl G d ded      Zm G d dee      Zn G d dee      Zo G d dee      Zp G d dee      Zq G d dee      Zr G d de      Zs G d de      Zt G d ded      Zu G d de      Zv G d ded      Zw G d dee      Zxe
eLeYe
f   Zye
ee   ee   f   Zze
e̐eeeiePekeeLef	   Z{e
e.e/f   Z|e
e;e<f   Z}e
eteeeeeeuf   Z~e
eBeCeDf   Ze
eFeeF   f   Ze
eef   Ze
eeef   Ze
eef   Ze
eef   Ze
eeeeef   Ze
eef   Ze
ee   eef   Ze
eef   Ze
eef   Ze
eef   Ze
eeeweeWe)eSeff   Ze
eef   Ze
eeeef   Ze
eef   Ze
eevf   Ze
eee%f   Ze
eee%e`f   Ze
eҐeebeGee{eyef   Ze
eeVf   Ze
eef   Ze
eef   Ze
e/e0e1f   Ze
eef   Ze
ef   Ze
e5e6e7e8f   Ze
eBeCeDf   Ze
eHeIf   Ze
eee ef   Ze
e?f   Ze
eeNf   Ze
eZe[e\f   Ze
edeZe,ee\e,ece^f   Ze
ef   Ze
eeef   Ze
ee   eEeee      eheef   Ze
ee   eEeee      f   Ze
eoepeqerf   Ze
eleeelf   f   Ze
eewf   Ze
eee   f   Ze
eee      eeee         eeee   f   eeh   ee   ee   f   Ze
eee~e~eReUe͐eUee efeJeeoeeeene|f   Ze
eef   Ze
eee   eEf   Ze
eee   f   Ze
ee   eEeee      eeheef   Ze
ee   eee      eeef   eheef   Ze
ee   eee      eeef   f   Ze
eee   ef   Ze
eef   Zy(      )datedatetime)Enum)AnyDictListLiteralOptionalUnion)UUID)	BaseModelField)
StrictBoolStrictFloat	StrictInt	StrictStrSparseVectorParamsStrictModeMultivectorStrictModeMultivectorOutputStrictModeSparseStrictModeSparseOutputVectorParamsDiffc                   ,    e Zd ZU  edd      Zeed<   y)AbortReshardingOperation. descriptionabort_reshardingN)__name__
__module____qualname__r   r   r   __annotations__     J/RAG/venv/lib/python3.12/site-packages/qdrant_client/http/models/models.pyr   r      s    !#26c6r$   r   forbid)extrac                   h    e Zd ZU  edd      Zeed<    edd      Zeed<    edd      Zeed<   y)AbortShardTransfer.r   r   shard_id
to_peer_idfrom_peer_idN)	r   r    r!   r   r*   intr"   r+   r,   r#   r$   r%   r)   r)      s5    #2.Hc.CR0J0cr2L#2r$   r)   c                   ,    e Zd ZU  edd      Zded<   y)AbortTransferOperation.r   r   r)   abort_transferN)r   r    r!   r   r0   r"   r#   r$   r%   r/   r/      s    +0"+EN(Er$   r/   c                   ,    e Zd ZU  edd      Zded<   y)AbsExpression.r   r   
ExpressionabsN)r   r    r!   r   r4   r"   r#   r$   r%   r2   r2           cr2C2r$   r2   c                   J    e Zd ZU  edd      Zeed<    edd      Zeed<   y)AliasDescription.r   r   
alias_namecollection_nameN)r   r    r!   r   r8   strr"   r9   r#   r$   r%   r7   r7   $   s$    CR0J0 "5OS5r$   r7   c                   J   e Zd ZU  edd      Zeed<    edd      Zeed<    edd      Ze	d   ed	<    edd      Z
e	d
   ed<    edd      Ze	d   ed<    edd      Ze	d   ed<    edd      Ze	e   ed<    edd      Ze	e   ed<    edd      Zeeef   ed<   y)AppBuildTelemetry.r   r   nameversionNdefaultr   AppFeaturesTelemetryfeaturesFeatureFlagsruntime_featuresHnswGlobalConfighnsw_global_configRunningEnvironmentTelemetrysystemjwt_rbachide_jwt_dashboardstartup)r   r    r!   r   r=   r:   r"   r>   rB   r
   rD   rF   rH   rI   boolrJ   rK   r   r   r   r#   r$   r%   r<   r<   )   s    cr*D#*"-GS-16tQS1THh-.T16tQS1Th~.T7<TWY7Z!34Z6;DVX6YFH23Y$TrBHhtnB).t)LL%*3B%?GU8T>"?r$   r<   c                       e Zd ZU  edd      Zeed<    edd      Zeed<    edd      Zeed<    edd      Z	eed<    edd      Z
eed<   y	)
rA   .r   r   debugservice_debug_featurerecovery_modegpurocksdbN)r   r    r!   r   rN   rL   r"   rO   rP   rQ   rR   r#   r$   r%   rA   rA   5   sX    ,E4,"'"<4<4M44cr*C*#2.GT.r$   rA   c                   z    e Zd ZU  edd      Zed   ed<    edd      Zded<    edd	      Ze	ed
      ed<   y)Batch.r   r   ExtendedPointIdidsBatchVectorStructvectorsNr?   Payloadpayloads)
r   r    r!   r   rV   r   r"   rX   rZ   r
   r#   r$   r%   rT   rT   =   sE    #("#=C	 =#("#=G =*/"*MHhtI'Mr$   rT   c                   ,    e Zd ZU  edd      Zded<   y)BinaryQuantization.r   r   BinaryQuantizationConfigbinaryN)r   r    r!   r   r^   r"   r#   r$   r%   r\   r\   C       ).s)CF&Cr$   r\   c                   z    e Zd ZU  edd      Zee   ed<    edd      Zed   ed<    edd      Z	ed   ed	<   y)
r]   Nr   r?   
always_ramBinaryQuantizationEncodingencodingzAsymmetric quantization configuration allows a query to have different quantization than stored vectors. It can increase the accuracy of search at the cost of performance.BinaryQuantizationQueryEncodingquery_encoding)
r   r    r!   r   ra   r
   rL   r"   rc   re   r#   r$   r%   r]   r]   G   sP    !&t!DJD7<TWY7ZHh34ZBG BCNH>? r$   r]   c                       e Zd ZdZdZdZy)rb   one_bittwo_bitsone_and_half_bitsN)r   r    r!   ONE_BITTWO_BITSONE_AND_HALF_BITSr#   r$   r%   rb   rb   P   s    GH+r$   rb   c                       e Zd ZdZdZdZdZy)rd   r@   r^   scalar4bitsscalar8bitsN)r   r    r!   DEFAULTBINARYSCALAR4BITSSCALAR8BITSr#   r$   r%   rd   rd   V   s    GFKKr$   rd   c                   P    e Zd ZU  edd      Zded<    edd      Zee   ed	<   y)
BoolIndexParams.r   r   BoolIndexTypetypeN1If true, store the index on disk. Default: false.r?   on_disk	r   r    r!   r   rw   r"   ry   r
   rL   r#   r$   r%   ru   ru   ]   s)    !#26D/6#D>qrGXd^rr$   ru   c                       e Zd ZdZy)rv   rL   N)r   r    r!   BOOLr#   r$   r%   rv   rv   b       Dr$   rv   c                   6    e Zd ZU dZ edd      Zed   ed<   y)ChangeAliasesOperationz
    Operation for performing changes of collection aliases. Alias changes are atomic, meaning that no collection modifications can happen between alias operations.
    .zOperation for performing changes of collection aliases. Alias changes are atomic, meaning that no collection modifications can happen between alias operations.r   AliasOperationsactionsN)r   r    r!   __doc__r   r   r   r"   r#   r$   r%   r   r   f   s)     (- v(GT#$ r$   r   c                   ,    e Zd ZU  edd      Zded<   y)ClearPayloadOperation.r   r   PointsSelectorclear_payloadN)r   r    r!   r   r   r"   r#   r$   r%   r   r   q   s    &+CR&@M#@r$   r   c                   h    e Zd ZU  edd      Zeed<    edd      Zded<    edd      Zded<   y	)
ClusterConfigTelemetry.r   r   grpc_timeout_msP2pConfigTelemetryp2pConsensusConfigTelemetry	consensusN)	r   r    r!   r   r   r-   r"   r   r   r#   r$   r%   r   r   u   s7     "5OS5 %cr :C	:,1#2,FI)Fr$   r   c                   2    e Zd ZU  edd      Zed   ed<   y)ClusterStatusOneOf.r   r   )disabledstatusN)r   r    r!   r   r   r	   r"   r#   r$   r%   r   r   {   s"     	cr" G #r$   r   c                       e Zd ZU dZ edd      Zed   ed<    edd      Ze	ed<    edd	      Z
eed
f   ed<    edd      Zded<    edd      Zded<    edd      Zeedf   ed<   y)ClusterStatusOneOf1z(
    Description of enabled cluster
    .zDescription of enabled clusterr   )enabledr   ID of this peerpeer_idz6Peers composition of the cluster with main informationPeerInfopeersRaftInfo	raft_infoConsensusThreadStatusconsensus_thread_statuszConsequent failures of message send operations in consensus by peer address. On the first success to send to that peer - entry is removed from this hashmap.MessageSendErrorsmessage_send_failuresN)r   r    r!   r   r   r   r	   r"   r   r-   r   r   r:   r   r   r   r#   r$   r%   r   r      s     	c?@ G A *;<GS<#(:r#sE4Z s!#3STIzT7<SNn7o4o<A s=4%8 89 r$   r   c                   
   e Zd ZU  edd      Zeed<    edd      Zeed<    edd      Zeed<    edd      Z	eed<    edd	      Z
ed
   ed<    edd      Zeed<    edd	      Zee   ed<    edd      Zded<   y)ClusterStatusTelemetry.r   r   number_of_peerstermcommitpending_operationsNr?   	StateRoleroleis_voterr   r   r   )r   r    r!   r   r   r-   r"   r   r   r   r   r
   r   rL   r   r   r#   r$   r%   r   r      s     "5OS5cr*D#*,FC,#CR88"'""ED(;
E3B/Hd/"4R@GXc]@7<Sb7Q4Qr$   r   c                       e Zd ZU  edd      Zeed<    edd      Zed   ed<    edd      Z	ed	   ed
<    edd      Z
eeedf      ed<    edd      Zeeeef      ed<   y)ClusterTelemetry.r   r   r   Nr?   r   r   r   configr   r   metadata)r   r    r!   r   r   rL   r"   r   r
   r   r   r   r:   r   r   r#   r$   r%   r   r      s    #2.GT.16tQS1TFH-.T16tQS1TFH-.T-24R-PE8Dj)*P).t)LHhtCH~&Lr$   r   c                       e Zd ZU dZ edd      Zeed<    edd      Zeed<    edd      Z	e
d	   ed
<    edd      Ze
d   ed<    edd      Ze
d   ed<    edd      Zee
d      ed<   y)CollectionClusterInfoz<
    Current clustering distribution for the collection
    .r   r   r   zTotal number of shardsshard_countzLocal shardsLocalShardInfolocal_shardszRemote shardsRemoteShardInforemote_shardszShard transfersShardTransferInfoshard_transfersNzResharding operationsr?   ReshardingInforesharding_operations)r   r    r!   r   r   r   r-   r"   r   r   r   r   r   r   r
   r#   r$   r%   r   r      s     *;<GS<S.FGKG+0.+QL$'(Q-23O-TM4)*T16sHY1ZOT-.Z>CD^u>v8D)9$:;vr$   r   c                       e Zd ZU dZ edd      Zded<    edd      Zded<    edd      Zd	ed
<    edd      Z	e
d   ed<    edd      Ze
d   ed<    edd      Ze
d   ed<   y)CollectionConfigz8
    Information about the collection configuration
    .z.Information about the collection configurationr   CollectionParamsparams
HnswConfighnsw_configOptimizersConfigoptimizer_configNr?   	WalConfig
wal_configQuantizationConfigquantization_configStrictModeConfigOutputstrict_mode_config)r   r    r!   r   r   r   r"   r   r   r   r
   r   r   r#   r$   r%   r   r      s     "'s8h!iFi %c7g hKh+0Br+s(s(-"R)J%  ;@"R;"67  >C"R>!9: r$   r   c                       e Zd ZU  edd      Zded<    edd      Zded<    edd      Zded	<    edd      Zd
ed<    edd      Z	e
d   ed<    edd      Ze
d   ed<    edd      Ze
e   ed<   y)CollectionConfigTelemetry.r   r   r   r   r   r   r   r   r   r   Nr?   r   r   r   r   uuid)r   r    r!   r   r   r"   r   r   r   r   r
   r   r   r   r#   r$   r%   r   r      s    !&s!;F; %cr :K:+0"+E(E#CR8J8:?Z\:]"67]=B4]_=`!9:` 2>D(4.>r$   r   c                   ,    e Zd ZU  edd      Zeed<   y)CollectionDescription.r   r   r=   Nr   r    r!   r   r=   r:   r"   r#   r$   r%   r   r          cr*D#*r$   r   c                   0    e Zd ZU dZ edd      Zeed<   y)CollectionExistencezS
    State of existence of a collection, true = exists, false = does not exist
    .zIState of existence of a collection, true = exists, false = does not existr   existsN)r   r    r!   r   r   r   rL   r"   r#   r$   r%   r   r      s     *uvFDvr$   r   c                      e Zd ZU dZ edd      Zded<    edd      Zded<    ed	d
      Ze	e
   ed<    ed	d      Ze	e
   ed<    ed	d      Ze	e
   ed<    edd      Ze
ed<    edd      Zded<    edd      Zeedf   ed<   y	)CollectionInfoz@
    Current statistics and configuration of the collection
    .z6Current statistics and configuration of the collectionr   CollectionStatusr   OptimizersStatusoptimizer_statusNzDEPRECATED: Approximate number of vectors in collection. All vectors in collection are available for querying. Calculated as `points_count x vectors_per_point`. Where `vectors_per_point` is a number of named vectors in schema.r?   vectors_countzApproximate number of indexed vectors in the collection. Indexed vectors in large segments are faster to query, as it is stored in a specialized vector index.indexed_vectors_countzkApproximate number of points (vectors + payloads) in collection. Each point could be accessed by unique id.points_countzXNumber of segments in collection. Each segment has independent vector as payload indexessegments_countr   r   zTypes of stored payloadPayloadIndexInfopayload_schema)r   r    r!   r   r   r   r"   r   r   r
   r-   r   r   r   r   r   r   r:   r#   r$   r%   r   r      s     "'s8p!qFq+0Q,(  $) y$M8C=  ,1 u,8C=  #( B#L(3-   sNC  "'s8p!qFq49#Kd4eND001er$   r   c                   8   e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd	      Z	ed
   ed<    edd      Z
ee   ed<    edd      Zee   ed<    edd      Zee   ed<    edd      Zee   ed<    edd      Zeeedf      ed<   y)r   Nr   r?   VectorsConfigrX      z#Number of shards the collection hasshard_numberSharding method Default is Auto - points are distributed across all available shards Custom - points are distributed across shards according to shard keyShardingMethodsharding_method!Number of replicas for each shardreplication_factor  Defines how many replicas should apply the operation for us to consider it successful. Increasing this number will make the collection more resilient to inconsistencies, but will also make it fail if not enough replicas are available. Does not have any performance impact.write_consistency_factora&  Defines how many additional replicas should be processing read request at the same time. Default value is Auto, which means that fan-out will be determined automatically based on the busyness of the local replica. Having more than 0 might be useful to smooth latency spikes of individual nodes.read_fan_out_factorT#  If true - point&#x27;s payload will not be stored in memory. It will be read from the disk every time it is requested. This setting saves RAM by (slightly) increasing the response time. Note: those payload values that are involved in filtering and are indexed - remain in RAM.  Default: trueon_disk_payloadz*Configuration of the sparse vector storager   sparse_vectors)r   r    r!   r   rX   r
   r"   r   r-   r   r   r   r   r   rL   r   r   r:   r#   r$   r%   r   r      s    ).t)LGXo&L"'?d"eL(3-e27 p3OX./  ).aEh(ii.3 g/hsm  */ }*#  ', z'OXd^  AF"NANHT#';";<= r$   r   c                       e Zd ZU  edd      Zee   ed<    edd      Zee   ed<    edd      Z	ee   ed<    edd	      Z
ee   ed
<   y)CollectionParamsDiffNr   r?   r   zRMinimal number successful responses from replicas to consider operation successfulr   zfFan-out every read request to these many additional remote nodes (and return first available response)r   a  If true - point&#x27;s payload will not be stored in memory. It will be read from the disk every time it is requested. This setting saves RAM by (slightly) increasing the response time. Note: those payload values that are involved in filtering and are indexed - remain in RAM.r   )r   r    r!   r   r   r
   r-   r"   r   r   r   rL   r#   r$   r%   r   r     ss    (-dHk(ll.3"v/hsm  */|*#  ', k'OXd^ r$   r   c                   ,    e Zd ZdZdefdZdZdZdZdZ	y)	r   z
    Current state of the collection. `Green` - all good. `Yellow` - optimization is running, &#x27;Grey&#x27; - optimizations are possible but not triggered, `Red` - some operations failed and was not recovered
    returnc                 ,    t        | j                        S Nr:   valueselfs    r%   __str__zCollectionStatus.__str__%      4::r$   greenyellowgreyredN
r   r    r!   r   r:   r   GREENYELLOWGREYREDr#   r$   r%   r   r      )      EFD
Cr$   r   c                      e Zd ZU  edd      Zeed<    edd      Zeed<    edd      Z	ded<    edd	      Z
eed
      ed<    edd	      Zeed      ed<    edd	      Zeed      ed<    edd	      Zeeedf      ed<   y)CollectionTelemetry.r   r   idinit_time_msr   r   Nr?   ReplicaSetTelemetryshardsr   	transfersr   
reshardingShardCleanStatusTelemetryshard_clean_tasks)r   r    r!   r   r  r:   r"   r  r-   r   r  r
   r   r  r  r  r   r#   r$   r%   r   r   .  s    CR(B(cr2L#2*/*DF'D49$TV4WFHT/01W5:4UW5XIx012X38SU3VJ./0VJOX\jlJmxS*E%E FGmr$   r   c                   h    e Zd ZU  edd      Zeed<    edd      Zded<    edd      Zded<   y	)
CollectionsAggregatedTelemetry.r   r   rX   r   optimizers_statusr   r   N)	r   r    r!   r   rX   r-   r"   r  r   r#   r$   r%   r
  r
  8  s8    "-GS-,1#2,F)F!&s!;F;r$   r
  c                   2    e Zd ZU  edd      Zed   ed<   y)CollectionsAliasesResponse.r   r   r7   aliasesN)r   r    r!   r   r  r   r"   r#   r$   r%   r  r  >  s    (-cr(BGT$%Br$   r  c                   2    e Zd ZU  edd      Zed   ed<   y)CollectionsResponse.r   r   r   collectionsN)r   r    r!   r   r  r   r"   r#   r$   r%   r  r  B  s    16s1KK-.Kr$   r  c                   z    e Zd ZU  edd      Zeed<    edd      Zee   ed<    edd      Z	ee
d      ed	<   y)
CollectionsTelemetry.r   r   number_of_collectionsNr?   max_collectionsCollectionTelemetryEnumr  )r   r    r!   r   r  r-   r"   r  r
   r  r   r#   r$   r%   r  r  F  sF    !&s!;3;%*4R%HOXc]H=B4]_=`K$89:`r$   r  c                        e Zd ZdZdZdZdZdZy)CompressionRatiox4x8x16x32x64N)r   r    r!   X4X8X16X32X64r#   r$   r%   r  r  L  s    	B	B
C
C
Cr$   r  c                   h    e Zd ZU  edd      Zeed<    edd      Zeed<    edd      Zeed<   y)r   .r   r   max_message_queue_sizetick_period_msbootstrap_timeout_secN)	r   r    r!   r   r$  r-   r"   r%  r&  r#   r$   r%   r   r   T  s7    "'"<C<4NC4!&s!;3;r$   r   c                   Z    e Zd ZU  edd      Zed   ed<    edd      Zee	e
f   ed<   y)ConsensusThreadStatusOneOf.r   r   )workingr   last_updateN)r   r    r!   r   r   r	   r"   r*  r   r   r   r#   r$   r%   r(  r(  Z  s>     	cr" W # */s)CKx~&Cr$   r(  c                   2    e Zd ZU  edd      Zed   ed<   y)ConsensusThreadStatusOneOf1.r   r   )stoppedr   N)r   r    r!   r   r   r	   r"   r#   r$   r%   r,  r,  a  s"     	cr" W #r$   r,  c                   P    e Zd ZU  edd      Zed   ed<    edd      Zeed<   y)ConsensusThreadStatusOneOf2.r   r   )stopped_with_errr   errN)	r   r    r!   r   r   r	   r"   r1  r:   r#   r$   r%   r/  r/  g  s5     	cr" W # Sb)C)r$   r/  c                   J    e Zd ZU  edd      Zded<    edd      Zded<   y)ContextExamplePair.r   r   RecommendExamplepositivenegativeNr   r    r!   r   r5  r"   r6  r#   r$   r%   r3  r3  n  s&    #("#=H =#("#=H =r$   r3  c                   J    e Zd ZU  edd      Zded<    edd      Zded<   y)ContextPair.r   r   VectorInputr5  r6  Nr7  r#   r$   r%   r9  r9  s  s$    #CR8Hm8#CR8Hm8r$   r9  c                   ,    e Zd ZU  edd      Zded<   y)ContextQuery.r   r   ContextInputcontextN)r   r    r!   r   r>  r"   r#   r$   r%   r<  r<  x  s    #CR8G^8r$   r<  c                   ~    e Zd ZU dZ edd      Zed   ed<    edd      Zed   ed	<    ed
d      Z	ee
   ed<   y)CountRequestz
    Count Request Counts the number of points which satisfy the given filter. If filter is not provided, the count of all points in the collection will be returned.
    NUSpecify in which shards to look for the points, if not specified - look in all shardsr?   ShardKeySelector	shard_key4Look only for points which satisfies this conditionsFilterfilterTzIf true, count exact number of points. If false, count approximate number of points faster. Approximate count might be unreliable during the indexing process. Default: trueexact)r   r    r!   r   r   rC  r
   r"   rF  rG  rL   r#   r$   r%   r@  r@  |  s]     /4k/Ix*+  "'tAw!xFHXx! CE8D> r$   r@  c                   ,    e Zd ZU  edd      Zeed<   y)CountResult.z-Number of points which satisfy the conditionsr   countN)r   r    r!   r   rJ  r-   r"   r#   r$   r%   rI  rI    s    s(WXE3Xr$   rI  c                       e Zd ZdZdZdZy)	CpuEndianlittlebigotherN)r   r    r!   LITTLEBIGOTHERr#   r$   r%   rL  rL    s    F
CEr$   rL  c                   N    e Zd ZU dZ edd      Zeed<    edd      Zeed<   y)CreateAliaszw
    Create alternative name for a collection. Collection will be available under both names for search, retrieve,
    .zmCreate alternative name for a collection. Collection will be available under both names for search, retrieve,r   r9   r8   N)	r   r    r!   r   r   r9   r:   r"   r8   r#   r$   r%   rT  rT    s?     ! DOS   DJ r$   rT  c                   ,    e Zd ZU  edd      Zded<   y)CreateAliasOperation.r   r   rT  create_aliasN)r   r    r!   r   rW  r"   r#   r$   r%   rV  rV    s    "'"<L-<r$   rV  c                      e Zd ZU dZ edd      Zed   ed<    edd      Zee	   ed<    edd	      Z
ed
   ed<    edd      Zee	   ed<    edd      Zee	   ed<    edd      Zee   ed<    edd      Zed   ed<    edd      Zed   ed<    edd      Zed   ed<    edd      Zed   ed<    edd      Zed   ed <    edd!      Zeeed"f      ed#<    edd$      Zed%   ed&<   y)'CreateCollectionU
    Operation for creating new collection and (optionally) specify index params
    NKOperation for creating new collection and (optionally) specify index paramsr?   r   rX   a)  For auto sharding: Number of shards in collection. - Default is 1 for standalone, otherwise equal to the number of nodes - Minimum is 1  For custom sharding: Number of shards in collection per shard group. - Default is 1, meaning that each shard key will be mapped to a single shard - Minimum is 1r   r   r   r   z4Number of shards replicas. Default is 1 Minimum is 1r   r   r   r   r   zXCustom params for HNSW index. If none - values from service configuration file are used.HnswConfigDiffr   zQCustom params for WAL. If none - values from service configuration file are used.WalConfigDiffr   zYCustom params for Optimizers.  If none - values from service configuration file are used.OptimizersConfigDiffoptimizers_configzLSpecify other collection to copy data from.  Deprecated since Qdrant 1.15.0.InitFrom	init_fromz<Quantization parameters. If none - quantization is disabled.r   r   zSparse vector data config.r   r   zStrict-mode config.StrictModeConfigr   )r   r    r!   r   r   rX   r
   r"   r   r-   r   r   r   r   rL   r   r   r_  ra  r   r   r   r:   r   r#   r$   r%   rY  rY    s    */"o*GXo&  #( @#L(3-  38 p3OX./  )."X)  /4 g/hsm  ', z'OXd^  /4n/K*+  -2"u-J)  ;@o;x 67  ',"p'Ix
#  ;@"`;"67  AF">ANHT#';";<=  8=TWl7m!34mr$   rY  c                   P    e Zd ZU  edd      Zeed<    edd      Zed   ed<   y)	CreateFieldIndex.r   r   
field_nameNr?   PayloadFieldSchemafield_schema)	r   r    r!   r   re  r:   r"   rg  r
   r#   r$   r%   rd  rd    s+    CR0J038SU3VL(/0Vr$   rd  c                       e Zd ZU  edd      Zded<    edd      Zee   ed	<    edd
      Z	ee   ed<    edd      Z
eee      ed<   y)CreateShardingKey.r   r   ShardKeyrC  Nz_How many shards to create for this key If not specified, will use the default value from configr?   shards_numberzcHow many replicas to create for each shard If not specified, will use the default value from configr   zPlacement of shards for this key List of peer ids, that can be used to place shards for this key If not specified, will be randomly placed among all peers	placement)r   r    r!   r   rC  r"   rk  r
   r-   r   rl  r   r#   r$   r%   ri  ri    sq    !#26Iz6#(u$M8C=  ).y)  &+ q&IxS	" r$   ri  c                   ,    e Zd ZU  edd      Zded<   y)CreateShardingKeyOperation.r   r   ri  create_sharding_keyN)r   r    r!   r   ro  r"   r#   r$   r%   rn  rn    s    /4Sb/I,Ir$   rn  c                       e Zd ZdZdZdZy)Datatypefloat32uint8float16N)r   r    r!   FLOAT32UINT8FLOAT16r#   r$   r%   rq  rq    s    GEGr$   rq  c                   ,    e Zd ZU  edd      Zeed<   y)DatetimeExpression.r   r   r   N)r   r    r!   r   r   r:   r"   r#   r$   r%   ry  ry    s    #2.Hc.r$   ry  c                   t    e Zd ZU  edd      Zded<    edd      Zee   ed	<    edd
      Z	ee   ed<   y)DatetimeIndexParams.r   r   DatetimeIndexTyperw   NIf true - use this key to organize storage of the collection data. This option assumes that this key will be used in majority of filtered requests.r?   is_principalrx   ry   
r   r    r!   r   rw   r"   r~  r
   rL   ry   r#   r$   r%   r{  r{    sJ     %cr :D
:#( j$L(4.  $D>qrGXd^rr$   r{  c                       e Zd ZdZy)r|  r   N)r   r    r!   DATETIMEr#   r$   r%   r|  r|        Hr$   r|  c                   ,    e Zd ZU  edd      Zeed<   y)DatetimeKeyExpression.r   r   datetime_keyN)r   r    r!   r   r  r:   r"   r#   r$   r%   r  r    s    cr2L#2r$   r  c                       e Zd ZU dZ edd      Zeeee	f      e
d<    edd      Zeeee	f      e
d<    edd      Zeeee	f      e
d	<    edd
      Zeeee	f      e
d<   y)DatetimeRange
    Range filter request
    Npoint.key &lt; range.ltr?   ltpoint.key &gt; range.gtgtpoint.key &gt;= range.gtegtepoint.key &lt;= range.ltelte)r   r    r!   r   r   r  r
   r   r   r   r"   r  r  r  r#   r$   r%   r  r    s     +0Jc*dBx~&'d*/Jc*dBx~&'d+0Kf+gC%$'	(g+0Kf+gC%$'	(gr$   r  c                       e Zd ZU  edd      Zded<    edd      Zed   ed	<    edd
      Zee	   ed<    edd      Z
ee	   ed<   y)DecayParamsExpression.r   r   r3   xNz7The target value to start decaying from. Defaults to 0.r?   targetzdThe scale factor of the decay, in terms of `x`. Defaults to 1.0. Must be a non-zero positive number.scalezcThe midpoint of the decay. Defaults to 0.5. Output will be this value when `|x - target| == scale`.midpoint)r   r    r!   r   r  r"   r  r
   r  floatr  r#   r$   r%   r  r    si    CR0A|0%*"[&FH\"  #zE8E?  !&y!Hhuo r$   r  c                   0    e Zd ZU dZ edd      Zeed<   y)DeleteAlias 
    Delete alias if exists
    .Delete alias if existsr   r8   N)r   r    r!   r   r   r8   r:   r"   r#   r$   r%   r  r  )  s     C-EFJFr$   r  c                   0    e Zd ZU dZ edd      Zded<   y)DeleteAliasOperationr  .r  r   r  delete_aliasN)r   r    r!   r   r   r  r"   r#   r$   r%   r  r  1  s     #(9Q"RL-Rr$   r  c                   ,    e Zd ZU  edd      Zded<   y)DeleteOperation.r   r   r   deleteN)r   r    r!   r   r  r"   r#   r$   r%   r  r  9  s    $Sb9F9r$   r  c                       e Zd ZU dZ edd      Zee   ed<    edd      Z	e
ed	      ed
<    edd      Ze
d   ed<    edd      Ze
d   ed<   y)DeletePayloadY
    This data structure is used in API interface and applied across multiple shards
    .z+List of payload keys to remove from payloadr   keysN+Deletes values from each point in this listr?   rU   points=Deletes values from points that satisfy this filter conditionrE  rF  OThis data structure is used in API interface and applied across multiple shardsrB  rC  )r   r    r!   r   r   r  r   r:   r"   r  r
   rF  rC  r#   r$   r%   r  r  =  s~     C-Z[D$s)[05"O1FHT+,-  "'"a"FHX  /4"s/Ix*+ r$   r  c                   ,    e Zd ZU  edd      Zded<   y)DeletePayloadOperation.r   r   r  delete_payloadN)r   r    r!   r   r  r"   r#   r$   r%   r  r  N      &+CR&@NO@r$   r  c                       e Zd ZU  edd      Zeed      ed<    edd      Zed   ed<    ed	d
      Z	ee
   ed<    edd      Zed   ed<   y)DeleteVectorsNr  r?   rU   r  r  rE  rF  .zVector namesr   vectorr   rB  rC  )r   r    r!   r   r  r
   r   r"   rF  r  r:   rC  r#   r$   r%   r  r  R  sp    05"O1FHT+,-  "'"a"FHX  c~>FDI>.3Db.QIx*+Qr$   r  c                   ,    e Zd ZU  edd      Zded<   y)DeleteVectorsOperation.r   r   r  delete_vectorsN)r   r    r!   r   r  r"   r#   r$   r%   r  r  ]  r  r$   r  c                       e Zd ZdZdZy)	DirectionascdescN)r   r    r!   ASCDESCr#   r$   r%   r  r  a  s    
CDr$   r  c                       e Zd Zd Zy)DisabledN)r   r    r!   DISABLEDr#   r$   r%   r  r  f  r  r$   r  c                   Z    e Zd ZU  edd      Zded<    edd      Zeed   df   ed<   y	)
DiscoverInput.r   r   r:  r  z:Search space will be constrained by these pairs of vectorsr9  r>  N)	r   r    r!   r   r  r"   r>  r   r   r#   r$   r%   r  r  j  s9    !#26FM69>U:GU4&56 r$   r  c                   ,    e Zd ZU  edd      Zded<   y)DiscoverQuery.r   r   r  discoverN)r   r    r!   r   r  r"   r#   r$   r%   r  r  q  s     %cr :Ho:r$   r  c                      e Zd ZU dZ edd      Zed   ed<    edd      Zed   ed	<    edd
      Z	ee
d      ed<    edd      Zed   ed<    edd      Zed   ed<    edd      Zeed<    edd      Zee   ed<    edd      Zed   ed<    edd      Zed   ed<    edd      Zed    ed!<    edd"      Zed#   ed$<   y)%DiscoverRequestz_
    Use context and a target to find the most similar points, constrained by the context.
    NrA  r?   rB  rC  zLook for vectors closest to this.  When using the target (with or without context), the integer part of the score represents the rank with respect to the context, while the decimal part of the score relates to the distance to the target.r4  r  a  Pairs of { positive, negative } examples to constrain the search.  When using only the context (without a target), a special search - called context search - is performed where pairs of points are used to generate a loss that guides the search towards the zone where most positive examples overlap. This means that the score minimizes the scenario of finding a point closer to a negative than to a positive part of a pair.  Since the score of a context relates to loss, the maximum score a point can get is 0.0, and it becomes normal that many points can have a score of 0.0.  For discovery search (when including a target), the context part of the score for each pair is calculated +1 if the point is closer to a positive than to a negative part of a pair, and -1 otherwise.r3  r>  rD  rE  rF  Additional search paramsSearchParamsr   .Max number of result to returnr   limit~Offset of the first result to return. May be used to paginate results. Note: large offset values may cause performance issues.offsetCSelect which payload to return with the response. Default is false.WithPayloadInterfacewith_payloadPOptions for specifying which vectors to include into response. Default is false.
WithVectorwith_vector[Define which vector to use for recommendation, if not specified - try to use default vectorUsingVectorusingThe location used to lookup vectors. If not specified - use current collection. Note: the other collection should have the same vector size as the current collectionLookupLocationlookup_from)r   r    r!   r   r   rC  r
   r"   r  r>  r   rF  r   r  r-   r  r  r  r  r  r#   r$   r%   r  r  u  sL    /4k/Ix*+  ,1 D,FH'(  5: ^5GXd/01  "'tAw!xFHXx',TGa'bFH^$bs(HIE3I! UFHSM  6;"g6L(12  +0"t+K,'  &+q&E8M"  /4 |/K*+ r$   r  c                   2    e Zd ZU  edd      Zed   ed<   y)DiscoverRequestBatch.r   r   r  searchesNr   r    r!   r   r  r   r"   r#   r$   r%   r  r    s    (-cr(BHd$%Br$   r  c                   ,    e Zd ZdZdefdZdZdZdZdZ	y)	Distancezc
    Type of internal tags, build from payload Distance function types used to compare vectors
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zDistance.__str__  r   r$   CosineEuclidDot	ManhattanN)
r   r    r!   r   r:   r   COSINEEUCLIDDOT	MANHATTANr#   r$   r%   r  r    s)      FF
CIr$   r  c                   ,    e Zd ZU  edd      Zded<   y)DivExpression.r   r   	DivParamsdivN)r   r    r!   r   r  r"   r#   r$   r%   r  r        Sb1C1r$   r  c                   n    e Zd ZU  edd      Zded<    edd      Zded<    edd      Zee	   ed	<   y)
r  .r   r   r3   leftrightNr?   by_zero_default)
r   r    r!   r   r  r"   r  r  r
   r  r#   r$   r%   r  r    s9    s3D,34E<4',Tr'JOXe_Jr$   r  c                   |    e Zd ZU dZ edd      Zeed<    edd      Zeed<    edd	
      Z	e
eeef      ed<   y)Documentz
    WARN: Work-in-progress, unimplemented  Text document for embedding. Requires inference infrastructure, unimplemented.
    .zMText of the document This field will be used as input for the embedding modelr   text\Name of the model used to generate the vector List of available models depends on a providermodelNDParameters for the model Values of the parameters are model-specificr?   options)r   r    r!   r   r   r  r:   r"   r  r  r
   r   r   r#   r$   r%   r  r    sX     c'vwD#wwE3  )."h)GXd38n% r$   r  c                   ,    e Zd ZU  edd      Zded<   y)DropReplicaOperation.r   r   Replicadrop_replicaN)r   r    r!   r   r  r"   r#   r$   r%   r  r    s    #CR8L)8r$   r  c                   ,    e Zd ZU  edd      Zded<   y)DropShardingKey.r   r   rj  rC  N)r   r    r!   r   rC  r"   r#   r$   r%   r  r    s    !#26Iz6r$   r  c                   ,    e Zd ZU  edd      Zded<   y)DropShardingKeyOperation.r   r   r  drop_sharding_keyN)r   r    r!   r   r  r"   r#   r$   r%   r  r    s    +0"+E(Er$   r  c                   z    e Zd ZU  edd      Zee   ed<    edd      Zed   ed<    edd      Z	ee
   ed<   y)	ErrorResponseN"Time spent to process this requestr?   timer   ErrorResponseStatusr   result)r   r    r!   r   r  r
   r  r"   r   r  r   r#   r$   r%   r  r    sD    !$<`aD(5/a.3Db.QFH*+Q!$B?FHSM?r$   r  c                   2    e Zd ZU  edd      Zee   ed<   y)r  Nz"Description of the occurred error.r?   error)r   r    r!   r   r  r
   r:   r"   r#   r$   r%   r  r    s     ;_`E8C=`r$   r  c                   ,    e Zd ZU  edd      Zded<   y)ExpDecayExpression.r   r   r  	exp_decayN)r   r    r!   r   r  r"   r#   r$   r%   r  r        ).s)CI&Cr$   r  c                   ,    e Zd ZU  edd      Zded<   y)ExpExpression.r   r   r3   expN)r   r    r!   r   r  r"   r#   r$   r%   r  r    r5   r$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zeed	<    edd
      Z	ee
   ed<    edd      Zed   ed<    edd      Zee   ed<   y)FacetRequestNr   r?   rB  rC  .z Payload key to use for faceting.r   keyz,Max number of hits to return. Default is 10.r  zGFilter conditions - only consider points that satisfy these conditions.rE  rF  zaWhether to do a more expensive exact count for each of the values in the facet. Default is false.rG  )r   r    r!   r   rC  r
   r"   r  r:   r  r-   rF  rG  rL   r#   r$   r%   r  r    sz    .3Db.QIx*+QS&HICI ;ijE8C=j!&"k"FHX  "wE8D> r$   r  c                   2    e Zd ZU  edd      Zed   ed<   y)FacetResponse.r   r   FacetValueHithitsN)r   r    r!   r   r  r   r"   r#   r$   r%   r  r    s    "'"<D$
<r$   r  c                   J    e Zd ZU  edd      Zded<    edd      Zeed<   y)r  .r   r   
FacetValuer   rJ  N)r   r    r!   r   r   r"   rJ  r-   r#   r$   r%   r  r    s$    4E<4s+E3+r$   r  c                   R   e Zd ZU  edd      Zee   ed<    edd      Zee   ed<    edd      Z	ee   ed	<    edd
      Z
ee   ed<    edd      Zee   ed<    edd      Zee   ed<    edd      Zee   ed<    edd      Zee   ed<    edd      Zee   ed<   y)rC   FzMagic feature flag that enables all features.  Note that this will only be applied to all flags when passed into [`init_feature_flags`].r?   allTzSkip usage of RocksDB in new immutable payload indices.  First implemented in Qdrant 1.13.5. Enabled by default in Qdrant 1.14.1payload_index_skip_rocksdbz5Skip usage of RocksDB in new mutable payload indices."payload_index_skip_mutable_rocksdbzSkip usage of RocksDB in new payload storages.  On-disk payload storages never use Gridstore.  First implemented in Qdrant 1.15.0.payload_storage_skip_rocksdbzDUse incremental HNSW building.  Enabled by default in Qdrant 1.14.1.incremental_hnsw_buildingzlMigrate RocksDB based ID trackers into file based ID tracker on start.  Enabled by default in Qdrant 1.15.0.migrate_rocksdb_id_trackerz?Migrate RocksDB based vector storages into new format on start.migrate_rocksdb_vector_storagez@Migrate RocksDB based payload storages into new format on start.migrate_rocksdb_payload_storagezkMigrate RocksDB based payload indices into new format on start.  Rebuilds a new payload index from scratch.migrate_rocksdb_payload_indicesN)r   r    r!   r   r  r
   rL   r"   r  r  r  r  r  r  r  r  r#   r$   r%   rC   rC     s    _C$  27 W2  :?#Z:&  49 Y4 (4.  16"h1x~  27 C2  6;#d6"HTN  7<#e7#Xd^  7< B7#Xd^ r$   rC   c                   P   e Zd ZU dZ edd      Zeed<    edd      Ze	d	   ed
<    edd      Z
e	d   ed<    edd      Ze	d   ed<    edd      Ze	d   ed<    edd      Ze	d   ed<    edd      Ze	d   ed<    edd      Ze	e   ed<    edd      Ze	e   ed<   y)FieldConditionz3
    All possible payload filtering conditions
    .zPayload keyr   r  Nz+Check if point has field with a given valuer?   Matchmatchz+Check if points value lies in a given rangeRangeInterfacerangez0Check if points geolocation lies in a given areaGeoBoundingBoxgeo_bounding_boxz+Check if geo point is within a given radius	GeoRadius
geo_radiusz,Check if geo point is within a given polygon
GeoPolygongeo_polygonz#Check number of values of the fieldValuesCountvalues_countzNCheck that the field is empty, alternative syntax for `is_empty: 'field_name'`is_emptyzLCheck that the field is null, alternative syntax for `is_null: 'field_name'`is_null)r   r    r!   r   r   r  r:   r"   r#  r
   r%  r'  r)  r+  r-  r.  rL   r/  r#   r$   r%   r!  r!    s     Sm4C4$T?lmE8Gm(-dHu(vE8$%v38"T4h/0  ).dHu(vJ%v*/"P+K,'  -2$Lq,rL(=)r$"r Hhtn  $"pGXd^ r$   r!  c                       e Zd ZU  edd      Zeeed   df      ed<    edd      Z	ed   ed<    edd	      Z
eeed   df      ed
<    edd      Zeeed   df      ed<   y)rE  Nz-At least one of those conditions should matchr?   	Conditionshouldz8At least minimum amount of given conditions should match	MinShould
min_shouldzAll conditions must matchmustzAll conditions must NOT matchmust_not)r   r    r!   r   r2  r
   r   r   r"   r4  r5  r6  r#   r$   r%   rE  rE  6  s    >C"Q?FHU4,k9:;  )."\)J%  =B$\w<xD(5k*K78
9x@E"AAHhuT+.;<= r$   rE  c                   P    e Zd ZU  edd      Zded<    edd      Zed   ed	<   y)
FilterSelector.r   r   rE  rF  Nr?   rB  rC  )r   r    r!   r   rF  r"   rC  r
   r#   r$   r%   r8  r8  C  s*    Sb1FH1.3Db.QIx*+Qr$   r8  c                   t    e Zd ZU  edd      Zded<    edd      Zee   ed	<    edd
      Z	ee   ed<   y)FloatIndexParams.r   r   FloatIndexTyperw   Nr}  r?   r~  rx   ry   r  r#   r$   r%   r:  r:  H  sJ    "3B7D
7#( j$L(4.  $D>qrGXd^rr$   r:  c                       e Zd ZdZy)r;  r  N)r   r    r!   FLOATr#   r$   r%   r;  r;  Q  s    Er$   r;  c                   Z    e Zd ZU  edd      Zded<    ei d      Zeee	e
f      ed<   y)	FormulaQuery.r   r   r3   formular?   defaultsN)r   r    r!   r   r@  r"   rA  r
   r   r:   r   r#   r$   r%   r?  r?  U  s1    !#26G\6).rr)JHhtCH~&Jr$   r?  c                   $    e Zd ZdZdefdZdZdZy)Fusionz
    Fusion algorithm allows to combine results of multiple prefetches.  Available fusion algorithms:  * `rrf` - Reciprocal Rank Fusion * `dbsf` - Distribution-Based Score Fusion
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zFusion.__str___  r   r$   rrfdbsfN)r   r    r!   r   r:   r   RRFDBSFr#   r$   r%   rC  rC  Z  s      CDr$   rC  c                   ,    e Zd ZU  edd      Zded<   y)FusionQuery.r   r   rC  fusionN)r   r    r!   r   rK  r"   r#   r$   r%   rJ  rJ  f      Sb1FH1r$   rJ  c                   ,    e Zd ZU  edd      Zded<   y)GaussDecayExpression.r   r   r  gauss_decayN)r   r    r!   r   rO  r"   r#   r$   r%   rN  rN  j  s    +0"+EK(Er$   rN  c                   N    e Zd ZU dZ edd      Zded<    edd      Zded<   y)	r&  z
    Geo filter request  Matches coordinates inside the rectangle, described by coordinates of lop-left and bottom-right edges
    .zyGeo filter request  Matches coordinates inside the rectangle, described by coordinates of lop-left and bottom-right edgesr   GeoPointtop_leftbottom_rightN)r   r    r!   r   r   rR  r"   rS  r#   r$   r%   r&  r&  n  s?     ! PHj   % P L* r$   r&  c                   ,    e Zd ZU  edd      Zded<   y)GeoDistance.r   r   GeoDistanceParamsgeo_distanceN)r   r    r!   r   rW  r"   r#   r$   r%   rU  rU  }  s    (-cr(BL%Br$   rU  c                   J    e Zd ZU  edd      Zded<    edd      Zeed<   y)	rV  .r   r   rQ  originz,Payload field with the destination geo pointtoN)r   r    r!   r   rY  r"   rZ  r:   r#   r$   r%   rV  rV    s%    s3FJ3C%STBTr$   rV  c                   P    e Zd ZU  edd      Zded<    edd      Zee   ed	<   y)
GeoIndexParams.r   r   GeoIndexTyperw   Nrx   r?   ry   rz   r#   r$   r%   r\  r\    s)     "5D.5#D>qrGXd^rr$   r\  c                       e Zd ZdZy)r]  geoN)r   r    r!   GEOr#   r$   r%   r]  r]    s    
Cr$   r]  c                   6    e Zd ZU dZ edd      Zed   ed<   y)GeoLineStringz=
    Ordered sequence of GeoPoints representing the line
    .z3Ordered sequence of GeoPoints representing the liner   rQ  r  N)r   r    r!   r   r   r  r   r"   r#   r$   r%   rb  rb    s       %S6klFDlr$   rb  c                   N    e Zd ZU dZ edd      Zeed<    edd      Zeed<   y)rQ  z"
    Geo point payload schema
    .zGeo point payload schemar   lonlatN)	r   r    r!   r   r   rd  r  r"   re  r#   r$   r%   rQ  rQ    s-     s(BCCCs(BCCCr$   rQ  c                   Z    e Zd ZU dZ edd      Zded<    edd	      Zee	d      ed
<   y)r*  zk
    Geo filter request  Matches coordinates inside the polygon, defined by `exterior` and `interiors`
    .zaGeo filter request  Matches coordinates inside the polygon, defined by `exterior` and `interiors`r   rb  exteriorNzInterior lines (if present) bound holes within the surface each GeoLineString must consist of a minimum of 4 points, and the first and last points must be the same.r?   	interiors)
r   r    r!   r   r   rg  r"   rh  r
   r   r#   r$   r%   r*  r*    sF     !&w!Ho  27 {2Ix_-. r$   r*  c                   N    e Zd ZU dZ edd      Zded<    edd      Zeed<   y	)
r(  zt
    Geo filter request  Matches coordinates inside the circle of `radius` and center with coordinates `center`
    .zjGeo filter request  Matches coordinates inside the circle of `radius` and center with coordinates `center`r   rQ  centerzRadius of the area in metersradiusN)	r   r    r!   r   r   rj  r"   rk  r  r#   r$   r%   r(  r(    s7      AFJ  #+IJFEJr$   r(  c                   ,    e Zd ZU  edd      Zeed<   y)GpuDeviceTelemetry.r   r   r=   Nr   r#   r$   r%   rm  rm    r   r$   rm  c                   2    e Zd ZU  edd      Zed   ed<   y)GroupsResult.r   r   
PointGroupgroupsN)r   r    r!   r   rq  r   r"   r#   r$   r%   ro  ro    s    !&s!;FD;r$   ro  c                   6    e Zd ZU  edd      Zeedf   ed<   y)GrpcTelemetry.r   r   OperationDurationStatistics	responsesNr   r    r!   r   ru  r   r:   r"   r#   r$   r%   rs  rs    s    :?QS:TItC667Tr$   rs  c                   6    e Zd ZU  edd      Zeedf   ed<   y)HardwareTelemetry.r   r   HardwareUsagecollection_dataN)r   r    r!   r   rz  r   r:   r"   r#   r$   r%   rx  rx    s    272LOT#./Lr$   rx  c                       e Zd ZU dZ edd      Zeed<    edd      Zeed<    edd      Z	eed<    edd      Z
eed<    edd      Zeed	<    edd      Zeed
<    edd      Zeed<   y)ry  G
    Usage of the hardware resources, spent to process the request
    .=Usage of the hardware resources, spent to process the requestr   cpupayload_io_readpayload_io_writepayload_index_io_readpayload_index_io_writevector_io_readvector_io_writeN)r   r    r!   r   r   r~  r-   r"   r  r  r  r  r  r  r#   r$   r%   ry  ry    s     S&efCf 2qrOSr!#3rscs!&s8w!x3x"'X#C   1pqNCq 2qrOSrr$   ry  c                   6    e Zd ZU dZ edd      Zed   ed<   y)HasIdConditionz&
    ID-based filtering condition
    .zID-based filtering conditionr   rU   has_idN)r   r    r!   r   r   r  r   r"   r#   r$   r%   r  r    s!     ',C=[&\FD"#\r$   r  c                   0    e Zd ZU dZ edd      Zeed<   y)HasVectorConditionz;
    Filter points which have specific vector assigned
    .z1Filter points which have specific vector assignedr   
has_vectorN)r   r    r!   r   r   r  r:   r"   r#   r$   r%   r  r    s     C-`aJar$   r  c                       e Zd ZU dZ edd      Zeed<    edd      Zeed<    edd      Z	eed	<    ed
d      Z
ee   ed<    edd      Zee   ed<    edd      Zee   ed<   y)r   z
    Config of HNSW index
    .nNumber of edges per node in the index graph. Larger the value - more accurate the search, more space required.r   mzNumber of neighbours to consider during the index building. Larger the value - more accurate the search, more time required to build index.ef_constructa=  Minimal size (in KiloBytes) of vectors for additional payload-based indexing. If payload chunk is smaller than `full_scan_threshold_kb` additional indexing won&#x27;t be used - in this case full-scan search should be preferred by query planner and additional indexing is not required. Note: 1Kb = 1 vector of size 256full_scan_thresholdr   zNumber of parallel threads used for background index building. If 0 - automatically select from 8 to 16. Best to keep between 8 and 16 to prevent likelihood of slow building or broken/inefficient HNSW graphs. On small CPUs, less threads are used.r?   max_indexing_threadsNzVStore HNSW index on disk. If set to false, index will be stored in RAM. Default: falsery   zZCustom M param for hnsw graph built for payload index. If not set, default M will be used.	payload_m)r   r    r!   r   r   r  r-   r"   r  r  r  r
   ry   rL   r  r#   r$   r%   r   r     s      EAs   bL#   % T   +0 M+(3-  $lGXd^   %p Ix} r$   r   c                       e Zd ZU  edd      Zee   ed<    edd      Zee   ed<    edd      Z	ee   ed<    edd	      Z
ee   ed
<    edd      Zee   ed<    edd      Zee   ed<   y)r\  Nr  r?   r  zNumber of neighbours to consider during the index building. Larger the value - more accurate the search, more time required to build the index.r  a=  Minimal size (in kilobytes) of vectors for additional payload-based indexing. If payload chunk is smaller than `full_scan_threshold_kb` additional indexing won&#x27;t be used - in this case full-scan search should be preferred by query planner and additional indexing is not required. Note: 1Kb = 1 vector of size 256r  zNumber of parallel threads used for background index building. If 0 - automatically select from 8 to 16. Best to keep between 8 and 16 to prevent likelihood of building broken/inefficient HNSW graphs. On small CPUs, less threads are used.r  zZStore HNSW index on disk. If set to false, the index will be stored in RAM. Default: falsery   z[Custom M param for additional payload-aware HNSW links. If not set, default M will be used.r  )r   r    r!   r   r  r
   r-   r"   r  r  r  ry   rL   r  r#   r$   r%   r\  r\  
  s     EAx}  #( f#L(3-  */ T*#  +0 E+(3-  $pGXd^   %q Ix} r$   r\  c                   2    e Zd ZU  edd      Zee   ed<   y)rE   g333333?zEnable HNSW healing if the ratio of missing points is no more than this value. To disable healing completely, set this value to `0.0`.r?   healing_thresholdN)r   r    r!   r   r  r
   r  r"   r#   r$   r%   rE   rE   %  s!    ). ]*x r$   rE   c                   |    e Zd ZU dZ edd      Zeed<    edd      Ze	ed<    edd	
      Z
eee	ef      ed<   y)Imagez~
    WARN: Work-in-progress, unimplemented  Image object for embedding. Requires inference infrastructure, unimplemented.
    .z*Image data: base64 encoded image or an URLr   imager  r  Nr  r?   r  )r   r    r!   r   r   r  r   r"   r  r:   r  r
   r   r#   r$   r%   r  r  ,  sX     s(TUE3UwE3  )."h)GXd38n% r$   r  c                   T    e Zd ZU dZ edd      Zed   ed<    edd      Ze	ed<   y)	IndexesOneOfz
    Do not use any index, scan whole vector collection during search. Guarantee 100% precision, but may be time consuming on large collections.
    .zDo not use any index, scan whole vector collection during search. Guarantee 100% precision, but may be time consuming on large collections.r   )plainrw   r  N)
r   r    r!   r   r   rw   r	   r"   r  r   r#   r$   r%   r  r  :  sD     $ bD'(
   bGS r$   r  c                   T    e Zd ZU dZ edd      Zed   ed<    edd      Zded<   y	)
IndexesOneOf1z
    Use filterable HNSW index for approximate search. Is very fast even on a very huge collections, but require additional space to store index and additional time to build it.
    .zUse filterable HNSW index for approximate search. Is very fast even on a very huge collections, but require additional space to store index and additional time to build it.r   )hnswrw   r   r  N)	r   r    r!   r   r   rw   r	   r"   r  r#   r$   r%   r  r  I  sD     # CD''
  " CG\ r$   r  c                   |    e Zd ZU dZ edd      Zeed<    edd      Ze	ed<    edd	
      Z
eee	ef      ed<   y)InferenceObjectz
    WARN: Work-in-progress, unimplemented  Custom object for embedding. Requires inference infrastructure, unimplemented.
    .zvArbitrary data, used as input for the embedding model Used if the model requires more than one input or a custom inputr   objectr  r  Nr  r?   r  )r   r    r!   r   r   r  r   r"   r  r:   r  r
   r   r#   r$   r%   r  r  X  sb      MFC  wE3  )."h)GXd38n% r$   r  c                   6    e Zd ZU  edd      Zeedf   ed<   y)InferenceUsage.r   r   
ModelUsagemodelsN)r   r    r!   r   r  r   r:   r"   r#   r$   r%   r  r  i  s    &+CR&@FDl"#@r$   r  c                   0    e Zd ZU dZ edd      Zeed<   y)r`  rZ  .r[  r   
collectionN)r   r    r!   r   r   r  r:   r"   r#   r$   r%   r`  r`  m  s      fJ r$   r`  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zee   ed	<   y)
InlineResponse200Nr   r?   Usageusager   r  r   r  )r   r    r!   r   r  r
   r"   r  r  r   r:   r  rL   r#   r$   r%   r  r  w  sX    $TrBE8GB!$<`aD(5/a!$B?FHSM?"4R@FHTN@r$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zed	   ed
<   y)InlineResponse2001Nr   r?   r  r  r   r  r   TelemetryDatar  r   r    r!   r   r  r
   r"   r  r  r   r:   r  r#   r$   r%   r  r  ~  Y    $TrBE8GB!$<`aD(5/a!$B?FHSM?(-d(KFH_%Kr$   r  c                   z    e Zd ZU  edd      Zee   ed<    edd      Zee	   ed<    edd      Z
ee   ed<   y)InlineResponse20010Nr   r?   r  r   r   r  )r   r    r!   r   r  r
   r  r"   r   r:   r  rL   r#   r$   r%   r  r    sB    !$<`aD(5/a!$B?FHSM?"4R@FHTN@r$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zeed	      ed
<   y)InlineResponse20011Nr   r?   r  r  r   r  r   SnapshotDescriptionr  r   r    r!   r   r  r
   r"   r  r  r   r:   r  r   r#   r$   r%   r  r    s`    $TrBE8GB!$<`aD(5/a!$B?FHSM?49$TV4WFHT/01Wr$   r  c                   z    e Zd ZU  edd      Zee   ed<    edd      Zee	   ed<    edd      Z
ed   ed<   y)	InlineResponse20012Nr   r?   r  r   r   r  r  )r   r    r!   r   r  r
   r  r"   r   r:   r  r#   r$   r%   r  r    sD    !$<`aD(5/a!$B?FHSM?.3Db.QFH*+Qr$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zed	   ed
<   y)InlineResponse20013Nr   r?   r  r  r   r  r   Recordr  r  r#   r$   r%   r  r    sY    $TrBE8GB!$<`aD(5/a!$B?FHSM?!&t!DFHXDr$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zeed	      ed
<   y)InlineResponse20014Nr   r?   r  r  r   r  r   r  r  r  r#   r$   r%   r  r    s]    $TrBE8GB!$<`aD(5/a!$B?FHSM?',Tr'JFHT(^$Jr$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zeed	      ed
<   y)InlineResponse20015Nr   r?   r  r  r   r  r   UpdateResultr  r  r#   r$   r%   r  r    s^    $TrBE8GB!$<`aD(5/a!$B?FHSM?-24R-PFHT.)*Pr$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zed	   ed
<   y)InlineResponse20016Nr   r?   r  r  r   r  r   ScrollResultr  r  r#   r$   r%   r  r    Y    $TrBE8GB!$<`aD(5/a!$B?FHSM?',Tr'JFH^$Jr$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zeed	      ed
<   y)InlineResponse20017Nr   r?   r  r  r   r  r   ScoredPointr  r  r#   r$   r%   r  r    s^    $TrBE8GB!$<`aD(5/a!$B?FHSM?,1$B,OFHT-()Or$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zeeed	         ed
<   y)InlineResponse20018Nr   r?   r  r  r   r  r   r  r  r  r#   r$   r%   r  r    sd    $TrBE8GB!$<`aD(5/a!$B?FHSM?27RT2UFHT$}-./Ur$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zed	   ed
<   y)InlineResponse20019Nr   r?   r  r  r   r  r   ro  r  r  r#   r$   r%   r  r    r  r$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zed	   ed
<   y)InlineResponse2002Nr   r?   r  r  r   r  r   LocksOptionr  r  r#   r$   r%   r  r    Y    $TrBE8GB!$<`aD(5/a!$B?FHSM?&+Db&IFH]#Ir$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zed	   ed
<   y)InlineResponse20020Nr   r?   r  r  r   r  r   rI  r  r  r#   r$   r%   r  r    r  r$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zed	   ed
<   y)InlineResponse20021Nr   r?   r  r  r   r  r   r  r  r  r#   r$   r%   r  r    r  r$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zed	   ed
<   y)InlineResponse20022Nr   r?   r  r  r   r  r   QueryResponser  r  r#   r$   r%   r  r    r  r$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zeed	      ed
<   y)InlineResponse20023Nr   r?   r  r  r   r  r   r  r  r  r#   r$   r%   r  r    s^    $TrBE8GB!$<`aD(5/a!$B?FHSM?.3Db.QFHT/*+Qr$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zed	   ed
<   y)InlineResponse20024Nr   r?   r  r  r   r  r   SearchMatrixPairsResponser  r  r#   r$   r%   r  r    s[    $TrBE8GB!$<`aD(5/a!$B?FHSM?49$TV4WFH01Wr$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zed	   ed
<   y)InlineResponse20025Nr   r?   r  r  r   r  r   SearchMatrixOffsetsResponser  r  r#   r$   r%   r  r    s[    $TrBE8GB!$<`aD(5/a!$B?FHSM?6;DVX6YFH23Yr$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zed	   ed
<   y)InlineResponse2003Nr   r?   r  r  r   r  r   ClusterStatusr  r  r#   r$   r%   r  r    r  r$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zed	   ed
<   y)InlineResponse2004Nr   r?   r  r  r   r  r   r  r  r  r#   r$   r%   r  r    Z    $TrBE8GB!$<`aD(5/a!$B?FHSM?.3Db.QFH*+Qr$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zed	   ed
<   y)InlineResponse2005Nr   r?   r  r  r   r  r   r   r  r  r#   r$   r%   r  r    sZ    $TrBE8GB!$<`aD(5/a!$B?FHSM?).t)LFH%&Lr$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zed	   ed
<   y)InlineResponse2006Nr   r?   r  r  r   r  r   r  r  r  r#   r$   r%   r  r    r  r$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zed	   ed
<   y)InlineResponse2007Nr   r?   r  r  r   r  r   r   r  r  r#   r$   r%   r  r    r  r$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zed	   ed
<   y)InlineResponse2008Nr   r?   r  r  r   r  r   r   r  r  r#   r$   r%   r  r    s[    $TrBE8GB!$<`aD(5/a!$B?FHSM?05dPR0SFH,-Sr$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zed	   ed
<   y)InlineResponse2009Nr   r?   r  r  r   r  r   r  r  r  r#   r$   r%   r  r  $  s[    $TrBE8GB!$<`aD(5/a!$B?FHSM?5:4UW5XFH12Xr$   r  c                   V    e Zd ZU  edd      Zee   ed<    edd      Zee	   ed<   y)InlineResponse202Nr   r?   r  r   r   )
r   r    r!   r   r  r
   r  r"   r   r:   r#   r$   r%   r  r  +  s-    !$<`aD(5/a!$B?FHSM?r$   r  c                       e Zd ZU  edd      Zded<    edd      Zee   ed	<    edd
      Z	ee   ed<    edd      Z
ee   ed<    edd      Zee   ed<   y)IntegerIndexParams.r   r   IntegerIndexTyperw   Nz2If true - support direct lookups. Default is true.r?   lookupz2If true - support ranges filters. Default is true.r%  zIf true - use this key to organize storage of the collection data. This option assumes that this key will be used in majority of filtered requests. Default is false.r~  zCIf true, store the index on disk. Default: false. Default is false.ry   )r   r    r!   r   rw   r"   r  r
   rL   r%  r~  ry   r#   r$   r%   r  r  0  s{    $Sb9D
9"4=qrFHTNr!$<pqE8D>q#( |$L(4.  $"gGXd^ r$   r  c                       e Zd ZdZy)r  integerN)r   r    r!   INTEGERr#   r$   r%   r  r  =      Gr$   r  c                   0    e Zd ZU dZ edd      Zded<   y)IsEmptyConditionz@
    Select points with empty payload for a specified field
    .z6Select points with empty payload for a specified fieldr   PayloadFieldr.  N)r   r    r!   r   r   r.  r"   r#   r$   r%   r  r  A  s      %S6noHnor$   r  c                   0    e Zd ZU dZ edd      Zded<   y)IsNullConditionz?
    Select points with null payload for a specified field
    .z5Select points with null payload for a specified fieldr   r  r/  N)r   r    r!   r   r   r/  r"   r#   r$   r%   r  r  I  s     $C5lmG^mr$   r  c                   t    e Zd ZU  edd      Zded<    edd      Zee   ed	<    edd
      Z	ee   ed<   y)KeywordIndexParams.r   r   KeywordIndexTyperw   Nz7If true - used for tenant optimization. Default: false.r?   	is_tenantrx   ry   
r   r    r!   r   rw   r"   r   r
   rL   ry   r#   r$   r%   r  r  Q  sG    $Sb9D
9 %"[!Ix~  $D>qrGXd^rr$   r  c                       e Zd ZdZy)r  keywordN)r   r    r!   KEYWORDr#   r$   r%   r  r  Y  r  r$   r  c                       e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ y) Languagearabicazerbaijanibasquebengalicatalanchinesedanishdutchenglishfinnishfrenchgermangreekhebrewhinglish	hungarian
indonesianitalianjapanesekazakhnepali	norwegian
portugueseromanianrussianslovenespanishswedishtajikturkishN)!r   r    r!   ARABICAZERBAIJANIBASQUEBENGALICATALANCHINESEDANISHDUTCHENGLISHFINNISHFRENCHGERMANGREEKHEBREWHINGLISH	HUNGARIAN
INDONESIANITALIANJAPANESEKAZAKHNEPALI	NORWEGIAN
PORTUGUESEROMANIANRUSSIANSLOVENESPANISHSWEDISHTAJIKTURKISHr#   r$   r%   r  r  ]  s    FKFGGGFEGGFFEFHIJGHFFIJHGGGGEGr$   r  c                   ,    e Zd ZU  edd      Zded<   y)LinDecayExpression.r   r   r  	lin_decayN)r   r    r!   r   rE  r"   r#   r$   r%   rD  rD  ~  r	  r$   rD  c                   ,    e Zd ZU  edd      Zded<   y)LnExpression.r   r   r3   lnN)r   r    r!   r   rH  r"   r#   r$   r%   rG  rG    s    Sb1B1r$   rG  c                       e Zd ZU  edd      Zeed<    edd      Zed   ed	<    edd
      Z	eed<    edd      Z
ded<   y)r   .zLocal shard idr   r*   NUser-defined sharding keyr?   rj  rC  zNumber of points in the shardr   r   ReplicaStatestate)r   r    r!   r   r*   r-   r"   rC  r
   r   rL  r#   r$   r%   r   r     sN    #+;<Hc<&+DFa&bIx
#bc/NOL#O!#26E>6r$   r   c                   p   e Zd ZU  edd      Zee   ed<    edd      Zed   ed<    edd	      Z	e
ed
<    edd      Zee
   ed<    edd      Zee
   ed<    edd      Zee
   ed<    edd      Zee
   ed<    edd      Zeed      ed<    edd	      Zded<    edd      Zee   ed<   y)LocalShardTelemetryNr   r?   variant_nameShardStatusr   .z6Total number of optimized points since the last start.r   total_optimized_pointsyAn ESTIMATION of effective amount of bytes used for vectors Do NOT rely on this number unless you know what you are doingvectors_size_bytesz~An estimation of the effective amount of bytes used for payloads Do NOT rely on this number unless you know what you are doingpayloads_size_byteszqSum of segment points This is an approximate number Do NOT rely on this number unless you know what you are doing
num_pointszSum of number of vectors in all segments This is an approximate number Do NOT rely on this number unless you know what you are doingnum_vectorsSegmentTelemetrysegmentsOptimizerTelemetryoptimizationsasync_scorer)r   r    r!   r   rO  r
   r:   r"   r   rQ  r-   rS  rT  rU  rV  rX  r   rZ  r[  rL   r#   r$   r%   rN  rN    s   "'""EL(3-E&+Db&IFH]#I"'9q"rCr(- P)  */ U*#  !& H!J  "' ["K#  49SU3VHht./0V*/*DM'D#(2#FL(4.Fr$   rN  c                   P    e Zd ZU  edd      Zee   ed<    edd      Ze	ed<   y)r  Nr   r?   error_message.r   write)
r   r    r!   r   r]  r
   r:   r"   r^  rL   r#   r$   r%   r  r    s(    #(2#FM8C=F,E4,r$   r  c                   ,    e Zd ZU  edd      Zded<   y)Log10Expression.r   r   r3   log10N)r   r    r!   r   ra  r"   r#   r$   r%   r`  r`    s    4E<4r$   r`  c                   x    e Zd ZU dZ edd      Zeed<    edd      Ze	e   ed	<    edd
      Z
e	d   ed<   y)r  zj
    Defines a location to use for looking up the vector. Specifies collection and vector field name.
    .z&Name of the collection used for lookupr   r  NzpOptional name of the vector field within the collection. If not provided, the default vector field will be used.r?   r  rA  rB  rC  )r   r    r!   r   r   r  r:   r"   r  r
   rC  r#   r$   r%   r  r    sX     C-UVJV! GFHSM  /4k/Ix*+ r$   r  c                   0    e Zd ZU dZ edd      Zded<   y)MatchAnyz0
    Exact match on any of the given values
    .z&Exact match on any of the given valuesr   AnyVariantsanyN)r   r    r!   r   r   rf  r"   r#   r$   r%   rd  rd    s     s0XYCYr$   rd  c                   2    e Zd ZU dZ eddd      Zded<   y)	MatchExceptzJ
    Should have at least one value not matching the any given values
    .z@Should have at least one value not matching the any given valuesexceptr   aliasre  except_N)r   r    r!   r   r   rl  r"   r#   r$   r%   rh  rh    s#     #[ckG] r$   rh  c                   0    e Zd ZU dZ edd      Zeed<   y)MatchPhrasez/
    Full-text phrase match of the string.
    .z%Full-text phrase match of the string.r   phraseN)r   r    r!   r   r   ro  r:   r"   r#   r$   r%   rn  rn    s     )PQFCQr$   rn  c                   0    e Zd ZU dZ edd      Zeed<   y)	MatchTextz)
    Full-text match of the strings.
    .zFull-text match of the strings.r   r  N)r   r    r!   r   r   r  r:   r"   r#   r$   r%   rq  rq    s     c'HID#Ir$   rq  c                   0    e Zd ZU dZ edd      Zded<   y)
MatchValuez(
    Exact match of the given value
    .zExact match of the given valuer   ValueVariantsr   N)r   r    r!   r   r   r   r"   r#   r$   r%   rs  rs    s     #34TUE?Ur$   rs  c                       e Zd ZdZy)MaxOptimizationThreadsSettingautoN)r   r    r!   AUTOr#   r$   r%   rv  rv    r}   r$   rv  c                       e Zd ZU  edd      Zeed<    edd      Zeed<    edd      Zeed<    edd	      Z	eed
<    edd      Z
eed<   y)MemoryTelemetry.zBTotal number of bytes in active pages allocated by the applicationr   active_bytesz2Total number of bytes allocated by the applicationallocated_bytesz+Total number of bytes dedicated to metadatametadata_bytesz@Maximum number of bytes in physically resident data pages mappedresident_bytesz0Total number of bytes in virtual memory mappingsretained_bytesN)r   r    r!   r   r{  r-   r"   r|  r}  r~  r  r#   r$   r%   rz  rz    s\    c/stL#t 2fgOSg1^_NC_1stNCt1cdNCdr$   rz  c                       e Zd ZU dZ edd      Zeed<    edd      Ze	e
   ed<    edd	      Ze	eeef      ed
<   y)r   z5
    Message send failures for a particular peer
    .z+Message send failures for a particular peerr   rJ  Nr?   latest_errorzTimestamp of the latest errorlatest_error_timestamp)r   r    r!   r   r   rJ  r-   r"   r  r
   r:   r  r   r   r   r#   r$   r%   r   r     sW     s(UVE3V"'Bo"pL(3-p>C"A?HU8T>%:; r$   r   c                   P    e Zd ZU  edd      Zed   ed<    edd      Zeed<   y)r3  .r   r   r1  
conditions	min_countN)	r   r    r!   r   r  r   r"   r  r-   r#   r$   r%   r3  r3    s)    $)#2$>J[!>3B/Is/r$   r3  c                   Z    e Zd ZU dZ edd      Zee   ed<    edd      Z	ee
   ed<   y)MmrzO
    Maximal Marginal Relevance (MMR) algorithm for re-ranking the points.
    Na!  Tunable parameter for the MMR algorithm. Determines the balance between diversity and relevance.  A higher value favors diversity (dissimilarity to selected results), while a lower value favors relevance (similarity to the query vector).  Must be in the range [0, 1]. Default value is 0.5.r?   	diversityzjThe maximum number of candidates to consider for re-ranking.  If not specified, the `limit` value is used.candidates_limit)r   r    r!   r   r   r  r
   r  r"   r  r-   r#   r$   r%   r  r    sH     "' x"Ix  ', A'hsm r$   r  c                   ,    e Zd ZU  edd      Zeed<   y)r  .r   r   tokensN)r   r    r!   r   r  r-   r"   r#   r$   r%   r  r        ,FC,r$   r  c                   $    e Zd ZdZdefdZdZdZy)Modifierz
    If used, include weight modification, which will be applied to sparse vectors at query time: None - no modification (default) Idf - inverse document frequency, based on statistics of the collection
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zModifier.__str__  r   r$   noneidfN)r   r    r!   r   r:   r   NONEIDFr#   r$   r%   r  r    s      D
Cr$   r  c                       e Zd ZU  edd      Zeed<    edd      Zeed<    edd      Zeed<    edd	      Z	e
d
   ed<   y)	MoveShard.r   r   r*   r+   r,   N:Method for transferring the shard from one node to anotherr?   ShardTransferMethodmethodr   r    r!   r   r*   r-   r"   r+   r,   r  r
   r#   r$   r%   r  r  %  R    #2.Hc.CR0J0cr2L#2.3"^/FH*+ r$   r  c                   ,    e Zd ZU  edd      Zded<   y)MoveShardOperation.r   r   r  
move_shardN)r   r    r!   r   r  r"   r#   r$   r%   r  r  .  s    #CR8J8r$   r  c                   2    e Zd ZU  edd      Zed   ed<   y)MultExpression.r   r   r3   multN)r   r    r!   r   r  r   r"   r#   r$   r%   r  r  2  s    $Sb9D$|
9r$   r  c                       e Zd ZdZy)MultiVectorComparatormax_simN)r   r    r!   MAX_SIMr#   r$   r%   r  r  6  r  r$   r  c                   ,    e Zd ZU  edd      Zded<   y)MultiVectorConfig.r   r   r  
comparatorN)r   r    r!   r   r  r"   r#   r$   r%   r  r  :  s    */*DJ'Dr$   r  c                   N    e Zd ZU dZ edd      Zeed<    edd      Zded<   y	)
NamedSparseVectorz&
    Sparse vector data with name
    .Name of vector datar   r=   zSparse vector data with nameSparseVectorr  N)	r   r    r!   r   r   r=   r:   r"   r  r#   r$   r%   r  r  >  s-     c'<=D#="34RSFNSr$   r  c                   T    e Zd ZU dZ edd      Zeed<    edd      Ze	e
   ed<   y)	NamedVectorz%
    Dense vector data with name
    .r  r   r=   zVector datar  N)r   r    r!   r   r   r=   r:   r"   r  r   r  r#   r$   r%   r  r  G  s0     c'<=D#=?FDK?r$   r  c                   P    e Zd ZU  edd      Zded<    edd      Zed	   ed
<   y)NearestQuery.r   r   r:  nearestNz|Perform MMR (Maximal Marginal Relevance) reranking after search, using the same vector in this query to calculate relevance.r?   r  mmr)r   r    r!   r   r  r"   r  r
   r#   r$   r%   r  r  P  s1    "3B7G]7  SC% r$   r  c                   ,    e Zd ZU  edd      Zded<   y)NegExpression.r   r   r3   negN)r   r    r!   r   r  r"   r#   r$   r%   r  r  X  r5   r$   r  c                   N    e Zd ZU dZ edd      Zeed<    edd      Zded<   y)	NestedzA
    Select points with payload for a specified nested field
    .z7Select points with payload for a specified nested fieldr   r  rE  rF  N)	r   r    r!   r   r   r  r:   r"   rF  r#   r$   r%   r  r  \  s-     S&_`C`S.ghFHhr$   r  c                   ,    e Zd ZU  edd      Zded<   y)NestedCondition.r   r   r  nestedN)r   r    r!   r   r  r"   r#   r$   r%   r  r  e  rL  r$   r  c                      e Zd ZU  edd      Zeed<    edd      Zee   ed<    edd      Z	ee
   ed	<    edd
      Zee
   ed<    edd      Zee
   ed<    edd      Zee   ed<    edd      Zeeeef      ed<   y)rt  .r   r   rJ  Nr?   
fail_countzOThe average time taken by 128 latest operations, calculated as a weighted mean.avg_duration_microszCThe minimum duration of the operations across all the measurements.min_duration_microszCThe maximum duration of the operations across all the measurements.max_duration_microsz5The total duration of all operations in microseconds.total_duration_microslast_responded)r   r    r!   r   rJ  r-   r"   r  r
   r  r  r  r  r  r  r   r   r   r#   r$   r%   rt  rt  i  s    s+E3+ %d CJC+0"s,%  ,1"g,%  ,1"g,%  ,1"Y,8C=  7<DVX6YNHU8T>23Yr$   rt  c                   t    e Zd ZU  edd      Zded<    edd      Zded<    edd	      Zee	d
      ed<   y)rY  .r   r   r   r   rt  rZ  Nr?   TrackerTelemetrylog)
r   r    r!   r   r   r"   rZ  r  r
   r   r#   r$   r%   rY  rY  {  sB    !&s!;F;38"3MM0M.3Db.QC$)*	+Qr$   rY  c                      e Zd ZU  edd      Zeed<    edd      Zeed<    edd      Z	eed<    ed	d
      Z
ee   ed<    ed	d      Zee   ed<    ed	d      Zee   ed<    edd      Zeed<    ed	d      Zee   ed<   y	)r   .^The minimal fraction of deleted vectors in a segment, required to perform segment optimizationr   deleted_thresholdTThe minimal number of vectors in a segment, required to perform segment optimizationvacuum_min_vector_numbera  Target amount of segments optimizer will try to keep. Real amount of segments may vary depending on multiple parameters: - Amount of stored points - Current write RPS  It is recommended to select default number of segments as a factor of the number of search threads, so that each segment would be handled evenly by one of the threads. If `default_segment_number = 0`, will be automatically selected by the number of available CPUs.default_segment_numberNa  Do not create segments larger this size (in kilobytes). Large segments might require disproportionately long indexation times, therefore it makes sense to limit the size of segments.  If indexing speed is more important - make this parameter lower. If search speed is more important - make this parameter higher. Note: 1Kb = 1 vector of size 256 If not set, will be automatically selected considering the number of available CPUs.r?   max_segment_sizea|  Maximum size (in kilobytes) of vectors to store in-memory per segment. Segments larger than this threshold will be stored as read-only memmapped file.  Memmap storage is disabled by default, to enable it, set this threshold to a reasonable value.  To disable memmap storage, set this to `0`. Internally it will use the largest threshold possible.  Note: 1Kb = 1 vector of size 256memmap_thresholda  Maximum size (in kilobytes) of vectors allowed for plain index, exceeding this threshold will enable vector indexing  Default value is 10,000, based on experiments and observations.  To disable vector indexing, set to `0`.  Note: 1kB = 1 vector of size 256.indexing_threshold(Minimum interval between forced flushes.flush_interval_seca(  Max number of threads (jobs) for running optimizations per shard. Note: each optimization job will also use `max_indexing_threads` threads by itself for index building. If null - have no limit and choose dynamically to saturate CPU. If 0 - no optimization threads, optimizations will be disabled.max_optimization_threads)r   r    r!   r   r  r  r"   r  r-   r  r  r
   r  r  r  r  r#   r$   r%   r   r     s    $t u  %*o%c  #( G#C  ', E'hsm  ', S'hsm  ). X)  $C5_``.3 /hsm r$   r   c                   .   e Zd ZU  edd      Zee   ed<    edd      Zee	   ed<    edd      Z
ee	   ed<    edd	      Zee	   ed
<    edd      Zee	   ed<    edd      Zee	   ed<    edd      Zee	   ed<    edd      Zed   ed<   y)r^  Nr  r?   r  r  r  a  Target amount of segments optimizer will try to keep. Real amount of segments may vary depending on multiple parameters: - Amount of stored points - Current write RPS  It is recommended to select default number of segments as a factor of the number of search threads, so that each segment would be handled evenly by one of the threads If `default_segment_number = 0`, will be automatically selected by the number of available CPUsr  ae  Do not create segments larger this size (in kilobytes). Large segments might require disproportionately long indexation times, therefore it makes sense to limit the size of segments.  If indexation speed have more priority for your - make this parameter lower. If search speed is more important - make this parameter higher. Note: 1Kb = 1 vector of size 256r  ae  Maximum size (in kilobytes) of vectors to store in-memory per segment. Segments larger than this threshold will be stored as read-only memmapped file.  Memmap storage is disabled by default, to enable it, set this threshold to a reasonable value.  To disable memmap storage, set this to `0`.  Note: 1Kb = 1 vector of size 256  Deprecated since Qdrant 1.15.0r  aD  Maximum size (in kilobytes) of vectors allowed for plain index, exceeding this threshold will enable vector indexing  Default value is 20,000, based on &lt;https://github.com/google-research/google-research/blob/master/scann/docs/algorithms.md&gt;.  To disable vector indexing, set to `0`.  Note: 1kB = 1 vector of size 256.r  r  r  a4  Max number of threads (jobs) for running optimizations per shard. Note: each optimization job will also use `max_indexing_threads` threads by itself for index building. If &quot;auto&quot; - have no limit and choose dynamically to saturate CPU. If 0 - no optimization threads, optimizations will be disabled.MaxOptimizationThreadsr  )r   r    r!   r   r  r
   r  r"   r  r-   r  r  r  r  r  r  r#   r$   r%   r^  r^    s    ).t*x  /4"x/hsm  -2 E-HSM  ', |'hsm  ', |'hsm  ). [)  ).dHr(ssCH KDh'?@ r$   r^  c                        e Zd ZdZdefdZdZy)OptimizersStatusOneOfz.
    Optimizers are reporting as expected
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zOptimizersStatusOneOf.__str__  r   r$   okN)r   r    r!   r   r:   r   OKr#   r$   r%   r  r          
Br$   r  c                   0    e Zd ZU dZ edd      Zeed<   y)OptimizersStatusOneOf1z2
    Something wrong happened with optimizers
    .z(Something wrong happened with optimizersr   r  N)r   r    r!   r   r   r  r:   r"   r#   r$   r%   r  r    s     s(RSE3Sr$   r  c                   t    e Zd ZU  edd      Zeed<    edd      Zed   ed	<    edd
      Z	ed   ed<   y)OrderBy.zPayload key to order byr   r  Nz=Direction of ordering: `asc` or `desc`. Default is ascending.r?   r  	directionzmWhich payload value to start scrolling from. Default is the lowest value for `asc` and the highest for `desc`	StartFrom
start_from)
r   r    r!   r   r  r:   r"   r  r
   r  r#   r$   r%   r  r    sQ    S&?@C@',"a(Ix$  ). D)J% r$   r  c                   ,    e Zd ZU  edd      Zded<   y)OrderByQuery.r   r   OrderByInterfaceorder_byN)r   r    r!   r   r  r"   r#   r$   r%   r  r    s    #("#=H =r$   r  c                   ,    e Zd ZU  edd      Zded<   y)OverwritePayloadOperation.r   r   
SetPayloadoverwrite_payloadN)r   r    r!   r   r  r"   r#   r$   r%   r  r    s    &+CR&@|@r$   r  c                   ,    e Zd ZU  edd      Zeed<   y)r   .r   r   connection_pool_sizeN)r   r    r!   r   r  r-   r"   r#   r$   r%   r   r     s     %cr :#:r$   r   c                   h    e Zd ZU  edd      Zeed<    edd      Zeed<    edd      Z	eed<   y)PartialSnapshotTelemetry.r   r    ongoing_create_snapshot_requestsis_recoveringrecovery_timestampN)
r   r    r!   r   r  r-   r"   r  rL   r  r#   r$   r%   r  r    s7    ,1#2,F$cF4M44#CR88r$   r  c                   0    e Zd ZU dZ edd      Zeed<   y)r  z
    Payload field
    .zPayload field namer   r  N)r   r    r!   r   r   r  r:   r"   r#   r$   r%   r  r    s     S&:;C;r$   r  c                   r    e Zd ZU dZ edd      Zded<    edd      Zed	   ed
<    edd      Z	e
ed<   y)r   z<
    Display payload field type &amp; index information
    .z2Display payload field type &amp; index informationr   PayloadSchemaType	data_typeNr?   PayloadSchemaParamsr   z(Number of points indexed with this indexr  )r   r    r!   r   r   r  r"   r   r
   r  r-   r#   r$   r%   r   r     sM     &+3<p%qI"q.3"V/FH*+  )STFCTr$   r   c                       e Zd ZU  edd      Zee   ed<    edd      Zeed<    edd      Z	e
ed	<    edd
      Ze
ed<    edd      Zee
   ed<   y)PayloadIndexTelemetryNr   r?   re  .r   
index_typez,The amount of values indexed for all points.points_values_countz:The amount of points that have at least one value indexed.r   histogram_bucket_size)r   r    r!   r   re  r
   r:   r"   r  r  r-   r   r  r#   r$   r%   r  r    sc     %d CJCCR0J0$S6deec/klL#l+02+N8C=Nr$   r  c                   <    e Zd ZdZdefdZdZdZdZdZ	dZ
d	Zd
ZdZy)r  z-
    All possible names of payload types
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zPayloadSchemaType.__str__  r   r$   r  r  r  r_  r  rL   r   r   N)r   r    r!   r   r:   r   r  r  r=  r`  TEXTr|   r  r   r#   r$   r%   r  r    s=      GGE
CDDHDr$   r  c                   2    e Zd ZU  edd      Zee   ed<   y)PayloadSelectorExclude.z*Exclude this fields from returning payloadr   excludeN)r   r    r!   r   r  r   r:   r"   r#   r$   r%   r  r    s    s0\]GT#Y]r$   r  c                   2    e Zd ZU  edd      Zee   ed<   y)PayloadSelectorInclude.zOnly include this payload keysr   includeN)r   r    r!   r   r   r   r:   r"   r#   r$   r%   r  r  !  s    s0PQGT#YQr$   r  c                   2    e Zd ZU  edd      Zed   ed<   y)PayloadStorageTypeOneOf.r   r   )	in_memoryrw   Nr   r    r!   r   rw   r	   r"   r#   r$   r%   r  r  %  s"     	cr" 	' #r$   r  c                   2    e Zd ZU  edd      Zed   ed<   y)PayloadStorageTypeOneOf1.r   r   )ry   rw   Nr  r#   r$   r%   r  r  +  s"     	cr" 	' #r$   r  c                   2    e Zd ZU  edd      Zed   ed<   y)PayloadStorageTypeOneOf2.r   r   )mmaprw   Nr  r#   r$   r%   r  r  1  s"     	cr" 	' #r$   r  c                   2    e Zd ZU  edd      Zed   ed<   y)PayloadStorageTypeOneOf3.r   r   )in_ram_mmaprw   Nr  r#   r$   r%   r  r  7  s"     	cr" 	' #r$   r  c                   0    e Zd ZU dZ edd      Zeed<   y)r   z.
    Information of a peer in the cluster
    .z$Information of a peer in the clusterr   uriN)r   r    r!   r   r   r  r:   r"   r#   r$   r%   r   r   =  s     S&LMCMr$   r   c                   t    e Zd ZU  edd      Zed   ed<    edd      Zded<    ed	d
      Ze	d   ed<   y	)rp  .z:Scored points that have the same value of the group_by keyr   r  r  r   GroupIdr  Nz1Record that has been looked up using the group idr?   r  r  )
r   r    r!   r   r  r   r"   r  r  r
   r#   r$   r%   rp  rp  E  sA     %c7s tD$}
t#2.B	.!&tAt!uFHXur$   rp  c                   V    e Zd ZU  edd      Zed   ed<    edd      Zed   ed	<   y)
PointIdsList.r   r   rU   r  Nr?   rB  rC  	r   r    r!   r   r  r   r"   rC  r
   r#   r$   r%   r  r  K  s0    &+CR&@FD"#@.3Db.QIx*+Qr$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zed	   ed
<    edd      Z	ed   ed<    edd      Z
ed   ed<   y)PointRequestNrA  r?   rB  rC  .zLook for points with idsr   rU   rV   BSelect which payload to return with the response. Default is true.r  r  r   r  r  )r   r    r!   r   rC  r
   r"   rV   r   r  r  r#   r$   r%   r  r  P  sn    .3k/Ix*+  $):T#UC	 U5:"f6L(12  +0"*MK,'Mr$   r  c                   n    e Zd ZU  edd      Zded<    edd      Zded<    edd	
      Zed   ed<   y)PointStruct.r   r   rU   r  VectorStructr  NzPayload values (optional)r?   rY   payload)	r   r    r!   r   r  r"   r  r  r
   r#   r$   r%   r  r  \  s<    !#26B6"3B7FN7#(C^#_GXi _r$   r  c                   J    e Zd ZU  edd      Zded<    edd      Zded<   y)	PointVectors.r   r   rU   r  r  r  N)r   r    r!   r   r  r"   r  r#   r$   r%   r  r  b  s%    !#26B6"3B7FN7r$   r  c                   P    e Zd ZU  edd      Zded<    edd      Zed   ed	<   y)
PointsBatch.r   r   rT   batchNr?   rB  rC  )r   r    r!   r   r  r"   rC  r
   r#   r$   r%   r  r  g  s*    3B/E7/.3Db.QIx*+Qr$   r  c                   V    e Zd ZU  edd      Zed   ed<    edd      Zed   ed	<   y)

PointsList.r   r   r  r  Nr?   rB  rC  r  r#   r$   r%   r!  r!  l  s/    "'"<FD<.3Db.QIx*+Qr$   r!  c                   ,    e Zd ZU  edd      Zded<   y)PowExpression.r   r   	PowParamspowN)r   r    r!   r   r%  r"   r#   r$   r%   r#  r#  q  r  r$   r#  c                   J    e Zd ZU  edd      Zded<    edd      Zded<   y)r$  .r   r   r3   baseexponentN)r   r    r!   r   r'  r"   r(  r#   r$   r%   r$  r$  u  s$    s3D,3"3B7Hl7r$   r$  c                   >   e Zd ZU  edd      Zeeed    d f      ed<    edd      Z	ed   ed<    edd      Z
ee   ed	<    edd
      Zed   ed<    edd      Zed   ed<    edd      Zee   ed<    edd      Zee   ed<    edd      Zed   ed<   y)PrefetchNzhSub-requests to perform first. If present, the query will be performed on the results of the prefetches.r?   prefetchUQuery to perform. If missing without prefetches, returns points ordered by their IDs.QueryInterfacequeryUDefine which vector name to use for querying. If missing, the default vector is used.r  SFilter conditions - return only those points that satisfy the specified conditions.rE  rF  +Search params for when there is no prefetchr  r   5Return points with scores better than this threshold.score_threshold.Max number of points to return. Default is 10.r  The location to use for IDs lookup, if not specified - use the current collection and the &#x27;using&#x27; vector Note: the other collection vectors should have the same vector size as the &#x27;using&#x27; vector in the current collectionr  r  )r   r    r!   r   r+  r
   r   r   r"   r.  r  r:   rF  r   r3  r  r  r-   r  r#   r$   r%   r*  r*  z  s    >C~?HhuT*-z9:;  ).k)E8$%  !kE8C=  "'"w"FHX  (-TGt'uFH^$u',"Y(OXe_  !;klE8C=l.3 G/K*+ r$   r*  c                   ,    e Zd ZU  edd      Zded<   y)ProductQuantization.r   r   ProductQuantizationConfigproductN)r   r    r!   r   r9  r"   r#   r$   r%   r7  r7    s    +0"+EG(Er$   r7  c                   P    e Zd ZU  edd      Zded<    edd      Zee   ed<   y)	r8  .r   r   r  compressionNr?   ra   )	r   r    r!   r   r;  r"   ra   r
   rL   r#   r$   r%   r8  r8    s)    &+CR&@K#@!&t!DJDr$   r8  c                   ~    e Zd ZU dZ edd      Zee   ed<    edd      Z	ee   ed<    edd	      Z
ee   ed
<   y)QuantizationSearchParams-
    Additional parameters of the search
    Fz9If true, quantized vectors are ignored. Default is false.r?   ignoreNzIf true, use original vectors to re-score top-k results. Might require more time in case if original vectors are stored on disk. If not set, qdrant decides automatically apply rescoring or not.rescoreaZ  Oversampling factor for quantization. Default is 1.0.  Defines how many extra vectors should be pre-selected using quantized index, and then re-scored using original vectors.  For example, if `oversampling` is 2.4 and `limit` is 100, then 240 vectors will be pre-selected using quantized index, and then top-100 will be returned after re-scoring.oversampling)r   r    r!   r   r   r?  r
   rL   r"   r@  rA  r  r#   r$   r%   r=  r=    sd     ##^FHTN  $ XGXd^  %* q%L(5/ r$   r=  c                      e Zd ZU  edd      Zed   ed<    edd      Zeee	d   df      ed<    edd	      Z
ed
   ed<    edd      Zee   ed<    edd      Zed   ed<    edd      Zed   ed<    edd      Zee   ed<    edd      Zed   ed<    edd      Zed   ed<    edd      Zed   ed<    edd !      Zeed"<    edd#      Zee   ed$<    edd%      Zee   ed&<    edd'      Zed(   ed)<   y)*QueryGroupsRequestNr   r?   rB  rC  jSub-requests to perform first. If present, the query will be performed on the results of the prefetch(es).r*  r+  r,  r-  r.  r/  r  r0  rE  rF  r1  r  r   r2  r3  TOptions for specifying which vectors to include into the response. Default is false.r  r  IOptions for specifying which payload to include or not. Default is false.r  r  r5  r  r  .Payload field to group by, must be a string or number field. If the field contains more than 1 value, all values will be used for grouping. One point can be in multiple groups.r   group_byz;Maximum amount of points to return per group. Default is 3.
group_sizez2Maximum amount of groups to return. Default is 10.r  9Look for points in another collection using the group idsWithLookupInterfacewith_lookup)r   r    r!   r   rC  r
   r"   r+  r   r   r.  r  r:   rF  r   r3  r  r  r  r  rH  rI  r-   r  rL  r#   r$   r%   rC  rC    s   .3Db.QIx*+Q>C A?HhuT*-z9:;  ).k)E8$%  !kE8C=  "'"w"FHX  (-TGt'uFH^$u',"Y(OXe_  +0"x+K,'  6;"m6L(12  /4 G/K*+   GHc  !&"_!J  !;opE8C=p38"]4K/0 r$   rC  c                      e Zd ZU  edd      Zed   ed<    edd      Zeee	d   df      ed<    edd	      Z
ed
   ed<    edd      Zee   ed<    edd      Zed   ed<    edd      Zed   ed<    edd      Zee   ed<    edd      Zee   ed<    edd      Zee   ed<    edd      Zed   ed<    edd      Zed   ed<    edd       Zed!   ed"<   y)#QueryRequestNr   r?   rB  rC  rD  r*  r+  r,  r-  r.  r/  r  r0  rE  rF  r1  r  r   r2  r3  r4  r  z9Offset of the result. Skip this many points. Default is 0r  rE  r  r  rF  r  r  r5  r  r  )r   r    r!   r   rC  r
   r"   r+  r   r   r.  r  r:   rF  r   r3  r  r  r-   r  r  r  r  r#   r$   r%   rN  rN    s`   .3Db.QIx*+Q>C A?HhuT*-z9:;  ).k)E8$%  !kE8C=  "'"w"FHX  (-TGt'uFH^$u',"Y(OXe_  !;klE8C=l!$<wxFHSMx*/"x+K,'  6;"m6L(12  /4 G/K*+ r$   rN  c                   2    e Zd ZU  edd      Zed   ed<   y)QueryRequestBatch.r   r   rN  r  Nr  r#   r$   r%   rP  rP    s    %*3B%?Hd>"?r$   rP  c                   2    e Zd ZU  edd      Zed   ed<   y)r  .r   r   r  r  N)r   r    r!   r   r  r   r"   r#   r$   r%   r  r    s    "'"<FD<r$   r  c                       e Zd ZU dZ edd      Zeed<    edd      Zeed<    edd      Z	eed	<    ed
d      Z
ee   ed<    ed
d      Zed   ed<    edd      Zeed<   y
)r   z:
    Summary information about the current raft state
    .a(  Raft divides time into terms of arbitrary length, each beginning with an election. If a candidate wins the election, it remains the leader for the rest of the term. The term number increases monotonically. Each server stores the current term number which is also exchanged in every communication.r   r   zSThe index of the latest committed (finalized) operation that this peer is aware of.r   zANumber of consensus operations pending to be applied on this peerr   NzLeader of the current termr?   leaderz%Role of this peer in the current termr   r   z!Is this peer a voter or a learnerr   )r   r    r!   r   r   r   r-   r"   r   r   rS  r
   r   r   rL   r#   r$   r%   r   r     s      D#  nFC  $\  "$<XYFHSMY"'Bi"jD(;
j3,OPHdPr$   r   c                       e Zd ZU dZ edd      Zee   ed<    edd      Z	ee   ed<    edd      Z
ee   ed	<    edd
      Zee   ed<   y)Ranger  Nr  r?   r  r  r  r  r  r  r  )r   r    r!   r   r   r  r
   r  r"   r  r  r  r#   r$   r%   rU  rU    sa      :STBT:STBT ;VWC%W ;VWC%Wr$   rU  c                   (    e Zd ZdZdefdZdZdZdZy)ReadConsistencyTypea  
    * `majority` - send N/2+1 random request and return points, which present on all of them  * `quorum` - send requests to all nodes and return points which present on majority of nodes  * `all` - send requests to all nodes and return points which present on all nodes
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zReadConsistencyType.__str__+  r   r$   majorityquorumr  N)	r   r    r!   r   r:   r   MAJORITYQUORUMALLr#   r$   r%   rW  rW  &  s$      HF
Cr$   rW  c                   $   e Zd ZU  edd      Zed   ed<    eg d      Zeed      ed<    eg d	      Z	eed      ed
<    edd      Z
ed   ed<    edd      Zed   ed<    edd      Zed   ed<    edd      Zed   ed<    edd      Zed   ed<    edd      Zee   ed<    edd      Zed   ed<    edd      Zed    ed!<    ed"d#$      Zeed%<    ed"d&$      Zeed'<    ed"d($      Zeed)<    edd*      Zed+   ed,<   y)-RecommendGroupsRequestNrA  r?   rB  rC  !Look for vectors closest to thoser4  r5  Try to avoid vectors like thisr6  =How to use positive and negative examples to find the resultsRecommendStrategystrategyrD  rE  rF  r  r  r   r  r  r  r  r  r    Define a minimal score threshold for the result. If defined, less similar results will not be returned. Score of the returned result might be higher or smaller than the threshold depending on the Distance function used. E.g. for cosine similarity only higher scores will be returned.r3  r  r  r  r  r  r  .rG  r   rH  ,Maximum amount of points to return per grouprI  "Maximum amount of groups to returnr  rJ  rK  rL  )r   r    r!   r   rC  r
   r"   r5  r   r6  rd  rF  r   r  r  r3  r  r  r  rH  r:   rI  r-   r  rL  r#   r$   r%   r_  r_  3  s   .3k/Ix*+  49Qt3uHht./0u38Qq3rHht./0r.3"a/Hh*+  "'tAw!xFHXx',TGa'bFH^$b5:"g6L(12  +0"t+K,'  (- r(OXe_  &+q&E8M"  /4 |/K*+   GHc  C-[\J\s(LME3M38"]4K/0 r$   r_  c                       e Zd ZU  edd      Zeed      ed<    edd      Zeed      ed<    edd      Z	ed	   ed
<   y)RecommendInputNz9Look for vectors closest to the vectors from these pointsr?   r:  r5  z6Try to avoid vectors like the vector from these pointsr6  z3How to use the provided vectors to find the resultsrc  rd  )
r   r    r!   r   r5  r
   r   r"   r6  rd  r#   r$   r%   ri  ri  \  se    .3"]/HhtM*+  /4"Z/HhtM*+  /4"W/Hh*+ r$   ri  c                   ,    e Zd ZU  edd      Zded<   y)RecommendQuery.r   r   ri  	recommendN)r   r    r!   r   rl  r"   r#   r$   r%   rk  rk  h  s    "'"<I<r$   rk  c                      e Zd ZU dZ edd      Zed   ed<    eg d      Zee	d      ed	<    eg d
      Z
ee	d      ed<    edd      Zed   ed<    edd      Zed   ed<    edd      Zed   ed<    edd      Zeed<    edd      Zee   ed<    edd      Zed   ed<    edd      Zed   ed <    edd!      Zee   ed"<    edd#      Zed$   ed%<    edd&      Zed'   ed(<   y))RecommendRequesta  
    Recommendation request. Provides positive and negative examples of the vectors, which can be ids of points that are already stored in the collection, raw vectors, or even ids and vectors combined.  Service should look for the points which are closer to positive examples and at the same time further to negative examples. The concrete way of how to compare negative and positive distances is up to the `strategy` chosen.
    NrA  r?   rB  rC  r`  r4  r5  ra  r6  rb  rc  rd  rD  rE  rF  r  r  r   .r  r   r  r  r  r  r  r  r  r  r  re  r3  r  r  r  r  r  r  )r   r    r!   r   r   rC  r
   r"   r5  r   r6  rd  rF  r   r  r-   r  r  r  r3  r  r  r  r#   r$   r%   rn  rn  l  s|    /4k/Ix*+  49Qt3uHht./0u38Qq3rHht./0r.3"a/Hh*+  "'tAw!xFHXx',TGa'bFH^$bs(HIE3I! UFHSM  6;"g6L(12  +0"t+K,'  (- r(OXe_  &+q&E8M"  /4 |/K*+ r$   rn  c                   2    e Zd ZU  edd      Zed   ed<   y)RecommendRequestBatch.r   r   rn  r  Nr  r#   r$   r%   rp  rp    s    ).s)CHd%&Cr$   rp  c                   (    e Zd ZdZdefdZdZdZdZy)rc  a  
    How to use positive and negative examples to find the results, default is `average_vector`:  * `average_vector` - Average positive and negative vectors and create a single query with the formula `query = avg_pos + avg_pos - avg_neg`. Then performs normal search.  * `best_score` - Uses custom search objective. Each candidate is compared against all examples, its score is then chosen from the `max(max_pos_score, max_neg_score)`. If the `max_neg_score` is chosen then it is squared and negated, otherwise it is just the `max_pos_score`.  * `sum_scores` - Uses custom search objective. Compares against all inputs, sums all the scores. Scores against positive vectors are added, against negatives are subtracted.
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zRecommendStrategy.__str__  r   r$   average_vector
best_score
sum_scoresN)	r   r    r!   r   r:   r   AVERAGE_VECTOR
BEST_SCORE
SUM_SCORESr#   r$   r%   rc  rc    s$      &NJJr$   rc  c                       e Zd ZU dZ edd      Zded<    edd	      Zed
   ed<    edd	      Z	ed   ed<    edd	      Z
ed   ed<    edd	      Zed   ed<   y)r  z
    Point data
    .z
Point datar   rU   r  N&Payload - values assigned to the pointr?   rY   r  Vector of the pointVectorStructOutputr  	Shard Keyrj  rC  
OrderValueorder_value)r   r    r!   r   r   r  r"   r  r
   r  rC  r  r#   r$   r%   r  r    sv     "#<@B@#(Ck#lGXi l-24Mb-cFH)*c&+Dk&RIx
#R*/,*WK,'Wr$   r  c                       e Zd ZU  edd      Zeed<    edd      Zed   ed	<    edd
      Z	eed<    edd      Z
ded<   y)r   .zRemote shard idr   r*   NrJ  r?   rj  rC  zRemote peer idr   r   rK  rL  )r   r    r!   r   r*   r-   r"   rC  r
   r   rL  r#   r$   r%   r   r     sN    #+<=Hc=&+DFa&bIx
#b*:;GS;!#26E>6r$   r   c                       e Zd ZU  edd      Zeed<    edd      Zee   ed<    edd      Z	ded	<    edd      Z
ded
<   y)RemoteShardTelemetry.r   r   r*   Nr?   r   rt  r  updates)r   r    r!   r   r*   r-   r"   r   r
   r  r  r#   r$   r%   r  r    sL    #2.Hc."4R@GXc]@.3CR.HH+H-23B-GG*Gr$   r  c                   N    e Zd ZU dZ edd      Zeed<    edd      Zeed<   y)RenameAlias#
    Change alias to a new one
    .Change alias to a new oner   old_alias_namenew_alias_nameN)	r   r    r!   r   r   r  r:   r"   r  r#   r$   r%   r  r    s-      1LMNCM1LMNCMr$   r  c                   0    e Zd ZU dZ edd      Zded<   y)RenameAliasOperationr  .r  r   r  rename_aliasN)r   r    r!   r   r   r  r"   r#   r$   r%   r  r    s     #(9T"UL-Ur$   r  c                   J    e Zd ZU  edd      Zeed<    edd      Zeed<   y)r  .r   r   r*   r   N)r   r    r!   r   r*   r-   r"   r   r#   r$   r%   r  r    s$    #2.Hc."-GS-r$   r  c                       e Zd ZU  edd      Zeed<    edd      Zed   ed<    edd      Z	ed	   ed
<    edd      Z
ed   ed<    edd      Zeedf   ed<    edd      Zed   ed<   y)r  .r   r   r  Nr?   rj  r  rN  localr  remoterK  replicate_statesr  partial_snapshot)r   r    r!   r   r  r-   r"   r  r
   r  r  r   r  r   r:   r  r#   r$   r%   r  r    s    CR(B( %d CC*	C-24R-PE8)*P+0"+EFD'(E272Ld3./L=B4]_=`h9:`r$   r  c                   @    e Zd ZdZdefdZdZdZdZdZ	dZ
d	Zd
ZdZdZy)rK  z9
    State of the single shard within a replica set.
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zReplicaState.__str__  r   r$   ActiveDeadPartialInitializingListenerPartialSnapshotRecovery
ReshardingReshardingScaleDownN)r   r    r!   r   r:   r   ACTIVEDEADPARTIALINITIALIZINGLISTENERPARTIALSNAPSHOTRECOVERY
RESHARDINGRESHARDINGSCALEDOWNr#   r$   r%   rK  rK    sC      FDG!LH'OHJ/r$   rK  c                       e Zd ZU  edd      Zeed<    edd      Zeed<    edd      Zeed<    edd	      Z	e
d
   ed<   y)ReplicateShard.r   r   r*   r+   r,   Nr  r?   r  r  r  r#   r$   r%   r  r    r  r$   r  c                   ,    e Zd ZU  edd      Zded<   y)ReplicateShardOperation.r   r   r  replicate_shardN)r   r    r!   r   r  r"   r#   r$   r%   r  r    s    (-cr(BO%Br$   r  c                   J    e Zd ZU  edd      Zded<    edd      Zded<   y)	RequestsTelemetry.r   r   WebApiTelemetryrestrs  grpcN)r   r    r!   r   r  r"   r  r#   r$   r%   r  r    s%    #CR8D
8!#26D/6r$   r  c                        e Zd ZdZdefdZdZy)ReshardingDirectionOneOfz#
    Scale up, add a new shard
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   z ReshardingDirectionOneOf.__str__		  r   r$   upN)r   r    r!   r   r:   r   UPr#   r$   r%   r  r  	  r  r$   r  c                        e Zd ZdZdefdZdZy)ReshardingDirectionOneOf1z$
    Scale down, remove a shard
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   z!ReshardingDirectionOneOf1.__str__	  r   r$   downN)r   r    r!   r   r:   r   DOWNr#   r$   r%   r  r  	        Dr$   r  c                       e Zd ZU  edd      Zded<    edd      Zeed<    edd      Zeed<    edd	      Z	e
d
   ed<   y)r   .r   r   ReshardingDirectionr  r*   r   Nr?   rj  rC  )r   r    r!   r   r  r"   r*   r-   r   rC  r
   r#   r$   r%   r   r   	  sL    ',Sb'AI$A#2.Hc."-GS-&+Db&IIx
#Ir$   r   c                       e Zd ZU  edd      Zeed<    edd      Zeed<    edd      Zeed<    edd      Z	ded<   y	)
RestartTransfer.r   r   r*   r,   r+   r  r  N)
r   r    r!   r   r*   r-   r"   r,   r+   r  r#   r$   r%   r  r  !	  sG    #2.Hc.cr2L#2CR0J0$)#2$>F!>r$   r  c                   ,    e Zd ZU  edd      Zded<   y)RestartTransferOperation.r   r   r  restart_transferN)r   r    r!   r   r  r"   r#   r$   r%   r  r  (	      */*D'Dr$   r  c                   L   e Zd ZU  edd      Zee   ed<    edd      Zee   ed<    edd      Z	e
ed<    edd      Zee   ed	<    edd      Zee   ed
<    edd      Zee   ed<    edd      Zeed<    edd      Zed   ed<    edd      Zeed      ed<   y)rG   Nr   r?   distributiondistribution_version.r   	is_dockercoresram_size	disk_size	cpu_flagsrL  
cpu_endianrm  gpu_devices)r   r    r!   r   r  r
   r:   r"   r  r  rL   r  r-   r  r  r  r  r  r   r#   r$   r%   rG   rG   ,	  s    "'""EL(3-E*/"*M(3-MCR0It0 2>E8C=>#DbAHhsmA$TrBIx}B3B/Is/(-d(KJ%K8=dXZ8[K$345[r$   rG   c                       e Zd ZdZy)SamplerandomN)r   r    r!   RANDOMr#   r$   r%   r  r  8	  s    Fr$   r  c                   ,    e Zd ZU  edd      Zded<   y)SampleQuery.r   r   r  sampleN)r   r    r!   r   r  r"   r#   r$   r%   r  r  <	  rL  r$   r  c                   ,    e Zd ZU  edd      Zded<   y)ScalarQuantization.r   r   ScalarQuantizationConfigscalarN)r   r    r!   r   r  r"   r#   r$   r%   r  r  @	  r_   r$   r  c                   t    e Zd ZU  edd      Zded<    edd      Zee   ed	<    edd
      Z	ee
   ed<   y)r  .r   r   
ScalarTyperw   NziQuantile for quantization. Expected value range in [0.5, 1.0]. If not set - use the whole range of valuesr?   quantilez]If true - quantized vectors always will be stored in RAM, ignoring the config of main storagera   )r   r    r!   r   rw   r"   r  r
   r  ra   rL   r#   r$   r%   r  r  D	  sK    s3D,3 %!Hhuo  "'s"J r$   r  c                       e Zd ZdZy)r  int8N)r   r    r!   INT8r#   r$   r%   r  r  P	  r}   r$   r  c                       e Zd ZU dZ edd      Zded<    edd      Zeed<    edd	      Z	e
ed
<    edd      Zed   ed<    edd      Zed   ed<    edd      Zed   ed<    edd      Zed   ed<   y)r  z
    Search result
    .zSearch resultr   rU   r  zPoint versionr>   z*Points vector distance to the query vectorscoreNrz  r?   rY   r  r{  r|  r  r}  rj  rC  zOrder-by valuer~  r  )r   r    r!   r   r   r  r"   r>   r-   r  r  r  r
   r  rC  r  r#   r$   r%   r  r  T	  s     "#?CBC/:GS:*VWE5W#(Ck#lGXi l-24Mb-cFH)*c&+Dk&RIx
#R*/JZ*[K,'[r$   r  c                      e Zd ZU dZ edd      Zed   ed<    edd      Zed   ed	<    edd
      Z	ee
   ed<    edd      Zed   ed<    edd      Zed   ed<    edd      Zed   ed<    edd      Zed   ed<   y)ScrollRequestzQ
    Scroll request - paginate over all points which matches given condition
    NrA  r?   rB  rC  zStart ID to read points from.rU   r  zPage size. Default: 10r  zSLook only for points which satisfies this conditions. If not provided - all points.rE  rF  r  r  r  zGScroll request - paginate over all points which matches given conditionr  r  z%Order the records by a payload field.r  r  )r   r    r!   r   r   rC  r
   r"   r  r  r-   rF  r  r  r  r#   r$   r%   r  r  b	  s     /4k/Ix*+  +0Ji*jFH&'j ;STE8C=T!&"w"FHX  6;"f6L(12  +0"k+K,'  .34Mt-uHh)*ur$   r  c                   Z    e Zd ZU dZ edd      Zed   ed<    edd	      Ze	d
   ed<   y)r  z+
    Result of the points read request
    .zList of retrieved pointsr   r  r  Nz:Offset which should be used to retrieve a next page resultr?   rU   next_page_offset)
r   r    r!   r   r   r  r   r"   r  r
   r#   r$   r%   r  r  y	  s=     #34NOFDNO49"^5h01 r$   r  c                      e Zd ZU  edd      Zed   ed<    edd      Zd	ed
<    edd      Zed   ed<    edd      Z	ed   ed<    edd      Z
ed   ed<    edd      Zed   ed<    edd      Zee   ed<    edd      Zeed<    edd      Zeed<    edd      Zeed<    edd      Zed    ed!<   y)"SearchGroupsRequestNrA  r?   rB  rC  .r   r   NamedVectorStructr  rD  rE  rF  r  r  r   r  r  r  r  r  r  re  r3  rG  rH  rf  rI  rg  r  rJ  rK  rL  )r   r    r!   r   rC  r
   r"   r  rF  r   r  r  r3  r  rH  r:   rI  r-   r  rL  r#   r$   r%   r  r  	  s   .3k/Ix*+  #("<F<!&tAw!xFHXx',TGa'bFH^$b5:"g6L(12  +0"t+K,'  (- r(OXe_   GHc  C-[\J\s(LME3M38"]4K/0 r$   r  c                       e Zd ZU  edd      Zee   ed<    edd      Zee   ed<    edd      Z	ee
   ed<    edd	      Zed
   ed<   y)r  .zRow indices of the matrixr   offsets_rowzColumn indices of the matrixoffsets_colz)Scores associated with matrix coordinatesscoreszIds of the points in orderrU   rV   N)r   r    r!   r   r  r   r-   r"   r  r  r  rV   r#   r$   r%   r  r  	  s\    "34OPKcP"34RSKcS1\]FDK]#(:V#WC	 Wr$   r  c                   l    e Zd ZU dZ edd      Zded<    edd      Zded<    edd      Ze	ed<   y	)
SearchMatrixPairz*
    Pair of points (a, b) with score
    .z Pair of points (a, b) with scorer   rU   abr  N)
r   r    r!   r   r   r  r"   r  r  r  r#   r$   r%   r  r  	  sA     !2TUAU 2TUAU*LME5Mr$   r  c                   2    e Zd ZU  edd      Zed   ed<   y)r  .z#List of pairs of points with scoresr   r  pairsN)r   r    r!   r   r  r   r"   r#   r$   r%   r  r  	  s    &+C=b&cE4"#cr$   r  c                       e Zd ZU  edd      Zed   ed<    edd      Zed   ed<    edd	      Zee	   ed
<    edd      Z
ee	   ed<    edd      Zee   ed<   y)SearchMatrixRequestNrA  r?   rB  rC  rD  rE  rF  z;How many points to select and search within. Default is 10.r  z5How many neighbours per sample to find. Default is 3.r  r/  r  )r   r    r!   r   rC  r
   r"   rF  r  r-   r  r  r:   r#   r$   r%   r  r  	  s    .3k/Ix*+  "'tAw!xFHXx!"_FHSM  !;rsE8C=s kE8C= r$   r  c                       e Zd ZU dZ edd      Zee   ed<    edd      Z	ee
   ed<    edd	      Zed
   ed<    edd      Zee
   ed<   y)r  r>  NzParams relevant to HNSW index Size of the beam in a beam-search. Larger the value - more accurate the result, more time required for search.r?   hnsw_efFzYSearch without approximation. If set to true, search may run long but with exact results.rG  zQuantization paramsr=  quantizationzIf enabled, the engine will only perform search among indexed or small segments. Using this option prevents slow searches in case of delayed index, but does not guarantee that all uploaded vectors will be included in search resultsindexed_only)r   r    r!   r   r   r  r
   r-   r"   rG  rL   r  r  r#   r$   r%   r  r  	  s|     # cGXc]  "oE8D>  :?tYn9oL(56o#( ~$L(4. r$   r  c                   J   e Zd ZU dZ edd      Zed   ed<    edd	      Zd
ed<    edd      Z	ed   ed<    edd      Z
ed   ed<    edd	      Zeed<    edd      Zee   ed<    edd      Zed   ed<    edd      Zed   ed<    edd      Zee   ed<   y)SearchRequestz
    Search request. Holds all conditions and parameters for the search of most similar points by vector similarity given the filtering restrictions.
    NrA  r?   rB  rC  .zSearch request. Holds all conditions and parameters for the search of most similar points by vector similarity given the filtering restrictions.r   r  r  rD  rE  rF  r  r  r   r  r  r  r  r  r  r  r  r  r  re  r3  )r   r    r!   r   r   rC  r
   r"   r  rF  r   r  r-   r  r  r  r3  r  r#   r$   r%   r  r  	  s     /4k/Ix*+  #( g#F  "'tAw!xFHXx',TGa'bFH^$bs(HIE3I! UFHSM  6;"g6L(12  +0"t+K,'  (- r(OXe_ r$   r  c                   2    e Zd ZU  edd      Zed   ed<   y)SearchRequestBatch.r   r   r  r  Nr  r#   r$   r%   r  r  	  s    &+CR&@Hd?#@r$   r  c                       e Zd ZU  ei d      Zeeedf      ed<    edd      Z	eeedf      ed<    edd	      Z
d
ed<   y)SegmentConfigr   r?   VectorDataConfigvector_dataNSparseVectorDataConfigsparse_vector_data.r   PayloadStorageTypepayload_storage_type)r   r    r!   r   r  r
   r   r:   r"   r  r  r#   r$   r%   r  r  	  s[    ;@Y[;\K$s$6678\HMVZhjHkc+C&C!DEk16s1K.Kr$   r  c                      e Zd ZU dZ edd      Zded<    edd      Zeed<    edd      Z	eed<    edd      Z
eed	<    edd      Zeed
<    edd      Zeed<    edd      Zeed<    edd      Zeed<    edd      Zeed<    edd      Zeed<    edd      Zeedf   ed<    edd      Zeedf   ed<   y)SegmentInfoz.
    Aggregated information about segment
    .z$Aggregated information about segmentr   SegmentTypesegment_typerV  rU  num_indexed_vectorsnum_deleted_vectorsrR  rS  z@An estimation of the effective amount of bytes used for payloadsrT  ram_usage_bytesdisk_usage_bytesis_appendabler   index_schemaVectorDataInfor  N)r   r    r!   r   r   r  r"   rV  r-   rU  r  r	  rS  rT  r
  r  r  rL   r  r   r:   r  r#   r$   r%   r  r  
  s    #(9_"`L-`S.TUKUC-STJT$S6\]]$S6\]]# P   %[   !2XYOSY!#3YZcZ1WXM4X27Io2pL$s../p/4SFl/mKc++,mr$   r  c                       e Zd ZU  edd      Zded<    edd      Zded<    edd      Zed   ed	<    edd      Z	ed
   ed<   y)rW  .r   r   r  infor  r   VectorIndexSearchesTelemetryvector_index_searchesr  payload_field_indicesN)
r   r    r!   r   r  r"   r   r  r   r  r#   r$   r%   rW  rW  
  sV    4D-4#CR8FO8BGY[B\4 >?\;@RT;U4 78Ur$   rW  c                   (    e Zd ZdZdefdZdZdZdZy)r  z
    Type of segment
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zSegmentType.__str__(
  r   r$   r  indexedspecialN)	r   r    r!   r   r:   r   PLAININDEXEDSPECIALr#   r$   r%   r  r  #
  s$      EGGr$   r  c                       e Zd ZU dZ edd      Zded<    edd	      Zee	d
      ed<    edd	      Z
ed   ed<    edd	      Zed   ed<    edd	      Zee   ed<   y)r  r  .r  r   rY   r  Nz*Assigns payload to each point in this listr?   rU   r  z@Assigns payload to each point that satisfy this filter conditionrE  rF  rB  rC  z@Assigns payload to each point that satisfy this path of propertyr  )r   r    r!   r   r   r  r"   r  r
   r   rF  rC  r  r:   r#   r$   r%   r  r  0
  s     jGY  16"N1FHT+,-  "'"d"FHX  /4"s/Ix*+  "dC# r$   r  c                   ,    e Zd ZU  edd      Zded<   y)SetPayloadOperation.r   r   r  set_payloadN)r   r    r!   r   r  r"   r#   r$   r%   r  r  F
  s     %cr :K:r$   r  c                   ,    e Zd ZU  edd      Zeed<   y)ShardCleanStatusFailedTelemetry.r   r   reasonN)r   r    r!   r   r!  r:   r"   r#   r$   r%   r   r   J
  r  r$   r   c                   ,    e Zd ZU  edd      Zeed<   y)!ShardCleanStatusProgressTelemetry.r   r   deleted_pointsN)r   r    r!   r   r$  r-   r"   r#   r$   r%   r#  r#  N
  s    4NC4r$   r#  c                       e Zd ZdZdZdZy)ShardCleanStatusTelemetryOneOfstarteddone	cancelledN)r   r    r!   STARTEDDONE	CANCELLEDr#   r$   r%   r&  r&  R
  s    GDIr$   r&  c                   ,    e Zd ZU  edd      Zded<   y)ShardCleanStatusTelemetryOneOf1.r   r   r#  progressN)r   r    r!   r   r/  r"   r#   r$   r%   r.  r.  X
  s    49#24NH1Nr$   r.  c                   ,    e Zd ZU  edd      Zded<   y)ShardCleanStatusTelemetryOneOf2.r   r   r   failedN)r   r    r!   r   r2  r"   r#   r$   r%   r1  r1  \
  s    05cr0JF-Jr$   r1  c                       e Zd ZU  edd      Zded<    edd      Zed   ed	<    edd
      Zee	   ed<    edd      Z
ee	   ed<   y)ShardSnapshotRecover.r   r   ShardSnapshotLocationlocationNr?   SnapshotPrioritypriorityFOptional SHA256 checksum to verify snapshot integrity before recovery.checksumCOptional API key used when fetching the snapshot from a remote URL.api_key)r   r    r!   r   r6  r"   r8  r
   r:  r:   r<  r#   r$   r%   r4  r4  `
  sc    (-cr(BH%B-24R-PHh)*P#"jHhsm  #"gGXc] r$   r4  c                   ,    e Zd ZdZdefdZdZdZdZdZ	y)	rP  z
    Current state of the shard (supports same states as the collection)  `Green` - all good. `Yellow` - optimization is running, &#x27;Grey&#x27; - optimizations are possible but not triggered, `Red` - some operations failed and was not recovered
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zShardStatus.__str__p
  r   r$   r   r   r   r   Nr   r#   r$   r%   rP  rP  k
  r   r$   rP  c                       e Zd ZU  edd      Zeed<    edd      Zee   ed<    edd	d
      Z	eed<    edd      Z
eed<    edd      Zeed<    edd      Zed   ed<    edd      Zee   ed<   y)r   .r   r   r*   NzpTarget shard ID if different than source shard ID  Used exclusively with `ReshardStreamRecords` transfer method.r?   to_shard_idzSource peer idfromrj  from_zDestination peer idrZ  zyIf `true` transfer is a synchronization of a replicas If `false` transfer is a moving of a shard from one peer to anothersyncr  r  zTA human-readable report of the transfer progress. Available only on the source peer.comment)r   r    r!   r   r*   r-   r"   r@  r
   rB  rZ  rC  rL   r  rD  r:   r#   r$   r%   r   r   y
  s    #2.Hc.!& G"K#  s(8GE3GC%:;B; PD$  /4Db.QFH*+Q""xGXc] r$   r   c                        e Zd ZdZdefdZdZy)ShardTransferMethodOneOfzS
    Stream all shard records in batches until the whole shard is transferred.
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   z ShardTransferMethodOneOf.__str__
  r   r$   stream_recordsN)r   r    r!   r   r:   r   STREAM_RECORDSr#   r$   r%   rF  rF  
  s      &Nr$   rF  c                        e Zd ZdZdefdZdZy)ShardTransferMethodOneOf1zF
    Snapshot the shard, transfer and restore it on the receiver.
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   z!ShardTransferMethodOneOf1.__str__
  r   r$   snapshotN)r   r    r!   r   r:   r   SNAPSHOTr#   r$   r%   rK  rK  
  s      Hr$   rK  c                        e Zd ZdZdefdZdZy)ShardTransferMethodOneOf2z<
    Attempt to transfer shard difference by WAL delta.
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   z!ShardTransferMethodOneOf2.__str__
  r   r$   	wal_deltaN)r   r    r!   r   r:   r   	WAL_DELTAr#   r$   r%   rP  rP  
  s      Ir$   rP  c                        e Zd ZdZdefdZdZy)ShardTransferMethodOneOf3zh
    Shard transfer for resharding: stream all records in batches until all points are transferred.
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   z!ShardTransferMethodOneOf3.__str__
  r   r$   resharding_stream_recordsN)r   r    r!   r   r:   r   RESHARDING_STREAM_RECORDSr#   r$   r%   rU  rU  
  s      !<r$   rU  c                       e Zd ZdZdZy)r   rw  customN)r   r    r!   rx  CUSTOMr#   r$   r%   r   r   
  s    DFr$   r   c                       e Zd ZU  edd      Zeed<    edd      Zee   ed<    edd      Z	e
ed<    edd      Zee   ed	<   y)
r  .r   r   r=   Nr?   creation_timesizer:  )r   r    r!   r   r=   r:   r"   r]  r
   r^  r-   r:  r#   r$   r%   r  r  
  sN    cr*D#*#(2#FM8C=Fcr*D#*#DbAHhsmAr$   r  c                   (    e Zd ZdZdefdZdZdZdZy)r7  z
    Defines source of truth for snapshot recovery:  `NoSync` means - restore snapshot without *any* additional synchronization. `Snapshot` means - prefer snapshot data over the current state. `Replica` means - prefer existing data over the snapshot.
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zSnapshotPriority.__str__
  r   r$   no_syncrM  replicaN)	r   r    r!   r   r:   r   NO_SYNCrN  REPLICAr#   r$   r%   r7  r7  
  s$      GHGr$   r7  c                       e Zd ZU  edd      Zeed<    edd      Zed   ed	<    edd
      Z	ee   ed<    edd      Z
ee   ed<   y)SnapshotRecover.zExamples: - URL `http://localhost:8080/collections/my_collection/snapshots/my_snapshot` - Local path `file:///qdrant/snapshots/test_collection-2022-08-04-10-49-10.snapshot`r   r6  Na[  Defines which data should be used as a source of truth if there are other replicas in the cluster. If set to `Snapshot`, the snapshot will be used as a source of truth, and the current state will be overwritten. If set to `Replica`, the current state will be used as a source of truth, and after recovery if will be synchronized with the snapshot.r?   r7  r8  r9  r:  r;  r<  )r   r    r!   r   r6  r:   r"   r8  r
   r:  r<  r#   r$   r%   rf  rf  
  sx     CHc  .3 r.Hh)*  $"jHhsm  #"gGXc] r$   rf  c                       e Zd ZdZy)SnowballsnowballN)r   r    r!   SNOWBALLr#   r$   r%   rh  rh  
  r  r$   rh  c                   h    e Zd ZdZdefdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdZdZdZdZdZdZy)SnowballLanguagez2
    Languages supported by snowball stemmer.
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zSnowballLanguage.__str__
  r   r$   r  armenianr  r  r  r  r  r  r  r  r  r  r  r  r  r!  r"  tamilr$  N)r   r    r!   r   r:   r   r%  ARMENIANr+  r,  r-  r.  r/  r0  r1  r4  r6  r:  r;  r<  r=  r?  r@  TAMILrB  r#   r$   r%   rl  rl  
  st      FHFEGGFFEIGIJHGGGEGr$   rl  c                   J    e Zd ZU  edd      Zded<    edd      Zded<   y)	SnowballParams.r   r   rh  rw   rl  languageN)r   r    r!   r   rw   r"   rt  r#   r$   r%   rs  rs    s%    Sb1D*1#("#=H =r$   rs  c                   x    e Zd ZU dZ edd      Zee   ed<    edd      Z	d	ed
<    edd      Z
ed   ed<   y)SparseIndexConfig2
    Configuration for sparse inverted index.
    NvWe prefer a full scan search upto (excluding) this number of vectors.  Note: this is number of vectors, not KiloBytes.r?   r  .z(Configuration for sparse inverted index.r   SparseIndexTyper  z,Datatype used to store weights in the index.VectorStorageDatatypedatatype)r   r    r!   r   r   r  r
   r-   r"   r  r{  r#   r$   r%   rv  rv    sZ     */ M*#  %*#;e$fJ!f27"P3Hh./ r$   rv  c                   ~    e Zd ZU dZ edd      Zee   ed<    edd      Z	ee
   ed<    edd      Zed	   ed
<   y)SparseIndexParamsrw  Nrx  r?   r  zUStore index on disk. If set to false, the index will be stored in RAM. Default: falsery   a9  Defines which datatype should be used for the index. Choosing different datatypes allows to optimize memory usage and performance vs accuracy.  - For `float32` datatype - vectors are stored as single-precision floating point numbers, 4 bytes. - For `float16` datatype - vectors are stored as half-precision floating point numbers, 2 bytes. - For `uint8` datatype - vectors are quantized to unsigned 8-bit integers, 1 byte. Quantization to fit byte range `[0, 255]` happens during indexing automatically, so the actual vector data does not need to conform to this range.rq  r{  )r   r    r!   r   r   r  r
   r-   r"   ry   rL   r{  r#   r$   r%   r}  r}    sf     */ M*#  $kGXd^  &+ P	&Hhz" r$   r}  c                        e Zd ZdZdefdZdZy)SparseIndexTypeOneOfz"
    Mutable RAM sparse index
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zSparseIndexTypeOneOf.__str__.  r   r$   
MutableRamN)r   r    r!   r   r:   r   
MUTABLERAMr#   r$   r%   r  r  )  s      Jr$   r  c                        e Zd ZdZdefdZdZy)SparseIndexTypeOneOf1z$
    Immutable RAM sparse index
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zSparseIndexTypeOneOf1.__str__9  r   r$   ImmutableRamN)r   r    r!   r   r:   r   IMMUTABLERAMr#   r$   r%   r  r  4  s      "Lr$   r  c                        e Zd ZdZdefdZdZy)SparseIndexTypeOneOf2z
    Mmap sparse index
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zSparseIndexTypeOneOf2.__str__D  r   r$   MmapNr   r    r!   r   r:   r   MMAPr#   r$   r%   r  r  ?  r  r$   r  c                   Z    e Zd ZU dZ edd      Zee   ed<    edd      Z	ee
   ed<   y)	r  z!
    Sparse vector structure
    .zIndices must be uniquer   indicesz*Values and indices must be the same lengthvaluesN)r   r    r!   r   r   r  r   r-   r"   r  r  r#   r$   r%   r  r  J  s5     s0HIGT#YI1]^FDK^r$   r  c                   T    e Zd ZU dZ edd      Zded<    edd      Zed	   ed
<   y)r   z5
    Config of single sparse vector data storage
    .z+Config of single sparse vector data storager   rv  indexNr?   SparseVectorStorageTypestorage_type)	r   r    r!   r   r   r  r"   r  r
   r#   r$   r%   r   r   S  s9     "'s8e!fEf8="O9L(45 r$   r   c                   Z    e Zd ZU dZ edd      Zed   ed<    edd      Zed   ed	<   y)
r   z5
    Params of single sparse vector data storage
    NzQCustom params for index. If none - values from collection configuration are used.r?   r}  r  zIConfigures addition value modifications for sparse vectors. Default: noner  modifier)	r   r    r!   r   r   r  r
   r"   r  r#   r$   r%   r   r   ^  sD     ,1"u,E8'(  &+"m&Hhz" r$   c                        e Zd ZdZdefdZdZy)SparseVectorStorageTypeOneOfz+
    Storage on disk (rocksdb storage)
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   z$SparseVectorStorageTypeOneOf.__str__p  r   r$   ry   N)r   r    r!   r   r:   r   ON_DISKr#   r$   r%   r  r  k  s      Gr$   r  c                        e Zd ZdZdefdZdZy)SparseVectorStorageTypeOneOf1z4
    Storage in memory maps (gridstore storage)
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   z%SparseVectorStorageTypeOneOf1.__str__{  r   r$   r	  Nr  r#   r$   r%   r  r  v  r  r$   r  c                   ,    e Zd ZU  edd      Zded<   y)SqrtExpression.r   r   r3   sqrtN)r   r    r!   r   r  r"   r#   r$   r%   r  r    s    s3D,3r$   r  c                   t    e Zd ZU  edd      Zded<    edd      Zee   ed<    edd      Z	ed	   ed
<   y)StartResharding.r   r   r  r  Nr?   r   rj  rC  )
r   r    r!   r   r  r"   r   r
   r-   rC  r#   r$   r%   r  r    s?    ',Sb'AI$A"4R@GXc]@&+Db&IIx
#Ir$   r  c                   ,    e Zd ZU  edd      Zded<   y)StartReshardingOperation.r   r   r  start_reshardingN)r   r    r!   r   r  r"   r#   r$   r%   r  r    r  r$   r  c                   ,    e Zd ZdZdefdZdZdZdZdZ	y)	r   z+
    Role of the peer in the consensus
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zStateRole.__str__  r   r$   Follower	CandidateLeaderPreCandidateN)
r   r    r!   r   r:   r   FOLLOWER	CANDIDATELEADERPRECANDIDATEr#   r$   r%   r   r     s)      HIF!Lr$   r   c                   b    e Zd ZU  edd      Zeed      ed<    edd      Zeee	      ed<   y)StopwordsSetNr   r?   r  	languagesrZ  )
r   r    r!   r   r  r
   r   r"   rZ  r:   r#   r$   r%   r  r    s7    ,1$B,OIxZ()O"'""EFHT#YEr$   r  c                      e Zd ZU  edd      Zee   ed<    edd      Zee	   ed<    edd      Z
ee	   ed<    edd	      Zee   ed
<    edd      Zee   ed<    edd      Zee	   ed<    edd      Zee   ed<    edd      Zee   ed<    edd      Zee	   ed<    edd      Zee	   ed<    edd      Zee	   ed<    edd      Zee	   ed<    edd      Zee	   ed<    edd      Zee	   ed<    edd      Zee	   ed <    edd!      Zee	   ed"<    edd#      Zed$   ed%<    edd&      Zed'   ed(<   y))rb  N7Whether strict mode is enabled for a collection or not.r?   r   TMax allowed `limit` parameter for all APIs that don&#x27;t have their own max limit.max_query_limit Max allowed `timeout` parameter.max_timeoutIAllow usage of unindexed fields in retrieval based (e.g. search) filters.unindexed_filtering_retrieveMAllow usage of unindexed fields in filtered updates (e.g. delete by payload).unindexed_filtering_update,Max HNSW value allowed in search parameters.search_max_hnsw_ef'Whether exact search is allowed or not.search_allow_exact)Max oversampling value allowed in search.search_max_oversamplingMax batchsize when upsertingupsert_max_batchsizeEMax size of a collections vector storage in bytes, ignoring replicas. max_collection_vector_size_bytes4Max number of read operations per minute per replicaread_rate_limit5Max number of write operations per minute per replicawrite_rate_limit2Max size of a collections payload storage in bytes!max_collection_payload_size_bytes.Max number of points estimated in a collectionmax_points_count!Max conditions a filter can have.filter_max_conditions1Max size of a condition, eg. items in `MatchAny`.condition_max_sizeMultivector configurationStrictModeMultivectorConfigmultivector_configSparse vector configurationStrictModeSparseConfigsparse_configr   r    r!   r   r   r
   rL   r"   r  r-   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r#   r$   r%   rb  rb    s   #D>wxGXd^x%*"x&OXc]  "'tAc!dK#d38"m4 (4.  27"q2  ).dHv(ww).tIr)ss/4"M0Xe_  +0Jh*i(3-i6;"i7$hsm  &+"X&OXc]  ',"Y'hsm  8="V8%x}  ',DFv&whsmw+0Kn+o8C=o(-"U)  CH"=C!>?  9>dXu8vM845vr$   rb  c                      e Zd ZU  edd      Zee   ed<    edd      Zee	   ed<    edd      Z
ee	   ed<    edd	      Zee   ed
<    edd      Zee   ed<    edd      Zee	   ed<    edd      Zee   ed<    edd      Zee   ed<    edd      Zee	   ed<    edd      Zee	   ed<    edd      Zee	   ed<    edd      Zee	   ed<    edd      Zee	   ed<    edd      Zee	   ed<    edd      Zee	   ed <    edd!      Zee	   ed"<    edd#      Zed$   ed%<    edd&      Zed'   ed(<   y))r   Nr  r?   r   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  !StrictModeMultivectorConfigOutputr  r  StrictModeSparseConfigOutputr  r  r#   r$   r%   r   r     s   #D>wxGXd^x%*"x&OXc]  "'tAc!dK#d38"m4 (4.  27"q2  ).dHv(ww).tIr)ss/4"M0Xe_  +0Jh*i(3-i6;"i7$hsm  &+"X&OXc]  ',"Y'hsm  8="V8%x}  ',DFv&whsmw+0Kn+o8C=o(-"U)  IN"=I!DE  ?D"??M8:; r$   r   c                   2    e Zd ZU  edd      Zee   ed<   y)r   N&Max number of vectors in a multivectorr?   max_vectorsr   r    r!   r   r  r
   r-   r"   r#   r$   r%   r   r         !&tAi!jK#jr$   c                   2    e Zd ZU  edd      Zee   ed<   y)r   Nr  r?   r  r  r#   r$   r%   r   r     r  r$   c                   2    e Zd ZU  edd      Zee   ed<   y)r   NMax length of sparse vectorr?   
max_lengthr   r    r!   r   r  r
   r-   r"   r#   r$   r%   r   r          %d@] ^J^r$   c                   2    e Zd ZU  edd      Zee   ed<   y)r   Nr  r?   r  r  r#   r$   r%   r   r     r  r$   c                   2    e Zd ZU  edd      Zed   ed<   y)SumExpression.r   r   r3   sumN)r   r    r!   r   r  r   r"   r#   r$   r%   r  r    s    #CR8Cl	8r$   r  c                       e Zd ZU  edd      Zeed<    edd      Zded<    edd      Zded<    ed	d
      Z	e
d   ed<    ed	d
      Ze
d   ed<    ed	d
      Ze
d   ed<    ed	d
      Ze
d   ed<   y	)r  .r   r   r  r<   appr  r  Nr?   r   clusterr  requestsrz  memoryrx  hardware)r   r    r!   r   r  r:   r"   r  r  r  r
   r  r  r  r#   r$   r%   r  r  
  s    CR(B($Sb9C	9*/*DK'D,1$B,OGX()O.3Db.QHh*+Q*/"*MFH&'M.3Db.QHh*+Qr$   r  c                   L   e Zd ZU  edd      Zded<    edd      Zed   ed	<    edd
      Zee	   ed<    edd      Z
ee	   ed<    edd      Zee   ed<    edd      Zee   ed<    edd      Zed   ed<    edd      Zee   ed<    edd      Zed   ed<   y)TextIndexParams.r   r   TextIndexTyperw   Nr?   TokenizerType	tokenizerz#Minimum characters to be tokenized.min_token_lenz#Maximum characters to be tokenized.max_token_lenz-If true, lowercase all tokens. Default: true.	lowercasez1If true, support phrase matching. Default: false.phrase_matchingz\Ignore this set of tokens. Can select from predefined languages and/or provide a custom set.StopwordsInterface	stopwordsrx   ry   z*Algorithm for stemming. Default: disabled.StemmingAlgorithmstemmer)r   r    r!   r   rw   r"   r  r
   r  r-   r  r  rL   r  r  ry   r  r#   r$   r%   r  r    s    !#26D/6+02+NIx(N#(Ch#iM8C=i#(Ch#iM8C=i %d@o pIx~p&+"U'OXd^  16r1Ix,-  $D>qrGXd^r-2"N.GX)* r$   r  c                       e Zd ZdZy)r  r  N)r   r    r!   r  r#   r$   r%   r  r  '  r}   r$   r  c                       e Zd ZdZdZdZdZy)r  prefix
whitespacewordmultilingualN)r   r    r!   PREFIX
WHITESPACEWORDMULTILINGUALr#   r$   r%   r  r  +  s    FJD!Lr$   r  c                       e Zd ZdZdZy)TrackerStatusOneOf
optimizingr(  N)r   r    r!   
OPTIMIZINGr+  r#   r$   r%   r
  r
  2  s    JDr$   r
  c                   ,    e Zd ZU  edd      Zeed<   y)TrackerStatusOneOf1.r   r   r)  N)r   r    r!   r   r)  r:   r"   r#   r$   r%   r  r  7  s    3B/Is/r$   r  c                   ,    e Zd ZU  edd      Zeed<   y)TrackerStatusOneOf2.r   r   r  N)r   r    r!   r   r  r:   r"   r#   r$   r%   r  r  ;  s    s+E3+r$   r  c                       e Zd ZU dZ edd      Zeed<    edd      Ze	e
   ed<    edd      Zd	ed
<    edd      Zeeef   ed<    edd      Zeeeef      ed<   y)r  z*
    Tracker object used in telemetry
    .zName of the optimizerr   r=   zSegment IDs being optimizedsegment_idsz Tracker object used in telemetryTrackerStatusr   zStart time of the optimizerstart_atNzEnd time of the optimizerr?   end_at)r   r    r!   r   r   r=   r:   r"   r  r   r-   r   r  r   r   r   r  r
   r#   r$   r%   r  r  ?  s~     c'>?D#?"34QRKcR#C5WXFOX&+C=Z&[HeHdN#[.3DNi.jFHU8T>*+jr$   r  c                      e Zd ZU dZ edd      Zed   ed<    edd      Zed   ed	<    edd
      Z	ed   ed<    edd      Z
ed   ed<    edd      Zed   ed<    edd      Zed   ed<    edd      Zed   ed<   y)UpdateCollectionzF
    Operation for updating parameters of the existing collection
    NzMap of vector data parameters to update for each named vector. To update parameters in a collection having a single unnamed vector, use an empty string as name.r?   VectorsConfigDiffrX   zCustom params for Optimizers.  If none - it is left unchanged. This operation is blocking, it will only proceed once all current optimizations are completer^  r_  z7Collection base params. If none - it is left unchanged.r   r   zSHNSW parameters to update for the collection index. If none - it is left unchanged.r\  r   zBQuantization parameters to update. If none - it is left unchanged.QuantizationConfigDiffr   zFMap of sparse vector data parameters to update for each sparse vector.SparseVectorsConfigr   z<Operation for updating parameters of the existing collectionrb  r   )r   r    r!   r   r   rX   r
   r"   r_  r   r   r   r   r   r#   r$   r%   r  r  K  s     .3 w.GX)*  ;@ r;x 67  05"[0FH+,  /4"w/K*+  ?D"f?":;  7<"j7NH23  8="`8!34 r$   r  c                   2    e Zd ZU  edd      Zed   ed<   y)UpdateOperations.r   r   UpdateOperation
operationsN)r   r    r!   r   r  r   r"   r#   r$   r%   r  r  i  s    */*DJ&'Dr$   r  c                   P    e Zd ZU  edd      Zee   ed<    edd      Zded	<   y)
r  Nz"Sequential number of the operationr?   operation_id.r   r   UpdateStatusr   )	r   r    r!   r   r   r
   r-   r"   r   r#   r$   r%   r  r  m  s)    "'Bf"gL(3-g"3B7FN7r$   r  c                   $    e Zd ZdZdefdZdZdZy)r!  z
    `Acknowledged` - Request is saved to WAL and will be process in a queue. `Completed` - Request is completed, changes are actual.
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zUpdateStatus.__str__w  r   r$   acknowledged	completedN)r   r    r!   r   r:   r   ACKNOWLEDGED	COMPLETEDr#   r$   r%   r!  r!  r  s      "LIr$   r!  c                   V    e Zd ZU  edd      Zed   ed<    edd      Zed	   ed
<   y)UpdateVectors.zPoints with named vectorsr   r  r  Nr   r?   rB  rC  r  r#   r$   r%   r)  r)  ~  s0    #(:U#VFD V.3Db.QIx*+Qr$   r)  c                   ,    e Zd ZU  edd      Zded<   y)UpdateVectorsOperation.r   r   r)  update_vectorsN)r   r    r!   r   r,  r"   r#   r$   r%   r+  r+    r  r$   r+  c                   ,    e Zd ZU  edd      Zded<   y)UpsertOperation.r   r   PointInsertOperationsupsertN)r   r    r!   r   r0  r"   r#   r$   r%   r.  r.    s    &+CR&@F#@r$   r.  c                   Z    e Zd ZU dZ edd      Zed   ed<    edd      Zed   ed<   y)	r  r|  Nr}  r?   ry  r  r  	inference)	r   r    r!   r   r   r  r
   r"   r2  r#   r$   r%   r  r    sD     +0"a+Hh'  -2"a-Ix() r$   r  c                   t    e Zd ZU  edd      Zded<    edd      Zee   ed	<    edd
      Z	ee   ed<   y)UuidIndexParams.r   r   UuidIndexTyperw   Nz'If true - used for tenant optimization.r?   r   rx   ry   r  r#   r$   r%   r4  r4    s?    !#26D/6 %d@i jIx~j#D>qrGXd^rr$   r4  c                       e Zd ZdZy)r5  r   N)r   r    r!   r   r#   r$   r%   r5  r5    r}   r$   r5  c                       e Zd ZU dZ edd      Zee   ed<    edd      Z	ee   ed<    edd      Z
ee   ed	<    edd
      Zee   ed<   y)r,  z%
    Values count filter request
    Nz'point.key.length() &lt; values_count.ltr?   r  z'point.key.length() &gt; values_count.gtr  z)point.key.length() &gt;= values_count.gter  z)point.key.length() &lt;= values_count.lter  )r   r    r!   r   r   r  r
   r-   r"   r  r  r  r#   r$   r%   r,  r,    sa     d8abBbd8abBbt9deC#et9deC#er$   r,  c                       e Zd ZU dZ edd      Zeed<    edd      Zded<    edd      Z	d	ed
<    edd      Z
ded<    edd      Zed   ed<    edd      Zed   ed<    edd      Zed   ed<   y)r  z.
    Config of single vector data storage
    .z'Size/dimensionality of the vectors usedr   r^  z$Config of single vector data storager  distanceVectorStorageTyper  Indexesr  NzDVector specific quantization config that overrides collection configr?   r   r   zBVector specific configuration to enable multiple vectors per pointr  r  zBVector specific configuration to set specific storage element typerz  r{  )r   r    r!   r   r   r^  r-   r"   r9  r  r  r   r
   r  r{  r#   r$   r%   r  r    s     c'PQD#Q 2XYHjY(-c?e(fL%fS.TUE9U:?"h;"67  9>"f9!45  38"f3Hh./ r$   r  c                   h    e Zd ZU  edd      Zeed<    edd      Zeed<    edd      Zeed<   y)r  .r   r   rV  r  r	  N)	r   r    r!   r   rV  r-   r"   r  r	  r#   r$   r%   r  r    s7    Sb1K1$Sb99$Sb99r$   r  c                   @   e Zd ZU  edd      Zee   ed<    edd      Zded<    edd      Z	ded	<    edd      Z
ded
<    edd      Zded<    edd      Zded<    edd      Zded<    edd      Zded<    edd      Zded<    edd      Zded<   y)r  Nr   r?   
index_name.r   rt  unfiltered_plainunfiltered_hnswunfiltered_sparsefiltered_plainfiltered_small_cardinalityfiltered_large_cardinalityfiltered_exactfiltered_sparseunfiltered_exact)r   r    r!   r   r>  r
   r:   r"   r?  r@  rA  rB  rC  rD  rE  rF  rG  r#   r$   r%   r  r    s     %d CJC6;CR6P3P5:3B5OO2O7<Sb7Q4Q49#24NN1N@EcWY@Z =Z@EcWY@Z =Z49#24NN1N5:3B5OO2O6;CR6P3Pr$   r  c                      e Zd ZU dZ edd      Zeed<    edd      Zded<    ed	d
      Z	e
d   ed<    ed	d      Ze
d   ed<    ed	d      Ze
e   ed<    ed	d      Ze
d   ed<    ed	d      Ze
d   ed<   y	)VectorParamsz.
    Params of single vector data storage
    .zSize of a vectors usedr   r^  z$Params of single vector data storager  r9  NzVCustom params for HNSW index. If none - values from collection configuration are used.r?   r\  r   zXCustom params for quantization. If none - values from collection configuration are used.r   r   z`If true, vectors are served from disk, improving RAM usage at the cost of latency Default: falsery   a  Defines which datatype should be used to represent vectors in the storage. Choosing different datatypes allows to optimize memory usage and performance vs accuracy.  - For `float32` datatype - vectors are stored as single-precision floating point numbers, 4 bytes. - For `float16` datatype - vectors are stored as half-precision floating point numbers, 2 bytes. - For `uint8` datatype - vectors are stored as unsigned 8-bit integers, 1 byte. It expects vector elements to be in range `[0, 255]`.rq  r{  r  r  )r   r    r!   r   r   r^  r-   r"   r9  r   r
   r   ry   rL   r{  r  r#   r$   r%   rI  rI    s     c'?@D#@ 2XYHjY.3l/K*+  ;@n;"67  $vGXd^  &+ F&Hhz"  9>"H9!45 r$   rI  c                   z    e Zd ZU  edd      Zed   ed<    edd      Zed   ed<    edd	      Zee	   ed
<   y)r   NzAUpdate params for HNSW index. If empty object - it will be unset.r?   r\  r   z?Update params for quantization. If none - it is left unchanged.r  r   zQIf true, vectors are served from disk, improving RAM usage at the cost of latencyry   )
r   r    r!   r   r   r
   r"   r   ry   rL   r#   r$   r%   r   r     s]    .3"e/K*+  ?D"c?":;  $"uGXd^ r$   c                   (    e Zd ZdZdefdZdZdZdZy)rz  z#
    Storage types for vectors
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zVectorStorageDatatype.__str__  r   r$   rr  rt  rs  N)	r   r    r!   r   r:   r   ru  rw  rv  r#   r$   r%   rz  rz    s$      GGEr$   rz  c                        e Zd ZdZdefdZdZy)VectorStorageTypeOneOfz^
    Storage in memory (RAM)  Will be very fast at the cost of consuming a lot of memory.
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zVectorStorageTypeOneOf.__str__  r   r$   MemoryN)r   r    r!   r   r:   r   MEMORYr#   r$   r%   rN  rN  	  s      Fr$   rN  c                        e Zd ZdZdefdZdZy)VectorStorageTypeOneOf1z
    Storage in mmap file, not appendable  Search performance is defined by disk speed and the fraction of vectors that fit in memory.
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zVectorStorageTypeOneOf1.__str__  r   r$   r  Nr  r#   r$   r%   rS  rS    r  r$   rS  c                        e Zd ZdZdefdZdZy)VectorStorageTypeOneOf2z
    Storage in chunked mmap files, appendable  Search performance is defined by disk speed and the fraction of vectors that fit in memory.
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zVectorStorageTypeOneOf2.__str__$  r   r$   ChunkedMmapN)r   r    r!   r   r:   r   CHUNKEDMMAPr#   r$   r%   rV  rV    s       Kr$   rV  c                        e Zd ZdZdefdZdZy)VectorStorageTypeOneOf3z
    Same as `ChunkedMmap`, but vectors are forced to be locked in RAM In this way we avoid cold requests to disk, but risk to run out of memory  Designed as a replacement for `Memory`, which doesn&#x27;t depend on RocksDB
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zVectorStorageTypeOneOf3.__str__/  r   r$   InRamChunkedMmapN)r   r    r!   r   r:   r   INRAMCHUNKEDMMAPr#   r$   r%   r[  r[  *  s      *r$   r[  c                   n    e Zd ZU  edd      Zeed<    edd      Zeed<    edd      Ze	e   ed<   y)	VersionInfo.r   r   titler>   Nr?   r   )
r   r    r!   r   ra  r:   r"   r>   r   r
   r#   r$   r%   r`  r`  5  s9    s+E3+"-GS-!$B?FHSM?r$   r`  c                   J    e Zd ZU  edd      Zeed<    edd      Zeed<   y)r   ."Size of a single WAL segment in MBr   wal_capacity_mb<Number of WAL segments to create ahead of actually used oneswal_segments_aheadN)r   r    r!   r   rd  r-   r"   rf  r#   r$   r%   r   r   ;  s'     2VWOSW#C5sttr$   r   c                   V    e Zd ZU  edd      Zee   ed<    edd      Zee   ed<   y)r]  Nrc  r?   rd  re  rf  )	r   r    r!   r   rd  r
   r-   r"   rf  r#   r$   r%   r]  r]  @  s4    %*4Ei%jOXc]j(-"`) r$   r]  c                   @    e Zd ZU  edd      Zeeeedf   f   ed<   y)r  .r   r   rt  ru  Nrv  r#   r$   r%   r  r  G  s)    EJ3\^E_ItCc#@@AAB_r$   r  c                   t    e Zd ZU  edd      Zeed<    edd      Zed   ed	<    edd
      Z	ed   ed<   y)
WithLookup.z/Name of the collection to use for points lookupr   r  Nz8Options for specifying which payload to include (or not)r?   r  r  z8Options for specifying which vectors to include (or not)r  with_vectors)
r   r    r!   r   r  r:   r"   r  r
   rk  r#   r$   r%   rj  rj  K  sO    C-^_J_5:"\6L(12  ,1"\,L(<( r$   rj  c                   (    e Zd ZdZdefdZdZdZdZy)WriteOrderinga  
    Defines write ordering guarantees for collection operations  * `weak` - write operations may be reordered, works faster, default  * `medium` - write operations go through dynamically selected leader, may be inconsistent for a short period of time in case of leader change  * `strong` - Write operations go through the permanent leader, consistent, but may be unavailable if leader is down
    r   c                 ,    t        | j                        S r   r   r   s    r%   r   zWriteOrdering.__str__Z  r   r$   weakmediumstrongN)	r   r    r!   r   r:   r   WEAKMEDIUMSTRONGr#   r$   r%   rm  rm  U  s$      DFFr$   rm  N(  r   r   enumr   typingr   r   r   r	   r
   r   r   r   pydanticr   r   pydantic.typesr   r   r   r   r:   rY   r  r  r  r  r  r  r   r)   r/   r2   r7   r<   rA   rT   r\   r]   rb   rd   ru   rv   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r
  r  r  r  r  r   r(  r,  r/  r3  r9  r<  r@  rI  rL  rT  rV  rY  rd  ri  rn  rq  ry  r{  r|  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  rC   r!  rE  r8  r:  r;  r?  rC  rJ  rN  r&  rU  rV  r\  r]  rb  rQ  r*  r(  rm  ro  rs  rx  ry  r  r  r   r\  rE   r  r  r  r  r  r`  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  rD  rG  r   rN  r  r`  r  rd  rh  rn  rq  rs  rv  rz  r   r3  r  r  r  r  r  r  r  r  r  r  r  r  r  r  rt  rY  r   r^  r  r  r  r  r  r   r  r  r   r  r  r  r  r  r  r  r  r   rp  r  r  r  r  r  r!  r#  r$  r*  r7  r8  r=  rC  rN  rP  r  r   rU  rW  r_  ri  rk  rn  rp  rc  r  r   r  r  r  r  r  rK  r  r  r  r  r  r   r  r  rG   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  rW  r  r  r  r   r#  r&  r.  r1  r4  rP  r   rF  rK  rP  rU  r   r  r7  rf  rh  rl  rs  rv  r}  r  r  r  r  r   r   r  r  r  r  r  r   r  rb  r   r   r   r   r   r  r  r  r  r  r
  r  r  r  r  r  r  r!  r)  r+  r.  r  r4  r5  r,  r  r  r  rI  r   rz  rN  rS  rV  r[  r`  r   r]  r  rj  rm  r   re  ClusterOperationsr  r  r1  r   r=  rU   r  r  r;  r"  r  r  r   r  r~  r  PayloadSelectorr  r/  r   r   r  Queryr$  ReadConsistencyr  r  rj  r5  r  ry  r  r  r  r  r  r  r  rt  VectorVectorOutputr:  r   rK  r  rW   r3   rf  r4  rB  r:  r  r|  r  r-  r#   r$   r%   <module>r     s   #  < <  % H H
sCx.3 445 "3(?#?@ $(.K)K$L !c#556 #C)A$AB 001 7y 73( 3FYh F3IX 36y 6
	@	 	@/9 /NIX ND( Dy ,d , c4  six s
C Yh AIX AGY G# #) $RY RMy M
wI 
wy &?	 ?+I +w) wfY f8y 29H sD n) n<Y <C CL) La9 asD <y <D D#) #*) *>( >
9)8 9
99H 99H  Y) YT )8 =9H =/ny /ndWy W
	  J( JsD /( /s)8 sT 3IX 3hIX hIX G)8 GS9H S:ix :IX "AYh ARIX RAYh AT 
sD IX ;IX ;%ix %PC9H CsD 2IX 2K	 Ky 99H 97ix 7Fy F@I @a) aD( D3IX 3
9H 
=I =,I ,
 9  FYh 0
Yh 
RYh R
sy sS$ K9H K
	S$ 	2)8 2F9H FYh C)8 CU	 U
sYh s
3 mIX mDy D( 	K	 	K+ +<9 <UI UM	 MsI s ]Yh ]b( b >Yh 6y IX 9 I ix "AY Ay A	 AL LA) AX) XR) RE) EK) KQ) QK) KP) PV) VK) KJ JJ) JL) LL) LR) RX) XZ) ZL LR RM MK KR RT TY Y@	 @

( 
sD py pnix ns( ssD sD BD( D29H 27Y 7G) G2-)8 -
5ix 5Yh  Zy Z)8 R)8 RJ	 JV( VC ei e		 	0	 0
)8 - -	sD 		 9( 9:Yh :C E	 ET	 T@)8 @9H 3IX 3iYh i2ix 2Z) Z$R Ry >9H >C TY Tix >9H >A	 A; ;9y 9<9H <	Uy 	UOI OT $^Yh ^RYh R#i ##y ##y ##y #Ny Nv vR9H R
	N9H 	N`)8 `89H 8
R)8 R
R( R
2IX 28	 8
y 6F)8 FE	 E
y $)( )X 9H  F@	 @=I =Qy Q(XIX X
#t 
&Yh &R	Yh 	=Yh =&y &RDIX D
T 
	XY 	X7i 7H9 HN)8 NV9H V.ix .
a) a03 0&Yh Cix C7	 7
sD T JY J?ix ?Ey E	\) 	\S$ 2)8 2D( D	y 	d \) \vIX v.9 )8 :X) XNy Nd	 d)8  9H (IX @A( ALI Ln) n0Vy V
#t 
( ,;)8 ;-i -5	 5S$ Oi OKi K9H #t 	 $&sD &T T <T <S$ 
B) B
sD 
ix "sD sD :>Yh >
	 	 &3 "C "C _9H _Y 
( 
3 C 4Yh 4Jix JEy E"T "F9H F
&wy &wR(Y (VkIX kk) k_y __Y _9IX 9RI Rix &C "C "d 
0) 0,) ,	ky 	ky <Ey E89 8
	3 	RIX R
AYh AAix A
I 
six sC f)8 fy (:Y :
Q9 
Q9H 8	y 	
C 
S$ c4  c4  *c4 *@) @u	 u
IX `i `( 
C 
 
 OO 
    "$  
	 ! 
   

   			 !#   
     
 	         
   			 	    ""##% 
  J    
   !#  
	 O    
 	 J 
 
k		
 k	
   L	 !#   O
 k	d;	 !DL	 !NK  %
*    
 N  k		 k	F		 k	L	 !# 
 O 
 	r$   