
    Ng             	       +   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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 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d
          Z G d dee          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          Z& G d* d+e          Z' G d, d-e          Z( G d. d/e          Z) G d0 d1e          Z* G d2 d3e          Z+ G d4 d5e          Z, G d6 d7e          Z- G d8 d9ed
          Z. G d: d;ee          Z/ G d< d=e          Z0 G d> d?e          Z1 G d@ dAe          Z2 G dB dCe          Z3 G dD dEe          Z4 G dF dGee          Z5 G dH dIe          Z6 G dJ dKe          Z7 G dL dMe          Z8 G dN dOe          Z9 G dP dQed
          Z: G dR dSed
          Z; G dT dUed
          Z< G dV dWed
          Z= G dX dYe          Z> G dZ d[ed
          Z? G d\ d]ed
          Z@ G d^ d_ed
          ZA G d` daed
          ZB G db dced
          ZC G dd deed
          ZD G df dgee          ZE G dh died
          ZF G dj dkee          ZG G dl dmed
          ZH G dn doed
          ZI G dp dqed
          ZJ G dr dsed
          ZK G dt dued
          ZL G dv dwed
          ZM G dx dyed
          ZN G dz d{ed
          ZO G d| d}ee          ZP G d~ dee          ZQ G d ded
          ZR G d ded
          ZS G d ded
          ZT G d ded
          ZU G d dee          ZV G d ded
          ZW G d ded
          ZX G d ded
          ZY G d ded
          ZZ G d de          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d
          Za G d ded
          Zb G d ded
          Zc G d dee          Zd G d dee          Ze G d ded
          Zf G d ded
          Zg G d ded
          Zh G d dee          Zi G d ded
          Zj G d ded
          Zk G d ded
          Zl G d ded
          Zm G d de          Zn G d de          Zo G d ded
          Zp G d de          Zq G d ded
          Zr G d de          Zs G dĄ de          Zt G dƄ ded
          Zu G dȄ de          Zv G dʄ de          Zw G d̄ de          Zx G d΄ de          Zy G dЄ de          Zz 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          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          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          Z G d ded
          Z G d de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          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d
          Z G d ded
          Z G d d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" 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d
          Z G d, d-ed
          Z G d. d/ed
          Z G d0 d1e          Z G d2 d3e          Z G d4 d5e          Z G d6 d7ed
          Z G d8 d9ee          Z G d: d;e          Z G d< d=ed
          Z G d> d?ed
          Z G d@ dAed
          Z G dB dCe          Z G dD dEed
          Z G dF dGe          Z G dH dIe          Z G dJ dKee          Z G dL dMed
          Z G dN dOed
          Z G dP dQe          Z G dR dSe          Z G dT dUe          Z G dV dWe          Z G dX dYed
          Z G dZ d[ed
          Z G d\ d]ed
          Z G d^ d_ed
          Z G d` daed
          Z G db dced
          Z G dd deed
          Z G df dged
          Z G dh died
          Z G dj dked
          Z G dl dmed
          Z G dn doed
          Z G dp dqed
          Z G dr dse          Z G dt due          Z G dv dwed
          Z G dx dyee          Z G dz d{ed
          Z G d| d}ed
          Z G d~ de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 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d
          Z G d dee          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          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e          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e          Z G d܄ dee          Z  G dބ dee          Z G d dee          Z G d de          Z G d dee          Z G d ded
          Z G d de          Z G d ded
          Z G d dee          Z G d dee          Z	 G d dee          Z
 G d ded
          Z G d de          Z G d ded
          Z G d dee          Z G d de          Z G d ded
          Z G d dee          Z G d d ee          Z G d dee          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          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d
          Z G d de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e          Z& G d( d)ee          Z' G d* d+ee          Z( G d, d-ee          Z) G d. d/ee          Z* G d0 d1e          Z+ G d2 d3e          Z, G d4 d5ed
          Z- G d6 d7e          Z. G d8 d9ed
          Z/ G d: d;ee          Z0e
e@eJef         Z1e
ee         ee         f         Z2e
eeeeXeDeZef         Z3e
e$e%f         Z4e
e0e1f         Z5e
e`eeepeeaf         Z6e
e7e8e9f         Z7e
e;ee;         f         Z8e
eef         Z9e
eeef         Z:e
eef         Z;e
esetf         Z<e
eeeef         Z=e
ee         eef         Z>e
eef         Z?e
eef         Z@e
eef         ZAe
eeeceheeeFef         ZBe
eef         ZCe
eef         ZDe
eef         ZEe
eebf         ZFe
eeef         ZGe
eeeeQf         ZHe
eeeSe<eefef         ZIe
eeHf         ZJe
eef         ZKe
eef         ZLe
eef         ZMe
ef         ZNe
ee ef         ZOe
ee	e
f         ZPe
eee ef         ZQe
eeef         ZRe
eeKeeeMe"eeOf         ZSe
ef         ZTe
eeef         ZUe
ee         eeee                  eWf         ZVe
e'e(e)e*f         ZWe
e$eee$f         f         ZXe
ee/f         ZYe
eee         f         ZZe
eee                  eeee                           eeeeV         f         eeW         f         Z[e
eeBf         Z\e
e9ee         ef         Z]e
eMeeM         f         Z^e
ee         eeee                  e9eWf         Z_e
ee         eee                  eeeVf         eWf         Z`e
eee         eCf         Zae
e_eIf         Zbd<S (=      )datedatetime)Enum)AnyDictListLiteralOptionalUnion)	BaseModelField)
StrictBoolStrictFloat	StrictInt	StrictStrSparseVectorParamsVectorParamsDiffc                   |    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<   dS )AbortShardTransfer. descriptionshard_id
to_peer_idfrom_peer_idN)	__name__
__module____qualname__r   r   int__annotations__r   r        \/var/www/html/ai-engine/env/lib/python3.11/site-packages/qdrant_client/http/models/models.pyr   r      so         E#2...Hc...eCR000J000cr222L#22222r"   r   forbid)extrac                   4    e Zd ZU  edd          Zded<   dS )AbortTransferOperation.r   r   r   abort_transferN)r   r   r   r   r(   r    r!   r"   r#   r'   r'      s2         +05"+E+E+EN(EEEEEr"   r'   c                   X    e Zd ZU  edd          Zeed<    edd          Zeed<   dS )AliasDescription.r   r   
alias_namecollection_nameN)r   r   r   r   r+   strr    r,   r!   r"   r#   r*   r*      sP         eCR000J000 5"555OS55555r"   r*   c                   L   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	e         ed<    edd          Ze	e         ed<    edd          Zeeef         ed<   dS )AppBuildTelemetry.r   r   nameversionNdefaultr   AppFeaturesTelemetryfeaturesRunningEnvironmentTelemetrysystemjwt_rbachide_jwt_dashboardstartup)r   r   r   r   r0   r-   r    r1   r5   r
   r7   r8   boolr9   r:   r   r   r   r!   r"   r#   r/   r/      s        cr***D#***5"---GS---16tQS1T1T1THh-.TTT6;eDVX6Y6Y6YFH23YYY$uTrBBBHhtnBBB).t)L)L)LLLL%*U3B%?%?%?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<   dS )	r4   .r   r   debugweb_featureservice_debug_featurerecovery_modeN)
r   r   r   r   r=   r;   r    r>   r?   r@   r!   r"   r#   r4   r4   &   s         %,,,E4,,,cr222K222"'%"<"<"<4<<<%444M444444r"   r4   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	ed
                  ed<   dS )Batch.r   r   ExtendedPointIdidsBatchVectorStructvectorsNr2   Payloadpayloads)
r   r   r   r   rD   r   r    rF   rH   r
   r!   r"   r#   rB   rB   -   s         #(5"#=#=#=C	 ===#(5"#=#=#=G ===*/%"*M*M*MHhtI'MMMMMr"   rB   c                   4    e Zd ZU  edd          Zded<   dS )BinaryQuantization.r   r   BinaryQuantizationConfigbinaryN)r   r   r   r   rL   r    r!   r"   r#   rJ   rJ   3   2         ).s)C)C)CF&CCCCCr"   rJ   c                   @    e Zd ZU  edd          Zee         ed<   dS )rK   Nr   r2   
always_ram)r   r   r   r   rO   r
   r;   r    r!   r"   r#   rK   rK   7   s5         !&t!D!D!DJDDDDDr"   rK   c                   4    e Zd ZU  edd          Zded<   dS )BoolIndexParams.r   r   BoolIndexTypetypeN)r   r   r   r   rS   r    r!   r"   r#   rQ   rQ   ;   s1         !E#2666D/66666r"   rQ   c                       e Zd ZdZdS )rR   r;   N)r   r   r   BOOLr!   r"   r#   rR   rR   ?           DDDr"   rR   c                   D    e Zd ZU dZ edd          Zed         ed<   dS )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   rZ   r   r    r!   r"   r#   rX   rX   C   sX           (-u v( ( (GT#$     r"   rX   c                   4    e Zd ZU  edd          Zded<   dS )ClearPayloadOperation.r   r   PointsSelectorclear_payloadN)r   r   r   r   r_   r    r!   r"   r#   r]   r]   N   s2         &+eCR&@&@&@M#@@@@@r"   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<   d	S )
ClusterConfigTelemetry.r   r   grpc_timeout_msP2pConfigTelemetryp2pConsensusConfigTelemetry	consensusN)	r   r   r   r   rb   r   r    rd   rf   r!   r"   r#   ra   ra   R   sq          5"555OS555 %cr : : :C	:::,1E#2,F,F,FI)FFFFFr"   ra   c                   @    e Zd ZU  edd          Zed         ed<   dS )ClusterStatusOneOf.r   r   )disabledstatusN)r   r   r   r   rj   r	   r    r!   r"   r#   rh   rh   X   sH          	cr""" G # # # # #r"   rh   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<   dS )ClusterStatusOneOf1z(
    Description of enabled cluster
    .zDescription of enabled clusterr   )enabledrj   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   rj   r	   r    ro   r   rq   r   r-   rs   ru   rw   r!   r"   r#   rl   rl   ^   s          	c?@@@ G A A A 5*;<<<GS<<<#(5:r#s#s#sE4Z sss!E#3STTTIzTTT7<uSNn7o7o7o4ooo<AE s= = =4%8 89     r"   rl   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<    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<   dS )ClusterStatusTelemetry.r   r   number_of_peerstermcommitpending_operationsNr2   	StateRoleroleis_voterro   rt   ru   )r   r   r   r   rz   r   r    r{   r|   r}   r   r
   r   r;   ro   ru   r!   r"   r#   ry   ry   p   s         5"555OS555cr***D#***%,,,FC,,,#eCR888888"'%""E"E"ED(;
EEEU3B///Hd///"U4R@@@GXc]@@@7<uSb7Q7Q7Q4QQQQQr"   ry   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<   dS )ClusterTelemetry.r   r   rm   Nr2   ry   rj   ra   configrp   rq   metadata)r   r   r   r   rm   r;   r    rj   r
   r   rq   r   r-   r   r   r!   r"   r#   r   r   {   s         E#2...GT...16tQS1T1T1TFH-.TTT16tQS1T1T1TFH-.TTT-2U4R-P-P-PE8Dj)*PPP).t)L)L)LHhtCH~&LLLL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<   dS )CollectionClusterInfoz<
    Current clustering distribution for the collection
    .rn   r   ro   zTotal number of shardsshard_countzLocal shardsLocalShardInfolocal_shardszRemote shardsRemoteShardInforemote_shardszShard transfersShardTransferInfoshard_transfersNzResharding operationsr2   ReshardingInforesharding_operations)r   r   r   r[   r   ro   r   r    r   r   r   r   r   r   r
   r!   r"   r#   r   r      s           5*;<<<GS<<<uS.FGGGKGGG+05.+Q+Q+QL$'(QQQ-2U3O-T-T-TM4)*TTT16sHY1Z1Z1ZOT-.ZZZ>CeD^u>v>v>v8D)9$:;vvvvvr"   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<   dS )CollectionConfig.r   r   CollectionParamsparams
HnswConfighnsw_configOptimizersConfigoptimizer_config	WalConfig
wal_configNr2   QuantizationConfigquantization_config)r   r   r   r   r   r    r   r   r   r   r
   r!   r"   r#   r   r      s         !&s!;!;!;F;;; %cr : : :K:::+05"+E+E+E(EEE#eCR888J888:?%Z\:]:]:]"67]]]]]r"   r   c                   4    e Zd ZU  edd          Zeed<   dS )CollectionDescription.r   r   r0   N)r   r   r   r   r0   r-   r    r!   r"   r#   r   r      s1         cr***D#*****r"   r   c                   8    e Zd ZU dZ edd          Zeed<   dS )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   r;   r    r!   r"   r#   r   r      s>           5*uvvvFDvvvvvr"   r   c                   h   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<   d	S )CollectionInfoz@
    Current statistics and configuration of the collection
    .z6Current statistics and configuration of the collectionr   CollectionStatusrj   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.r2   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   rj   r    r   r   r
   r   r   r   r   r   r   r   r-   r!   r"   r#   r   r      s          "'s8p!q!q!qFqqq+05Q, , ,(    $)5 y$ $ $M8C=    ,15 u, , ,8C=    #(% B# # #L(3-     %s  NC    "'s8p!q!q!qFqqq49E#Kd4e4e4eND001eeeeer"   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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<   dS )r   Nr   r2   VectorsConfigrF      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_factorF  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.on_disk_payloadz*Configuration of the sparse vector storager   sparse_vectors)r   r   r   r   rF   r
   r    r   r   r   r   r   r   r   r;   r   r   r-   r!   r"   r#   r   r      s        ).t)L)L)LGXo&LLL"'%?d"e"e"eL(3-eee27% p3 3 3OX./    ).aEh(i(i(iiii.3e g/ / /hsm    */ }* * *#    ',e k' ' 'OXd^    AF"NA A 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
<   dS )CollectionParamsDiffNr   r2   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   r   r   )r   r   r   r   r   r
   r   r    r   r   r   r;   r!   r"   r#   r   r      s         (-dHk(l(l(llll.3e"v/ / /hsm    */|* * *#    ',e k' ' 'OXd^     r"   r   c                   .    e Zd ZdZdefdZdZdZdZdZ	dS )	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      I              EFD
CCCr"   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d         ed	<    edd          Zed
         ed<    edd          Zed         ed<   dS )CollectionTelemetry.r   r   idinit_time_msr   r   ReplicaSetTelemetryshardsr   	transfersr   
reshardingN)r   r   r   r   r   r-   r    r   r   r   r   r   r   r   r!   r"   r#   r   r      s         eCR(((B(((cr222L#222!&s!;!;!;F;;;*/%*D*D*DFD&'DDD+05"+E+E+EIt'(EEE).s)C)C)CJ%&CCCCCr"   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<   d	S )
CollectionsAggregatedTelemetry.r   r   rF   r   optimizers_statusr   r   N)	r   r   r   r   rF   r   r    r   r   r!   r"   r#   r   r      sr         5"---GS---,1E#2,F,F,F)FFF!&s!;!;!;F;;;;;r"   r   c                   @    e Zd ZU  edd          Zed         ed<   dS )CollectionsAliasesResponse.r   r   r*   aliasesN)r   r   r   r   r   r   r    r!   r"   r#   r   r     s7         (-cr(B(B(BGT$%BBBBBr"   r   c                   @    e Zd ZU  edd          Zed         ed<   dS )CollectionsResponse.r   r   r   collectionsN)r   r   r   r   r   r   r    r!   r"   r#   r   r   	  s7         16s1K1K1KK-.KKKKKr"   r   c                   p    e Zd ZU  edd          Zeed<    edd          Zee	d                  ed<   dS )	CollectionsTelemetry.r   r   number_of_collectionsNr2   CollectionTelemetryEnumr   )
r   r   r   r   r   r   r    r   r
   r   r!   r"   r#   r   r     s]         !&s!;!;!;3;;;=BU4]_=`=`=`K$89:`````r"   r   c                   "    e Zd ZdZdZdZdZdZdS )CompressionRatiox4x8x16x32x64N)r   r   r   X4X8X16X32X64r!   r"   r#   r   r     s'        	B	B
C
C
CCCr"   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<   dS )re   .r   r   max_message_queue_sizetick_period_msbootstrap_timeout_secN)	r   r   r   r   r   r   r    r   r   r!   r"   r#   re   re     sq         "'%"<"<"<C<<<%444NC444!&s!;!;!;3;;;;;r"   re   c                   t    e Zd ZU  edd          Zed         ed<    edd          Zee	e
f         ed<   dS )ConsensusThreadStatusOneOf.r   r   )workingru   last_updateN)r   r   r   r   ru   r	   r    r   r   r   r   r!   r"   r#   r   r      sn          	cr""" W # # # */s)C)C)CKx~&CCCCCr"   r   c                   @    e Zd ZU  edd          Zed         ed<   dS )ConsensusThreadStatusOneOf1.r   r   )stoppedru   N)r   r   r   r   ru   r	   r    r!   r"   r#   r   r   '  sH          	cr""" W # # # # #r"   r   c                   d    e Zd ZU  edd          Zed         ed<    edd          Zeed<   dS )ConsensusThreadStatusOneOf2.r   r   )stopped_with_errru   errN)	r   r   r   r   ru   r	   r    r   r-   r!   r"   r#   r   r   -  se          	cr""" W # # # uSb)))C)))))r"   r   c                   X    e Zd ZU  edd          Zded<    edd          Zded<   dS )ContextExamplePair.r   r   RecommendExamplepositivenegativeNr   r   r   r   r  r    r  r!   r"   r#   r  r  4  sR         #(5"#=#=#=H ===#(5"#=#=#=H =====r"   r  c                   X    e Zd ZU  edd          Zded<    edd          Zded<   dS )ContextPair.r   r   VectorInputr  r  Nr  r!   r"   r#   r  r  9  sP         #eCR888Hm888#eCR888Hm88888r"   r  c                   4    e Zd ZU  edd          Zded<   dS )ContextQuery.r   r   ContextInputcontextN)r   r   r   r   r  r    r!   r"   r#   r  r  >  s1         #eCR888G^8888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<   dS )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 shardsr2   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   r  r
   r    r  r  r;   r!   r"   r#   r  r  B  s           /4ek/ / /Ix*+    "'tAw!x!x!xFHXxxx!E C  E8D>     r"   r  c                   4    e Zd ZU  edd          Zeed<   dS )CountResult.z-Number of points which satisfy the conditionsr   countN)r   r   r   r   r  r   r    r!   r"   r#   r  r  R  s2         s(WXXXE3XXXXXr"   r  c                   \    e Zd ZU dZ edd          Zeed<    edd          Zeed<   dS )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   r,   r+   N)	r   r   r   r[   r   r,   r-   r    r+   r!   r"   r#   r  r  V  s           !5 D  OS    e D  J     r"   r  c                   4    e Zd ZU  edd          Zded<   dS )CreateAliasOperation.r   r   r  create_aliasN)r   r   r   r   r  r    r!   r"   r#   r  r  e  s1         "'%"<"<"<L-<<<<<r"   r  c                   d   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#<   dS )$CreateCollectionU
    Operation for creating new collection and (optionally) specify index params
    NKOperation for creating new collection and (optionally) specify index paramsr2   r   rF   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_configz+Specify other collection to copy data from.InitFrom	init_fromz<Quantization parameters. If none - quantization is disabled.r   r   zSparse vector data config.r   r   )r   r   r   r[   r   rF   r
   r    r   r   r   r   r   r   r;   r   r   r&  r(  r   r   r   r-   r!   r"   r#   r   r   i  s          */"o* * *GXo&    #(% @# # #L(3-    38% p3 3 3OX./    )."X) ) )    /4e g/ / /hsm    ',e k' ' 'OXd^    /4en/ / /K*+    -2E"u- - -J)    ;@%o; ; ;x 67    ',eDFs&t&t&tIx
#ttt:?%"`; ; ;"67    AF">A A ANHT#';";<=     r"   r   c                   d    e Zd ZU  edd          Zeed<    edd          Zed         ed<   dS )	CreateFieldIndex.r   r   
field_nameNr2   PayloadFieldSchemafield_schema)	r   r   r   r   r+  r-   r    r-  r
   r!   r"   r#   r*  r*    sW         eCR000J000385SU3V3V3VL(/0VVVVVr"   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                  ed<   dS )CreateShardingKey.r   r   ShardKeyr  Nz_How many shards to create for this key If not specified, will use the default value from configr2   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   r  r    r1  r
   r   r   r2  r   r!   r"   r#   r/  r/    s         !E#2666Iz666#(5u$ $ $M8C=    ).y) ) )    &+U q& & &IxS	"     r"   r/  c                   4    e Zd ZU  edd          Zded<   dS )CreateShardingKeyOperation.r   r   r/  create_sharding_keyN)r   r   r   r   r5  r    r!   r"   r#   r4  r4    s3         /4uSb/I/I/I,IIIIIr"   r4  c                       e Zd ZdZdZdZdS )Datatypefloat32uint8float16N)r   r   r   FLOAT32UINT8FLOAT16r!   r"   r#   r7  r7    s        GEGGGr"   r7  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<   dS )DatetimeIndexParams.r   r   DatetimeIndexTyperS   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.r2   is_principal1If true, store the index on disk. Default: false.on_disk
r   r   r   r   rS   r    rB  r
   r;   rD  r!   r"   r#   r?  r?    s          %cr : : :D
:::#(5 j$ $ $L(4.    $eD>qrrrGXd^rrrrrr"   r?  c                       e Zd ZdZdS )r@  r   N)r   r   r   DATETIMEr!   r"   r#   r@  r@            HHHr"   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<   dS )DatetimeRange
    Range filter request
    Npoint.key &lt; range.ltr2   ltpoint.key &gt; range.gtgtpoint.key &gt;= range.gtegtepoint.key &lt;= range.ltelte)r   r   r   r[   r   rM  r
   r   r   r   r    rO  rQ  rS  r!   r"   r#   rJ  rJ    s           +0%Jc*d*d*dBx~&'ddd*/%Jc*d*d*dBx~&'ddd+05Kf+g+g+gC%$'	(ggg+05Kf+g+g+gC%$'	(gggggr"   rJ  c                   8    e Zd ZU dZ edd          Zeed<   dS )DeleteAlias 
    Delete alias if exists
    .Delete alias if existsr   r+   N)r   r   r   r[   r   r+   r-   r    r!   r"   r#   rU  rU    s>           eC-EFFFJFFFFFr"   rU  c                   8    e Zd ZU dZ edd          Zded<   dS )DeleteAliasOperationrV  .rW  r   rU  delete_aliasN)r   r   r   r[   r   rZ  r    r!   r"   r#   rY  rY    s>           #(%9Q"R"R"RL-RRRRRr"   rY  c                   4    e Zd ZU  edd          Zded<   dS )DeleteOperation.r   r   r^   deleteN)r   r   r   r   r]  r    r!   r"   r#   r\  r\    s2         $uSb999F9999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<   dS )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 listr2   rC   points=Deletes values from points that satisfy this filter conditionr  r  OThis data structure is used in API interface and applied across multiple shardsr  r  )r   r   r   r[   r   ra  r   r-   r    rc  r
   r  r  r!   r"   r#   r_  r_    s           eC-Z[[[D$s)[[[05"O1 1 1FHT+,-    "'"a" " "FHX    /4e"s/ / /Ix*+     r"   r_  c                   4    e Zd ZU  edd          Zded<   dS )DeletePayloadOperation.r   r   r_  delete_payloadN)r   r   r   r   rh  r    r!   r"   r#   rg  rg    1         &+eCR&@&@&@NO@@@@@r"   rg  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<   dS )DeleteVectorsNrb  r2   rC   rc  rd  r  r  .zVector namesr   vectorr   r  r  )r   r   r   r   rc  r
   r   r    r  rl  r-   r  r!   r"   r#   rk  rk    s         05"O1 1 1FHT+,-    "'"a" " "FHX    c~>>>FDI>>>.3eDb.Q.Q.QIx*+QQQQQr"   rk  c                   4    e Zd ZU  edd          Zded<   dS )DeleteVectorsOperation.r   r   rk  delete_vectorsN)r   r   r   r   ro  r    r!   r"   r#   rn  rn    ri  r"   rn  c                       e Zd ZdZdZdS )	DirectionascdescN)r   r   r   ASCDESCr!   r"   r#   rq  rq    s        
CDDDr"   rq  c                       e Zd Zd ZdS )DisabledN)r   r   r   DISABLEDr!   r"   r#   rw  rw    rH  r"   rw  c                   t    e Zd ZU  edd          Zded<    edd          Zeed         df         ed<   d	S )
DiscoverInput.r   r   r	  targetz:Search space will be constrained by these pairs of vectorsr  r  N)	r   r   r   r   r{  r    r  r   r   r!   r"   r#   rz  rz    sq         !E#2666FM6669>U: : :GU4&56     r"   rz  c                   4    e Zd ZU  edd          Zded<   dS )DiscoverQuery.r   r   rz  discoverN)r   r   r   r   r~  r    r!   r"   r#   r}  r}    s1          %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$<   dS )%DiscoverRequestz_
    Use context and a target to find the most similar points, constrained by the context.
    Nr  r2   r  r  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.r  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.r  r  r  r  r  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   r  r
   r    r{  r  r   r  r   r  r   r  r  r  r  r  r!   r"   r#   r  r    s?          /4ek/ / /Ix*+    ,15 D, , ,FH'(    5:E ^5 5 5GXd/01    "'tAw!x!x!xFHXxxx',uTGa'b'b'bFH^$bbbs(HIIIE3III!E U  FHSM    6;U"g6 6 6L(12    +0%"t+ + +K,'    &+Uq& & &E8M"    /4e |/ / /K*+     r"   r  c                   @    e Zd ZU  edd          Zed         ed<   dS )DiscoverRequestBatch.r   r   r  searchesNr   r   r   r   r  r   r    r!   r"   r#   r  r  C  s7         (-cr(B(B(BHd$%BBBBBr"   r  c                   .    e Zd ZdZdefdZdZdZdZdZ	dS )	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__L  r   r"   CosineEuclidDot	ManhattanN)
r   r   r   r[   r-   r   COSINEEUCLIDDOT	MANHATTANr!   r"   r#   r  r  G  sI              FF
CIIIr"   r  c                   h    e Zd ZU dZ edd          Zeed<    edd          Ze	e         ed	<   dS )
Documentz
    WARN: Work-in-progress, unimplemented  Text document for embedding. Requires inference infrastructure, unimplemented.
    .zCText document to be embedded by FastEmbed or Cloud inference serverr   textNz/Model name to be used for embedding computationr2   model)
r   r   r   r[   r   r  r-   r    r  r
   r!   r"   r#   r  r  U  sb           c'lmmmD#mmm 5;lmmmE8C=mmmmmr"   r  c                   4    e Zd ZU  edd          Zded<   dS )DropReplicaOperation.r   r   Replicadrop_replicaN)r   r   r   r   r  r    r!   r"   r#   r  r  ^  s1         #eCR888L)88888r"   r  c                   4    e Zd ZU  edd          Zded<   dS )DropShardingKey.r   r   r0  r  N)r   r   r   r   r  r    r!   r"   r#   r  r  b  s1         !E#2666Iz66666r"   r  c                   4    e Zd ZU  edd          Zded<   dS )DropShardingKeyOperation.r   r   r  drop_sharding_keyN)r   r   r   r   r  r    r!   r"   r#   r  r  f  s3         +05"+E+E+E(EEEEEr"   r  c                       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<   dS )	ErrorResponseN"Time spent to process this requestr2   timer   ErrorResponseStatusrj   result)r   r   r   r   r  r
   floatr    rj   r  r   r!   r"   r#   r  r  j  s~         !E$<`aaaD(5/aaa.3eDb.Q.Q.QFH*+QQQ!E$B???FHSM?????r"   r  c                   @    e Zd ZU  edd          Zee         ed<   dS )r  Nz"Description of the occurred error.r2   error)r   r   r   r   r  r
   r-   r    r!   r"   r#   r  r  p  s6          5;_```E8C=`````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<   dS )FacetRequestNr   r2   r  r  .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.r  r  zaWhether to do a more expensive exact count for each of the values in the facet. Default is false.r  )r   r   r   r   r  r
   r    r  r-   r  r   r  r  r;   r!   r"   r#   r  r  t  s         .3eDb.Q.Q.QIx*+QQQuS&HIIICIII 5;ijjjE8C=jjj!&"k" " "FHX    "Ew  E8D>     r"   r  c                   @    e Zd ZU  edd          Zed         ed<   dS )FacetResponse.r   r   FacetValueHithitsN)r   r   r   r   r  r   r    r!   r"   r#   r  r    s6         "'%"<"<"<D$
<<<<<r"   r  c                   X    e Zd ZU  edd          Zded<    edd          Zeed<   dS )r  .r   r   
FacetValuer   r  N)r   r   r   r   r   r    r  r   r!   r"   r#   r  r    sP         %444E<444s+++E3+++++r"   r  c                   X   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<   dS )FieldConditionz3
    All possible payload filtering conditions
    .zPayload keyr   r  Nz+Check if point has field with a given valuer2   Matchmatchz+Check if points value lies in a given rangeRangeInterfacerangez1Check if points geo location 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_count)r   r   r   r[   r   r  r-   r    r  r
   r  r  r  r  r  r!   r"   r#   r  r    s<          uSm444C444$uT?lmmmE8Gmmm(-dHu(v(v(vE8$%vvv385"U4 4 4h/0    ).dHu(v(v(vJ%vvv*/%"P+ + +K,'    -2E$Lq,r,r,rL(=)rrrrrr"   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<   dS )r  Nz-At least one of those conditions should matchr2   	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   r  r
   r   r   r    r  r  r  r!   r"   r#   r  r    s        >Ce"Q? ? ?FHU4,k9:;    )."\) ) )J%    =BE$\w<x<x<xD(5k*K78
9xxx@E"AA A AHhuT+.;<=     r"   r  c                   d    e Zd ZU  edd          Zded<    edd          Zed         ed	<   dS )
FilterSelector.r   r   r  r  Nr2   r  r  )r   r   r   r   r  r    r  r
   r!   r"   r#   r  r    sV         uSb111FH111.3eDb.Q.Q.QIx*+QQQQQr"   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<   dS )FloatIndexParams.r   r   FloatIndexTyperS   NrA  r2   rB  rC  rD  rE  r!   r"   r#   r  r    s         "U3B777D
777#(5 j$ $ $L(4.    $eD>qrrrGXd^rrrrrr"   r  c                       e Zd ZdZdS )r  r  N)r   r   r   FLOATr!   r"   r#   r  r    s        EEEr"   r  c                   &    e Zd ZdZdefdZdZdZdS )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#   r  r    s?              CDDDr"   r  c                   4    e Zd ZU  edd          Zded<   dS )FusionQuery.r   r   r  fusionN)r   r   r   r   r  r    r!   r"   r#   r  r    1         uSb111FH11111r"   r  c                   \    e Zd ZU dZ edd          Zded<    edd          Zded<   dS )	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   r  r    r  r!   r"   r#   r  r    s           !5 P  Hj     %u P     L*     r"   r  c                   d    e Zd ZU  edd          Zded<    edd          Zee         ed	<   dS )
GeoIndexParams.r   r   GeoIndexTyperS   NrC  r2   rD  )	r   r   r   r   rS   r    rD  r
   r;   r!   r"   r#   r  r    sU          5"555D.555#eD>qrrrGXd^rrrrrr"   r  c                       e Zd ZdZdS )r  geoN)r   r   r   GEOr!   r"   r#   r  r    s        
CCCr"   r  c                   D    e Zd ZU dZ edd          Zed         ed<   dS )GeoLineStringz=
    Ordered sequence of GeoPoints representing the line
    .z3Ordered sequence of GeoPoints representing the liner   r  rc  N)r   r   r   r[   r   rc  r   r    r!   r"   r#   r  r    sC            %uS6klllFDlllllr"   r  c                   \    e Zd ZU dZ edd          Zeed<    edd          Zeed<   dS )r  z"
    Geo point payload schema
    .zGeo point payload schemar   lonlatN)	r   r   r   r[   r   r  r  r    r  r!   r"   r#   r  r    s^           s(BCCCCCCCs(BCCCCCCCCCr"   r  c                   t    e Zd ZU dZ edd          Zded<    edd	          Zee	d                  ed
<   dS )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   r  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.r2   	interiors)
r   r   r   r[   r   r  r    r  r
   r   r!   r"   r#   r  r    s           !&w! ! !Ho    27 {2 2 2Ix_-.     r"   r  c                   \    e Zd ZU dZ edd          Zded<    edd          Zeed<   d	S )
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   r  centerzRadius of the area in metersradiusN)	r   r   r   r[   r   r  r    r  r  r!   r"   r#   r  r    sp            A  FJ    E#+IJJJFEJJJJJr"   r  c                   @    e Zd ZU  edd          Zed         ed<   dS )GroupsResult.r   r   
PointGroupgroupsN)r   r   r   r   r   r   r    r!   r"   r#   r  r    s6         !&s!;!;!;FD;;;;;r"   r  c                   D    e Zd ZU  edd          Zeedf         ed<   dS )GrpcTelemetry.r   r   OperationDurationStatistics	responsesNr   r   r   r   r  r   r-   r    r!   r"   r#   r  r    s=         :?%QS:T:T:TItC667TTTTTr"   r  c                   D    e Zd ZU dZ edd          Zed         ed<   dS )HasIdConditionz&
    ID-based filtering condition
    .zID-based filtering conditionr   rC   has_idN)r   r   r   r[   r   r  r   r    r!   r"   r#   r  r    sD           ',eC=[&\&\&\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e         ed<    edd          Zee         ed<   dS )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.r2   max_indexing_threadsNzVStore HNSW index on disk. If set to false, index will be stored in RAM. Default: falserD  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
   rD  r;   r  r!   r"   r#   r   r     sT          U E  As     b  L#     %u T         +0% M+ + +(3-    $el  GXd^     %up     Ix}     r"   r   c                   0   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<   dS )r#  Nr
  r2   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: falserD  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  rD  r;   r  r!   r"   r#   r#  r#  >  sT        u E  Ax}    #(% f# # #L(3-    */ T* * *#    +0% E+ + +(3-    $ep  GXd^     %uq     Ix}     r"   r#  c                   h    e Zd ZU dZ edd          Zed         ed<    edd          Ze	ed<   dS )	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   )plainrS   optionsN)
r   r   r   r[   r   rS   r	   r    r  r   r!   r"   r#   r  r  Y  s           $e b  D'(
    5 b  GS     r"   r  c                   h    e Zd ZU dZ edd          Zed         ed<    edd          Zded<   d	S )
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   )hnswrS   r   r  N)	r   r   r   r[   r   rS   r	   r    r  r!   r"   r#   r  r  h  s           #U C  D''
    "E C  G\     r"   r  c                   8    e Zd ZU dZ edd          Zeed<   dS )r'  r!  .r"  r   
collectionN)r   r   r   r[   r   r  r-   r    r!   r"   r#   r'  r'  w  sO           ef  J     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<   dS )InlineResponse200Nr  r2   r  r   rj   r  )r   r   r   r   r  r
   r  r    rj   r-   r  r;   r!   r"   r#   r  r    s|         !E$<`aaaD(5/aaa!E$B???FHSM???"U4R@@@FHTN@@@@@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d         ed<   dS )	InlineResponse2001Nr  r2   r  r   rj   TelemetryDatar  r   r   r   r   r  r
   r  r    rj   r-   r  r!   r"   r#   r  r    }         !E$<`aaaD(5/aaa!E$B???FHSM???(-d(K(K(KFH_%KKKKKr"   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d                  ed<   dS )	InlineResponse20010Nr  r2   r  r   rj   SnapshotDescriptionr  r   r   r   r   r  r
   r  r    rj   r-   r  r   r!   r"   r#   r"  r"    s         !E$<`aaaD(5/aaa!E$B???FHSM???49E$TV4W4W4WFHT/01WWWWWr"   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d         ed<   dS )	InlineResponse20011Nr  r2   r  r   rj   r#  r  r  r!   r"   r#   r&  r&    ~         !E$<`aaaD(5/aaa!E$B???FHSM???.3eDb.Q.Q.QFH*+QQQQQr"   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d         ed<   dS )	InlineResponse20012Nr  r2   r  r   rj   Recordr  r  r!   r"   r#   r)  r)    s}         !E$<`aaaD(5/aaa!E$B???FHSM???!&t!D!D!DFHXDDDDDr"   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d                  ed<   dS )	InlineResponse20013Nr  r2   r  r   rj   r*  r  r$  r!   r"   r#   r,  r,    s         !E$<`aaaD(5/aaa!E$B???FHSM???',uTr'J'J'JFHT(^$JJJJJr"   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d                  ed<   dS )	InlineResponse20014Nr  r2   r  r   rj   UpdateResultr  r$  r!   r"   r#   r.  r.    s         !E$<`aaaD(5/aaa!E$B???FHSM???-2U4R-P-P-PFHT.)*PPPPPr"   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d         ed<   dS )	InlineResponse20015Nr  r2   r  r   rj   ScrollResultr  r  r!   r"   r#   r1  r1    }         !E$<`aaaD(5/aaa!E$B???FHSM???',uTr'J'J'JFH^$JJJJJr"   r1  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d                  ed<   dS )	InlineResponse20016Nr  r2   r  r   rj   ScoredPointr  r$  r!   r"   r#   r5  r5    s         !E$<`aaaD(5/aaa!E$B???FHSM???,1E$B,O,O,OFHT-()OOOOOr"   r5  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S )	InlineResponse20017Nr  r2   r  r   rj   r6  r  r$  r!   r"   r#   r8  r8    s         !E$<`aaaD(5/aaa!E$B???FHSM???27%RT2U2U2UFHT$}-./UUUUUr"   r8  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d         ed<   dS )	InlineResponse20018Nr  r2   r  r   rj   r  r  r  r!   r"   r#   r:  r:    r3  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d         ed<   dS )	InlineResponse20019Nr  r2   r  r   rj   r  r  r  r!   r"   r#   r<  r<    }         !E$<`aaaD(5/aaa!E$B???FHSM???&+eDb&I&I&IFH]#IIIIIr"   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d         ed<   dS )	InlineResponse2002Nr  r2   r  r   rj   LocksOptionr  r  r!   r"   r#   r?  r?    r=  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d         ed<   dS )	InlineResponse20020Nr  r2   r  r   rj   r  r  r  r!   r"   r#   rB  rB    r   r"   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d         ed<   dS )	InlineResponse20021Nr  r2   r  r   rj   QueryResponser  r  r!   r"   r#   rD  rD    r   r"   rD  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d                  ed<   dS )	InlineResponse20022Nr  r2   r  r   rj   rE  r  r$  r!   r"   r#   rG  rG    s         !E$<`aaaD(5/aaa!E$B???FHSM???.3eDb.Q.Q.QFHT/*+QQQQQr"   rG  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d         ed<   dS )	InlineResponse20023Nr  r2   r  r   rj   SearchMatrixPairsResponser  r  r!   r"   r#   rI  rI    s         !E$<`aaaD(5/aaa!E$B???FHSM???49E$TV4W4W4WFH01WWWWWr"   rI  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d         ed<   dS )	InlineResponse20024Nr  r2   r  r   rj   SearchMatrixOffsetsResponser  r  r!   r"   r#   rL  rL    s         !E$<`aaaD(5/aaa!E$B???FHSM???6;eDVX6Y6Y6YFH23YYYYYr"   rL  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d         ed<   dS )	InlineResponse2003Nr  r2   r  r   rj   ClusterStatusr  r  r!   r"   r#   rO  rO    r   r"   rO  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d         ed<   dS )	InlineResponse2004Nr  r2   r  r   rj   r   r  r  r!   r"   r#   rR  rR    r'  r"   rR  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d         ed<   dS )	InlineResponse2005Nr  r2   r  r   rj   r   r  r  r!   r"   r#   rT  rT    s~         !E$<`aaaD(5/aaa!E$B???FHSM???).t)L)L)LFH%&LLLLLr"   rT  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d         ed<   dS )	InlineResponse2006Nr  r2   r  r   rj   r/  r  r  r!   r"   r#   rV  rV    r3  r"   rV  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d         ed<   dS )	InlineResponse2007Nr  r2   r  r   rj   r   r  r  r!   r"   r#   rX  rX    r'  r"   rX  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d         ed<   dS )	InlineResponse2008Nr  r2   r  r   rj   r   r  r  r!   r"   r#   rZ  rZ    s         !E$<`aaaD(5/aaa!E$B???FHSM???05dPR0S0S0SFH,-SSSSSr"   rZ  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d         ed<   dS )	InlineResponse2009Nr  r2   r  r   rj   r   r  r  r!   r"   r#   r\  r\    s         !E$<`aaaD(5/aaa!E$B???FHSM???5:U4UW5X5X5XFH12XXXXXr"   r\  c                   p    e Zd ZU  edd          Zee         ed<    edd          Zee	         ed<   dS )InlineResponse202Nr  r2   r  r   rj   )
r   r   r   r   r  r
   r  r    rj   r-   r!   r"   r#   r^  r^    sY         !E$<`aaaD(5/aaa!E$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<   dS )IntegerIndexParams.r   r   IntegerIndexTyperS   Nz!If true - support direct lookups.r2   lookupz!If true - support ranges filters.r  rA  rB  rC  rD  )r   r   r   r   rS   r    rb  r
   r;   r  rB  rD  r!   r"   r#   r`  r`    s         $uSb999D
999"U4=`aaaFHTNaaa!E$<_```E8D>```#(5 j$ $ $L(4.    $eD>qrrrGXd^rrrrrr"   r`  c                       e Zd ZdZdS )ra  integerN)r   r   r   INTEGERr!   r"   r#   ra  ra  '          GGGr"   ra  c                   8    e Zd ZU dZ edd          Zded<   dS )IsEmptyConditionz@
    Select points with empty payload for a specified field
    .z6Select points with empty payload for a specified fieldr   PayloadFieldis_emptyN)r   r   r   r[   r   rj  r    r!   r"   r#   rh  rh  +  s>            %uS6noooHnooooor"   rh  c                   8    e Zd ZU dZ edd          Zded<   dS )IsNullConditionz?
    Select points with null payload for a specified field
    .z5Select points with null payload for a specified fieldr   ri  is_nullN)r   r   r   r[   r   rm  r    r!   r"   r#   rl  rl  3  s>           $eC5lmmmG^mmmmmr"   rl  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<   dS )KeywordIndexParams.r   r   KeywordIndexTyperS   Nz7If true - used for tenant optimization. Default: false.r2   	is_tenantrC  rD  
r   r   r   r   rS   r    rq  r
   r;   rD  r!   r"   r#   ro  ro  ;  s         $uSb999D
999 %"[! ! !Ix~    $eD>qrrrGXd^rrrrrr"   ro  c                       e Zd ZdZdS )rp  keywordN)r   r   r   KEYWORDr!   r"   r#   rp  rp  C  rf  r"   rp  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<   dS )r   .zLocal shard idr   r   NUser-defined sharding keyr2   r0  r  zNumber of points in the shardr   r   ReplicaStatestate)r   r   r   r   r   r   r    r  r
   r   ry  r!   r"   r#   r   r   G  s         E#+;<<<Hc<<<&+eDFa&b&b&bIx
#bbbc/NOOOL#OOO!E#2666E>66666r"   r   c                       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d         ed<    edd	          Zded<   dS )LocalShardTelemetryNr   r2   variant_nameShardStatusrj   .z6Total number of optimized points since the last start.r   total_optimized_pointsSegmentTelemetrysegmentsOptimizerTelemetryoptimizations)r   r   r   r   r|  r
   r-   r    rj   r~  r   r  r   r  r!   r"   r#   r{  r{  N  s         "'%""E"E"EL(3-EEE&+eDb&I&I&IFH]#III"'%9q"r"r"rCrrr).s)C)C)CHd%&CCC*/%*D*D*DM'DDDDDr"   r{  c                   d    e Zd ZU  edd          Zee         ed<    edd          Ze	ed<   dS )r@  Nr   r2   error_message.r   write)
r   r   r   r   r  r
   r-   r    r  r;   r!   r"   r#   r@  r@  V  sT         #(52#F#F#FM8C=FFF%,,,E4,,,,,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
e	d         ed<   dS )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.r2   rl  r  r  r  )r   r   r   r[   r   r  r-   r    rl  r
   r  r!   r"   r#   r  r  [  s           eC-UVVVJVVV!E G  FHSM    /4ek/ / /Ix*+     r"   r  c                   8    e Zd ZU dZ edd          Zded<   dS )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   r  r    r!   r"   r#   r  r  k  s>           s0XYYYCYYYYYr"   r  c                   :    e Zd ZU dZ eddd          Zded<   dS )	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   aliasr  except_N)r   r   r   r[   r   r  r    r!   r"   r#   r  r  s  sR           #U[ck  G]     r"   r  c                   8    e Zd ZU dZ edd          Zeed<   dS )	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#   r  r  }  s>           c'HIIID#IIIIIr"   r  c                   8    e Zd ZU dZ edd          Zded<   dS )
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#   r  r    s>           #U34TUUUE?UUUUUr"   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e	eeef                  ed
<   dS )rv   z5
    Message send failures for a particular peer
    .z+Message send failures for a particular peerr   r  Nr2   latest_errorzTimestamp of the latest errorlatest_error_timestamp)r   r   r   r[   r   r  r   r    r  r
   r-   r  r   r   r   r!   r"   r#   rv   rv     s           s(UVVVE3VVV"'%Bo"p"p"pL(3-ppp>Ce"A? ? ?HU8T>%:;     r"   rv   c                   d    e Zd ZU  edd          Zed         ed<    edd          Zeed<   dS )r  .r   r   r  
conditions	min_countN)	r   r   r   r   r  r   r    r  r   r!   r"   r#   r  r    sU         $)E#2$>$>$>J[!>>>U3B///Is/////r"   r  c                   &    e Zd ZdZdefdZdZdZdS )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
CCCr"   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<   dS )	MoveShard.r   r   r   r   r   N:Method for transferring the shard from one node to anotherr2   ShardTransferMethodmethodr   r   r   r   r   r   r    r   r   r  r
   r!   r"   r#   r  r             E#2...Hc...eCR000J000cr222L#222.3e"^/ / /FH*+     r"   r  c                   4    e Zd ZU  edd          Zded<   dS )MoveShardOperation.r   r   r  
move_shardN)r   r   r   r   r  r    r!   r"   r#   r  r    s1         #eCR888J88888r"   r  c                       e Zd ZdZdS )MultiVectorComparatormax_simN)r   r   r   MAX_SIMr!   r"   r#   r  r    rf  r"   r  c                   4    e Zd ZU  edd          Zded<   dS )MultiVectorConfig.r   r   r  
comparatorN)r   r   r   r   r  r    r!   r"   r#   r  r    s2         */%*D*D*DJ'DDDDDr"   r  c                   \    e Zd ZU dZ edd          Zeed<    edd          Zded<   d	S )
NamedSparseVectorz&
    Sparse vector data with name
    .Name of vector datar   r0   zSparse vector data with nameSparseVectorrl  N)	r   r   r   r[   r   r0   r-   r    rl  r!   r"   r#   r  r    s^           c'<===D#==="U34RSSSFNSSSSSr"   r  c                   h    e Zd ZU dZ edd          Zeed<    edd          Ze	e
         ed<   dS )	NamedVectorz%
    Dense vector data with name
    .r  r   r0   zVector datarl  N)r   r   r   r[   r   r0   r-   r    rl  r   r  r!   r"   r#   r  r    sa           c'<===D#===%???FDK?????r"   r  c                   4    e Zd ZU  edd          Zded<   dS )NearestQuery.r   r   r	  nearestN)r   r   r   r   r  r    r!   r"   r#   r  r    s1         "U3B777G]77777r"   r  c                   \    e Zd ZU dZ edd          Zeed<    edd          Zded<   dS )	NestedzA
    Select points with payload for a specified nested field
    .z7Select points with payload for a specified nested fieldr   r  r  r  N)	r   r   r   r[   r   r  r-   r    r  r!   r"   r#   r  r    s^           uS&_```C```uS.ghhhFHhhhhhr"   r  c                   4    e Zd ZU  edd          Zded<   dS )NestedCondition.r   r   r  nestedN)r   r   r   r   r  r    r!   r"   r#   r  r    r  r"   r  c                   X   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d<    edd          Zeeeef                  ed<   dS )r  .r   r   r  Nr2   
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   r  r   r    r  r
   r  r  r  r  r  r  r   r   r   r!   r"   r#   r  r    s?        s+++E3+++ %d C C CJCCC+05"s, , ,%    ,15"g, , ,%    ,15"g, , ,%    "'s8o!p!p!p3ppp6;eDVX6Y6Y6YNHU8T>23YYYYYr"   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	<   d
S )r  .r   r   r   rj   r  r  TrackerTelemetrylogN)	r   r   r   r   rj   r    r  r  r   r!   r"   r#   r  r    sw         !&s!;!;!;F;;;385"3M3M3MM0MMM$)E#2$>$>$>C 	!>>>>>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         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<   d	S )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.r2   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 memmaped 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_thresholdD  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.indexing_threshold(Minimum interval between forced flushes.flush_interval_sec(  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        $ut     u    %*Eo% % %c    #(% G# # #C    ',e E' ' 'hsm    ',e R' ' 'hsm    ). [) ) )    $eC5_``````.3e / / /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e	         ed<   dS )r%  Nr  r2   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  aD  Maximum size (in kilobytes) of vectors to store in-memory per segment. Segments larger than this threshold will be stored as read-only memmaped 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 256r  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%    s        ).t* * *x    /4e"x/ / /hsm    -2E E- - -HSM    ',e |' ' 'hsm    ',e [' ' 'hsm    ). [) ) )    ).dHr(s(s(ssss.3e / / /hsm     r"   r%  c                   "    e Zd ZdZdefdZdZdS )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  6  :              
BBBr"   r  c                   8    e Zd ZU dZ edd          Zeed<   dS )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  A  s>           s(RSSSE3SSSSSr"   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<   dS )OrderBy.zPayload key to order byr   r  Nz=Direction of ordering: `asc` or `desc`. Default is ascending.r2   rq  	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  I  s         uS&?@@@C@@@',u"a( ( (Ix$    ). D) ) )J%     r"   r  c                   4    e Zd ZU  edd          Zded<   dS )OrderByQuery.r   r   OrderByInterfaceorder_byN)r   r   r   r   r  r    r!   r"   r#   r  r  T  s2         #(5"#=#=#=H =====r"   r  c                   4    e Zd ZU  edd          Zded<   dS )OverwritePayloadOperation.r   r   
SetPayloadoverwrite_payloadN)r   r   r   r   r  r    r!   r"   r#   r  r  X  s2         &+eCR&@&@&@|@@@@@r"   r  c                   4    e Zd ZU  edd          Zeed<   dS )rc   .r   r   connection_pool_sizeN)r   r   r   r   r  r   r    r!   r"   r#   rc   rc   \  s2          %cr : : :#:::::r"   rc   c                   8    e Zd ZU dZ edd          Zeed<   dS )ri  z
    Payload field
    .zPayload field namer   r  N)r   r   r   r[   r   r  r-   r    r!   r"   r#   ri  ri  `  s>           uS&:;;;C;;;;;r"   ri  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
ed<   dS )r   z<
    Display payload field type &amp; index information
    .z2Display payload field type &amp; index informationr   PayloadSchemaType	data_typeNr2   PayloadSchemaParamsr   z(Number of points indexed with this indexrc  )r   r   r   r[   r   r  r    r   r
   rc  r   r!   r"   r#   r   r   h  s           &+U3<p%q%q%qI"qqq.3e"V/ / /FH*+    %)STTTFCTTTT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	         ed	<   dS )
PayloadIndexTelemetryNr   r2   r+  .r   points_values_countr   histogram_bucket_size)r   r   r   r   r+  r
   r-   r    r  r   r   r  r!   r"   r#   r  r  t  s          %d C C CJCCC$uSb999999cr222L#222+052+N+N+N8C=NNNN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dS )r  z-
    All possible names of payload types
    r   c                 *    t          | j                  S r   r   r   s    r#   r   zPayloadSchemaType.__str__  r   r"   rt  rd  r  r  r  r;   r   uuidN)r   r   r   r[   r-   r   ru  re  r  r  TEXTrU   rG  UUIDr!   r"   r#   r  r  {  s]              GGE
CDDHDDDr"   r  c                   @    e Zd ZU  edd          Zee         ed<   dS )PayloadSelectorExclude.z*Exclude this fields from returning payloadr   excludeN)r   r   r   r   r  r   r-   r    r!   r"   r#   r  r    s6         s0\]]]GT#Y]]]]]r"   r  c                   @    e Zd ZU  edd          Zee         ed<   dS )PayloadSelectorInclude.zOnly include this payload keysr   includeN)r   r   r   r   r  r   r-   r    r!   r"   r#   r  r    s6         s0PQQQGT#YQQQQQr"   r  c                   @    e Zd ZU  edd          Zed         ed<   dS )PayloadStorageTypeOneOf.r   r   )	in_memoryrS   Nr   r   r   r   rS   r	   r    r!   r"   r#   r  r    sH          	cr""" 	' # # # # #r"   r  c                   @    e Zd ZU  edd          Zed         ed<   dS )PayloadStorageTypeOneOf1.r   r   )rD  rS   Nr	  r!   r"   r#   r  r    sH          	cr""" 	' # # # # #r"   r  c                   8    e Zd ZU dZ edd          Zeed<   dS )rp   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#   rp   rp     s>           uS&LMMMCMMMMMr"   rp   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<   d	S )r  .z:Scored points that have the same value of the group_by keyr   r6  r  r   GroupIdr   Nz1Record that has been looked up using the group idr2   r*  rb  )
r   r   r   r   r  r   r    r   rb  r
   r!   r"   r#   r  r    s{          %c7s t t tD$}
tttE#2...B	...!&tAt!u!u!uFHXuuuuur"   r  c                   p    e Zd ZU  edd          Zed         ed<    edd          Zed         ed	<   dS )
PointIdsList.r   r   rC   rc  Nr2   r  r  	r   r   r   r   rc  r   r    r  r
   r!   r"   r#   r  r    s\         &+eCR&@&@&@FD"#@@@.3eDb.Q.Q.QIx*+QQQQ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<   dS )PointRequestNr  r2   r  r  .zLook for points with idsr   rC   rD   BSelect which payload to return with the response. Default is true.r  r  r   r  r  )r   r   r   r   r  r
   r    rD   r   r  r  r!   r"   r#   r  r    s         .3ek/ / /Ix*+    $)5:T#U#U#UC	 UUU5:U"f6 6 6L(12    +0%"*M*M*MK,'MMMM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<   dS )PointStruct.r   r   rC   r   VectorStructrl  NzPayload values (optional)r2   rG   payload)	r   r   r   r   r   r    rl  r  r
   r!   r"   r#   r  r    sv         !E#2666B666"U3B777FN777#(5C^#_#_#_GXi _____r"   r  c                   X    e Zd ZU  edd          Zded<    edd          Zded<   dS )	PointVectors.r   r   rC   r   r  rl  N)r   r   r   r   r   r    rl  r!   r"   r#   r  r    sQ         !E#2666B666"U3B777FN77777r"   r  c                   d    e Zd ZU  edd          Zded<    edd          Zed         ed	<   dS )
PointsBatch.r   r   rB   batchNr2   r  r  )r   r   r   r   r  r    r  r
   r!   r"   r#   r  r    sV         U3B///E7///.3eDb.Q.Q.QIx*+QQQQQr"   r  c                   p    e Zd ZU  edd          Zed         ed<    edd          Zed         ed	<   dS )

PointsList.r   r   r  rc  Nr2   r  r  r  r!   r"   r#   r   r     s[         "'%"<"<"<FD<<<.3eDb.Q.Q.QIx*+QQQQQr"   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<   dS )PrefetchNzhSub-requests to perform first. If present, the query will be performed on the results of the prefetches.r2   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.r  r  +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-   r  r   r+  r  r  r   r  r!   r"   r#   r"  r"    s        >Ce~? ? ?HhuT*-z9:;    ).k) ) )E8$%    !5k  E8C=    "'"w" " "FHX    (-uTGt'u'u'uFH^$uuu',u"Y( ( (OXe_    !5;klllE8C=lll.3e G/ / /K*+     r"   r"  c                   4    e Zd ZU  edd          Zded<   dS )ProductQuantization.r   r   ProductQuantizationConfigproductN)r   r   r   r   r1  r    r!   r"   r#   r/  r/    s2         +05"+E+E+EG(EEEEEr"   r/  c                   d    e Zd ZU  edd          Zded<    edd          Zee         ed<   dS )	r0  .r   r   r   compressionNr2   rO   )	r   r   r   r   r3  r    rO   r
   r;   r!   r"   r#   r0  r0    sU         &+eCR&@&@&@K#@@@!&t!D!D!DJDDDDDr"   r0  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
<   dS )QuantizationSearchParams-
    Additional parameters of the search
    Fz9If true, quantized vectors are ignored. Default is false.r2   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   r7  r
   r;   r    r8  r9  r  r!   r"   r#   r5  r5    s           #U#^  FHTN    $e X  GXd^    %*E q% % %L(5/     r"   r5  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)<   dS )*QueryGroupsRequestNr   r2   r  r  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  r(  r  r  r)  r  r   r*  r+  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  r-  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   r  r
   r    r#  r   r   r&  r  r-   r  r   r+  r  r  r  r  r@  rA  r   r  rD  r!   r"   r#   r;  r;    s        .3eDb.Q.Q.QIx*+QQQ>Ce A? ? ?HhuT*-z9:;    ).k) ) )E8$%    !5k  E8C=    "'"w" " "FHX    (-uTGt'u'u'uFH^$uuu',u"Y( ( (OXe_    +0%"x+ + +K,'    6;U"m6 6 6L(12    /4e G/ / /K*+    E G  Hc    !&"_! ! !J    !5;opppE8C=ppp385"]4 4 4K/0     r"   r;  c                   l   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"<   dS )#QueryRequestNr   r2   r  r  r<  r"  r#  r$  r%  r&  r'  r  r(  r  r  r)  r  r   r*  r+  r,  r  z9Offset of the result. Skip this many points. Default is 0r  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#   rF  rF  7  s\        .3eDb.Q.Q.QIx*+QQQ>Ce A? ? ?HhuT*-z9:;    ).k) ) )E8$%    !5k  E8C=    "'"w" " "FHX    (-uTGt'u'u'uFH^$uuu',u"Y( ( (OXe_    !5;klllE8C=lll!E$<wxxxFHSMxxx*/%"x+ + +K,'    6;U"m6 6 6L(12    /4e G/ / /K*+     r"   rF  c                   @    e Zd ZU  edd          Zed         ed<   dS )QueryRequestBatch.r   r   rF  r  Nr  r!   r"   r#   rH  rH  Z  s6         %*U3B%?%?%?Hd>"?????r"   rH  c                   @    e Zd ZU  edd          Zed         ed<   dS )rE  .r   r   r6  rc  N)r   r   r   r   rc  r   r    r!   r"   r#   rE  rE  ^  s6         "'%"<"<"<FD<<<<<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d	<    ed
d          Z
ee         ed<    ed
d          Zed         ed<    edd          Zeed<   d
S )rr   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 termr2   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}   rK  r
   r   r   r;   r!   r"   r#   rr   rr   b  s             D#    %n  FC    $e\      "E$<XYYYFHSMYYY"'%Bi"j"j"jD(;
jjjU3,OPPPHdPPPPPr"   rr   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<   dS )RangerK  NrL  r2   rM  rN  rO  rP  rQ  rR  rS  )r   r   r   r[   r   rM  r
   r  r    rO  rQ  rS  r!   r"   r#   rM  rM  v  s            %:STTTBTTT%:STTTBTTT 5;VWWWC%WWW 5;VWWWC%WWWWWr"   rM  c                   *    e Zd ZdZdefdZdZdZdZdS )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quorumallN)	r   r   r   r[   r-   r   MAJORITYQUORUMALLr!   r"   r#   rO  rO    sD              HF
CCCr"   rO  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,<   dS )-RecommendGroupsRequestNr  r2   r  r  !Look for vectors closest to thoser  r  Try to avoid vectors like thisr  =How to use positive and negative examples to find the resultsRecommendStrategystrategyr  r  r  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.r+  r  r  r  r  r  r  .r?  r   r@  ,Maximum amount of points to return per grouprA  "Maximum amount of groups to returnr  rB  rC  rD  )r   r   r   r   r  r
   r    r  r   r  r]  r  r   r  r  r+  r  r  r  r@  r-   rA  r   r  rD  r!   r"   r#   rX  rX    s        .3ek/ / /Ix*+    495Qt3u3u3uHht./0uuu385Qq3r3r3rHht./0rrr.3e"a/ / /Hh*+    "'tAw!x!x!xFHXxxx',uTGa'b'b'bFH^$bbb5:U"g6 6 6L(12    +0%"t+ + +K,'    (-u r( ( (OXe_    &+Uq& & &E8M"    /4e |/ / /K*+    E G  Hc    eC-[\\\J\\\s(LMMME3MMM385"]4 4 4K/0     r"   rX  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
<   dS )RecommendInputNz9Look for vectors closest to the vectors from these pointsr2   r	  r  z6Try to avoid vectors like the vector from these pointsr  z3How to use the provided vectors to find the resultsr\  r]  )
r   r   r   r   r  r
   r   r    r  r]  r!   r"   r#   rb  rb    s         .3e"]/ / /HhtM*+    /4e"Z/ / /HhtM*+    /4e"W/ / /Hh*+     r"   rb  c                   4    e Zd ZU  edd          Zded<   dS )RecommendQuery.r   r   rb  	recommendN)r   r   r   r   re  r    r!   r"   r#   rd  rd    s2         "'%"<"<"<I<<<<<r"   rd  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(<   dS ))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.
    Nr  r2   r  r  rY  r  r  rZ  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  r]  r  r   r  r   r  r  r  r+  r  r  r  r!   r"   r#   rg  rg    s          /4ek/ / /Ix*+    495Qt3u3u3uHht./0uuu385Qq3r3r3rHht./0rrr.3e"a/ / /Hh*+    "'tAw!x!x!xFHXxxx',uTGa'b'b'bFH^$bbbs(HIIIE3III!E U  FHSM    6;U"g6 6 6L(12    +0%"t+ + +K,'    (-u r( ( (OXe_    &+Uq& & &E8M"    /4e |/ / /K*+     r"   rg  c                   @    e Zd ZU  edd          Zed         ed<   dS )RecommendRequestBatch.r   r   rg  r  Nr  r!   r"   r#   ri  ri    s7         ).s)C)C)CHd%&CCCCCr"   ri  c                   &    e Zd ZdZdefdZdZdZdS )r\  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`.
    r   c                 *    t          | j                  S r   r   r   s    r#   r   zRecommendStrategy.__str__  r   r"   average_vector
best_scoreN)r   r   r   r[   r-   r   AVERAGE_VECTOR
BEST_SCOREr!   r"   r#   r\  r\    s?              &NJJJr"   r\  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<   dS )r*  z
    Point data
    .z
Point datar   rC   r   N&Payload - values assigned to the pointr2   rG   r  Vector of the pointr  rl  	Shard Keyr0  r  
OrderValueorder_value)r   r   r   r[   r   r   r    r  r
   rl  r  ru  r!   r"   r#   r*  r*     s           "E#<@@@B@@@#(5Ck#l#l#lGXi lll',uTG\']']']FH^$]]]&+eDk&R&R&RIx
#RRR*/%,*W*W*WK,'WWWW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<   dS )r   .zRemote shard idr   r   Nrw  r2   r0  r  zRemote peer idro   r   rx  ry  )r   r   r   r   r   r   r    r  r
   ro   ry  r!   r"   r#   r   r     s         E#+<===Hc===&+eDFa&b&b&bIx
#bbb5*:;;;GS;;;!E#2666E>6666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
<   dS )RemoteShardTelemetry.r   r   r   Nr2   ro   r  r  updates)r   r   r   r   r   r   r    ro   r
   r  ry  r!   r"   r#   rx  rx    s         E#2...Hc..."U4R@@@GXc]@@@.3eCR.H.H.HH+HHH-2U3B-G-G-GG*GGGGGr"   rx  c                   \    e Zd ZU dZ edd          Zeed<    edd          Zeed<   dS )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MMMNCMMM%1LMMMNCMMMMMr"   r{  c                   8    e Zd ZU dZ edd          Zded<   dS )RenameAliasOperationr|  .r}  r   r{  rename_aliasN)r   r   r   r[   r   r  r    r!   r"   r#   r  r  #  s>           #(%9T"U"U"UL-UUUUUr"   r  c                   X    e Zd ZU  edd          Zeed<    edd          Zeed<   dS )r  .r   r   r   ro   N)r   r   r   r   r   r   r    ro   r!   r"   r#   r  r  +  sP         E#2...Hc...5"---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edf         ed<   dS )r   .r   r   r   Nr2   r{  localrx  remoterx  replicate_states)r   r   r   r   r   r   r    r  r
   r  r   r  r   r-   r!   r"   r#   r   r   0  s         eCR(((B(((-2U4R-P-P-PE8)*PPP+05"+E+E+EFD'(EEE27%2L2L2Ld3./LLLLLr"   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S )rx  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RecoveryN)r   r   r   r[   r-   r   ACTIVEDEADPARTIALINITIALIZINGLISTENERPARTIALSNAPSHOTRECOVERYr!   r"   r#   rx  rx  7  sX              FDG!LH'OHHHr"   rx  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<   dS )ReplicateShard.r   r   r   r   r   Nr  r2   r  r  r  r!   r"   r#   r  r  H  r  r"   r  c                   4    e Zd ZU  edd          Zded<   dS )ReplicateShardOperation.r   r   r  replicate_shardN)r   r   r   r   r  r    r!   r"   r#   r  r  Q  s2         (-cr(B(B(BO%BBBBBr"   r  c                   X    e Zd ZU  edd          Zded<    edd          Zded<   dS )	RequestsTelemetry.r   r   WebApiTelemetryrestr  grpcN)r   r   r   r   r  r    r  r!   r"   r#   r  r  U  sQ         #eCR888D
888!E#2666D/66666r"   r  c                   "    e Zd ZdZdefdZdZdS )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  Z  r  r"   r  c                   "    e Zd ZdZdefdZdZdS )ReshardingDirectionOneOf1z$
    Scale down, remove a shard
    r   c                 *    t          | j                  S r   r   r   s    r#   r   z!ReshardingDirectionOneOf1.__str__j  r   r"   downN)r   r   r   r[   r-   r   DOWNr!   r"   r#   r  r  e  :              DDDr"   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<    edd	          Ze
e         ed<   dS )r   .r   r   ReshardingDirectionr  r   ro   Nr2   r0  r  zUA human-readable report of the operation progress. Available only on the source peer.comment)r   r   r   r   r  r    r   r   ro   r  r
   r  r-   r!   r"   r#   r   r   p  s         ',uSb'A'A'AI$AAAE#2...Hc...5"---GS---&+eDb&I&I&IIx
#III"Uk  GXc]     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	ded<   d	S )
RestartTransfer.r   r   r   r   r   r  r  N)
r   r   r   r   r   r   r    r   r   r  r!   r"   r#   r  r  {  s         E#2...Hc...cr222L#222eCR000J000$)E#2$>$>$>F!>>>>>r"   r  c                   4    e Zd ZU  edd          Zded<   dS )RestartTransferOperation.r   r   r  restart_transferN)r   r   r   r   r  r    r!   r"   r#   r  r    s3         */%*D*D*D'DDDDDr"   r  c                   H   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<   dS )r6   Nr   r2   distributiondistribution_version.r   	is_dockercoresram_size	disk_size	cpu_flags)r   r   r   r   r  r
   r-   r    r  r  r;   r  r   r  r  r  r!   r"   r#   r6   r6     s         "'%""E"E"EL(3-EEE*/%"*M*M*M(3-MMMeCR000It000 52>>>E8C=>>>#eDbAAAHhsmAAA$uTrBBBIx}BBBU3B///Is/////r"   r6   c                       e Zd ZdZdS )SamplerandomN)r   r   r   RANDOMr!   r"   r#   r  r    s        FFFr"   r  c                   4    e Zd ZU  edd          Zded<   dS )SampleQuery.r   r   r  sampleN)r   r   r   r   r  r    r!   r"   r#   r  r    r  r"   r  c                   4    e Zd ZU  edd          Zded<   dS )ScalarQuantization.r   r   ScalarQuantizationConfigscalarN)r   r   r   r   r  r    r!   r"   r#   r  r    rM   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<   dS )r  .r   r   
ScalarTyperS   NziQuantile for quantization. Expected value range in [0.5, 1.0]. If not set - use the whole range of valuesr2   quantilez]If true - quantized vectors always will be stored in RAM, ignoring the config of main storagerO   )r   r   r   r   rS   r    r  r
   r  rO   r;   r!   r"   r#   r  r    s         s333D,333 %! ! !Hhuo    "'s" " "J     r"   r  c                       e Zd ZdZdS )r  int8N)r   r   r   INT8r!   r"   r#   r  r    rV   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<   dS )r6  z
    Search result
    .zSearch resultr   rC   r   zPoint versionr1   z*Points vector distance to the query vectorscoreNrq  r2   rG   r  rr  r  rl  rs  r0  r  zOrder-by valuert  ru  )r   r   r   r[   r   r   r    r1   r   r  r  r  r
   rl  r  ru  r!   r"   r#   r6  r6    s          "E#?CCCBCCC5/:::GS:::5*VWWWE5WWW#(5Ck#l#l#lGXi lll',uTG\']']']FH^$]]]&+eDk&R&R&RIx
#RRR*/%JZ*[*[*[K,'[[[[[r"   r6  c                   d   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<   dS )ScrollRequestzQ
    Scroll request - paginate over all points which matches given condition
    Nr  r2   r  r  zStart ID to read points from.rC   r  zPage size. Default: 10r  zSLook only for points which satisfies this conditions. If not provided - all points.r  r  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   r  r
   r    r  r  r   r  r  r  r  r!   r"   r#   r  r    s`          /4ek/ / /Ix*+    +0%Ji*j*j*jFH&'jjj 5;STTTE8C=TTT!&"w" " "FHX    6;U"f6 6 6L(12    +0%"k+ + +K,'    .3U4Mt-u-u-uHh)*uuuuur"   r  c                   t    e Zd ZU dZ edd          Zed         ed<    edd	          Ze	d
         ed<   dS )r2  z+
    Result of the points read request
    .zList of retrieved pointsr   r*  rc  Nz:Offset which should be used to retrieve a next page resultr2   rC   next_page_offset)
r   r   r   r[   r   rc  r   r    r  r
   r!   r"   r#   r2  r2    sz           #U34NOOOFDNOOO49E"^5 5 5h01     r"   r2  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!<   dS )"SearchGroupsRequestNr  r2   r  r  .r   r   NamedVectorStructrl  r  r  r  r  r  r   r  r  r  r  r  r  r^  r+  r?  r@  r_  rA  r`  r  rB  rC  rD  )r   r   r   r   r  r
   r    rl  r  r   r  r  r+  r  r@  r-   rA  r   r  rD  r!   r"   r#   r  r    s        .3ek/ / /Ix*+    #(%"<"<"<F<<<!&tAw!x!x!xFHXxxx',uTGa'b'b'bFH^$bbb5:U"g6 6 6L(12    +0%"t+ + +K,'    (-u r( ( (OXe_    E G  Hc    eC-[\\\J\\\s(LMMME3MMM385"]4 4 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<   dS )rM  .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 orderrC   rD   N)r   r   r   r   r  r   r   r    r  r  r  rD   r!   r"   r#   rM  rM    s         "U34OPPPKcPPP"U34RSSSKcSSS%1\]]]FDK]]]#(5:V#W#W#WC	 WWWWWr"   rM  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d<   d	S )
SearchMatrixPairz*
    Pair of points (a, b) with score
    .z Pair of points (a, b) with scorer   rC   abr  N)
r   r   r   r[   r   r  r    r  r  r  r!   r"   r#   r  r     s           !52TUUUAUUU 52TUUUAUUU5*LMMME5MMMMMr"   r  c                   @    e Zd ZU  edd          Zed         ed<   dS )rJ  .z#List of pairs of points with scoresr   r  pairsN)r   r   r   r   r  r   r    r!   r"   r#   rJ  rJ  
  s8         &+eC=b&c&c&cE4"#cccccr"   rJ  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<   dS )SearchMatrixRequestNr  r2   r  r  r  r  r  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   r  r
   r    r  r  r   r  r  r-   r!   r"   r#   r  r    s         .3ek/ / /Ix*+    "'tAw!x!x!xFHXxxx!E"_  FHSM    !5;rsssE8C=sss 5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<   dS )r  r6  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.r2   hnsw_efFzYSearch without approximation. If set to true, search may run long but with exact results.r  zQuantization paramsr5  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    r  r;   r  r  r!   r"   r#   r  r    s           #U c  GXc]    "Eo  E8D>    :?tYn9o9o9oL(56ooo#(5 ~$ $ $L(4.     r"   r  c                      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<   dS )SearchRequestz
    Search request. Holds all conditions and parameters for the search of most similar points by vector similarity given the filtering restrictions.
    Nr  r2   r  r  .zSearch request. Holds all conditions and parameters for the search of most similar points by vector similarity given the filtering restrictions.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   r  r
   r    rl  r  r   r  r   r  r  r  r+  r  r!   r"   r#   r  r  2  s          /4ek/ / /Ix*+    #(% g# # #F    "'tAw!x!x!xFHXxxx',uTGa'b'b'bFH^$bbbs(HIIIE3III!E U  FHSM    6;U"g6 6 6L(12    +0%"t+ + +K,'    (-u r( ( (OXe_     r"   r  c                   @    e Zd ZU  edd          Zed         ed<   dS )SearchRequestBatch.r   r   r  r  Nr  r!   r"   r#   r  r  R  s6         &+eCR&@&@&@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<   dS )SegmentConfigr   r2   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  V  s         ;@5Y[;\;\;\K$s$6678\\\HMVZhjHkHkHkc+C&C!DEkkk16s1K1K1K.KKKK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f         ed<    edd          Zeedf         ed<   dS )SegmentInfoz.
    Aggregated information about segment
    .z$Aggregated information about segmentr   SegmentTypesegment_typenum_vectors
num_pointsnum_indexed_vectorsnum_deleted_vectorsram_usage_bytesdisk_usage_bytesis_appendabler   index_schemaVectorDataInfor  N)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  \  sw          #(%9_"`"`"`L-```uS.TUUUKUUUeC-STTTJTTT$uS6\]]]]]]$uS6\]]]]]] 52XYYYOSYYY!E#3YZZZcZZZ%1WXXXM4XXX27%Io2p2p2pL$s../ppp/4uSFl/m/m/mKc++,mmmm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<   dS )r  .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#   r  r  m  s         %444D-444#eCR888FO888BG%Y[B\B\B\4 >?\\\;@5RT;U;U;U4 78UUUUUr"   r  c                   *    e Zd ZdZdefdZdZdZdZdS )r  z
    Type of segment
    r   c                 *    t          | j                  S r   r   r   s    r#   r   zSegmentType.__str__y  r   r"   r  indexedspecialN)	r   r   r   r[   r-   r   PLAININDEXEDSPECIALr!   r"   r#   r  r  t  sD              EGGGGr"   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<   dS )r  r`  .re  r   rG   r  Nz*Assigns payload to each point in this listr2   rC   rc  z@Assigns payload to each point that satisfy this filter conditionr  r  r  r  z@Assigns payload to each point that satisfy this path of propertyr  )r   r   r   r[   r   r  r    rc  r
   r   r  r  r  r-   r!   r"   r#   r  r    s%          j  GY    16"N1 1 1FHT+,-    "'"d" " "FHX    /4e"s/ / /Ix*+    "d  C#     r"   r  c                   4    e Zd ZU  edd          Zded<   dS )SetPayloadOperation.r   r   r  set_payloadN)r   r   r   r   r  r    r!   r"   r#   r  r    s1          %cr : : :K:::::r"   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<   dS )ShardSnapshotRecover.r   r   ShardSnapshotLocationlocationNr2   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   r  r    r  r
   r  r-   r  r!   r"   r#   r  r    s         (-cr(B(B(BH%BBB-2U4R-P-P-PHh)*PPP#e"j  Hhsm    #U"g  GXc]     r"   r  c                   .    e Zd ZdZdefdZdZdZdZdZ	dS )	r}  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__  r   r"   r   r   r   r   Nr   r!   r"   r#   r}  r}    r   r"   r}  c                      e Zd ZU  edd          Z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<   dS )r   .r   r   r   zSource peer idfromr  from_zDestination peer idtozyIf `true` transfer is a synchronization of a replicas If `false` transfer is a moving of a shard from one peer to anothersyncNr2   r  r  zTA human-readable report of the transfer progress. Available only on the source peer.r  )r   r   r   r   r   r   r    r  r  r   r;   r  r
   r  r-   r!   r"   r#   r   r     s         E#2...Hc...s(8GGGE3GGGeC%:;;;B;;; P  D$    /4eDb.Q.Q.QFH*+QQQ"U"x  GXc]     r"   r   c                   "    e Zd ZdZdefdZdZdS )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#   r"  r"    s:              &NNNr"   r"  c                   "    e Zd ZdZdefdZdZdS )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#   r'  r'    s:              HHHr"   r'  c                   "    e Zd ZdZdefdZdZdS )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#   r,  r,    s:              IIIr"   r,  c                       e Zd ZdZdZdS )r   autocustomN)r   r   r   AUTOCUSTOMr!   r"   r#   r   r     s        DFFFr"   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	<   dS )
r#  .r   r   r0   Nr2   creation_timesizer  )r   r   r   r   r0   r-   r    r6  r
   r7  r   r  r!   r"   r#   r#  r#    s         cr***D#***#(52#F#F#FM8C=FFFcr***D#***#eDbAAAHhsmAAAAAr"   r#  c                   *    e Zd ZdZdefdZdZdZdZdS )r  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_syncr)  replicaN)	r   r   r   r[   r-   r   NO_SYNCr*  REPLICAr!   r"   r#   r  r    sD              GHGGGr"   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         ed<    edd          Z
ee         ed<   dS )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   r  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.r2   r  r  r  r  r  r  )r   r   r   r   r  r-   r    r  r
   r  r  r!   r"   r#   r?  r?    s         E C  Hc    .3U r. . .Hh)*    $e"j  Hhsm    #U"g  GXc]     r"   r?  c                       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<   dS )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.r2   r  .z(Configuration for sparse inverted index.r   SparseIndexType
index_typez,Datatype used to store weights in the index.VectorStorageDatatypedatatype)r   r   r   r[   r   r  r
   r   r    rE  rG  r!   r"   r#   rA  rA  	  s           */ M* * *#    %*E#;e$f$f$fJ!fff27%"P3 3 3Hh./     r"   rA  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
<   dS )SparseIndexParamsrB  NrC  r2   r  zUStore index on disk. If set to false, the index will be stored in RAM. Default: falserD  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.r7  rG  )r   r   r   r[   r   r  r
   r   r    rD  r;   rG  r!   r"   r#   rI  rI  	  s           */ M* * *#    $ek  GXd^    &+U P	& & &Hhz"     r"   rI  c                   "    e Zd ZdZdefdZdZdS )SparseIndexTypeOneOfz"
    Mutable RAM sparse index
    r   c                 *    t          | j                  S r   r   r   s    r#   r   zSparseIndexTypeOneOf.__str__4	  r   r"   
MutableRamN)r   r   r   r[   r-   r   
MUTABLERAMr!   r"   r#   rK  rK  /	  s:              JJJr"   rK  c                   "    e Zd ZdZdefdZdZdS )SparseIndexTypeOneOf1z$
    Immutable RAM sparse index
    r   c                 *    t          | j                  S r   r   r   s    r#   r   zSparseIndexTypeOneOf1.__str__?	  r   r"   ImmutableRamN)r   r   r   r[   r-   r   IMMUTABLERAMr!   r"   r#   rP  rP  :	  s:              "LLLr"   rP  c                   "    e Zd ZdZdefdZdZdS )SparseIndexTypeOneOf2z
    Mmap sparse index
    r   c                 *    t          | j                  S r   r   r   s    r#   r   zSparseIndexTypeOneOf2.__str__J	  r   r"   MmapNr   r   r   r[   r-   r   MMAPr!   r"   r#   rU  rU  E	  r  r"   rU  c                   t    e Zd ZU dZ edd          Zee         ed<    edd          Z	ee
         ed<   dS )	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  P	  sf           s0HIIIGT#YIII%1]^^^FDK^^^^^r"   r  c                   8    e Zd ZU dZ edd          Zded<   dS )r  z5
    Config of single sparse vector data storage
    .z+Config of single sparse vector data storager   rA  indexN)r   r   r   r[   r   r^  r    r!   r"   r#   r  r  Y	  s?           "'s8e!f!f!fEfffffr"   r  c                   t    e Zd ZU dZ edd          Zed         ed<    edd          Zed         ed	<   dS )
r   z5
    Params of single sparse vector data storage
    NzQCustom params for index. If none - values from collection configuration are used.r2   rI  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   a	  s           ,15"u, , ,E8'(    &+U"m& & &Hhz"     r"   c                   .    e Zd ZdZdefdZdZdZdZdZ	dS )	r~   z+
    Role of the peer in the consensus
    r   c                 *    t          | j                  S r   r   r   s    r#   r   zStateRole.__str__s	  r   r"   Follower	CandidateLeaderPreCandidateN)
r   r   r   r[   r-   r   FOLLOWER	CANDIDATELEADERPRECANDIDATEr!   r"   r#   r~   r~   n	  sI              HIF!LLLr"   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	d	ed
<    edd          Z
ded<   dS )r  .r   r   r   r/   appr   r   r   clusterr  requestsN)r   r   r   r   r   r-   r    rl  r   rm  rn  r!   r"   r#   r  r  |	  s         eCR(((B((($uSb999C	999*/%*D*D*DK'DDD"'%"<"<"<G<<<$)E#2$>$>$>H!>>>>>r"   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<    edd          Zee         ed<    edd          Zee         ed<   dS )TextIndexParams.r   r   TextIndexTyperS   Nr2   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.	lowercaserC  rD  )r   r   r   r   rS   r    rs  r
   rt  r   ru  rv  r;   rD  r!   r"   r#   rp  rp  	  s         !E#2666D/666+052+N+N+NIx(NNN#(5Ch#i#i#iM8C=iii#(5Ch#i#i#iM8C=iii %d@o p p pIx~ppp#eD>qrrrGXd^rrrrrr"   rp  c                       e Zd ZdZdS )rq  r  N)r   r   r   r  r!   r"   r#   rq  rq  	  rV   r"   rq  c                       e Zd ZdZdZdZdZdS )rr  prefix
whitespacewordmultilingualN)r   r   r   PREFIX
WHITESPACEWORDMULTILINGUALr!   r"   r#   rr  rr  	  s"        FJD!LLLr"   rr  c                       e Zd ZdZdZdS )TrackerStatusOneOf
optimizingdoneN)r   r   r   
OPTIMIZINGDONEr!   r"   r#   r  r  	  s        JDDDr"   r  c                   4    e Zd ZU  edd          Zeed<   dS )TrackerStatusOneOf1.r   r   	cancelledN)r   r   r   r   r  r-   r    r!   r"   r#   r  r  	  s1         U3B///Is/////r"   r  c                   4    e Zd ZU  edd          Zeed<   dS )TrackerStatusOneOf2.r   r   r  N)r   r   r   r   r  r-   r    r!   r"   r#   r  r  	  s1         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<   dS )r  z*
    Tracker object used in telemetry
    .zName of the optimizerr   r0   zSegment IDs being optimizedsegment_idsz Tracker object used in telemetryTrackerStatusrj   zStart time of the optimizerstart_atNzEnd time of the optimizerr2   end_at)r   r   r   r[   r   r0   r-   r    r  r   r   rj   r  r   r   r   r  r
   r!   r"   r#   r  r  	  s           c'>???D#???"U34QRRRKcRRR#eC5WXXXFOXXX&+eC=Z&[&[&[HeHdN#[[[.3eDNi.j.j.jFHU8T>*+jjjjjr"   r  c                   4   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<   dS )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.r2   VectorsConfigDiffrF   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   )r   r   r   r[   r   rF   r
   r    r&  r   r   r   r   r!   r"   r#   r  r  	  sh          .3U w. . .GX)*    ;@% r; ; ;x 67    05u"[0 0 0FH+,    /4e"w/ / /K*+    ?De"f? ? ?":;    7<e"j7 7 7NH23     r"   r  c                   @    e Zd ZU  edd          Zed         ed<   dS )UpdateOperations.r   r   UpdateOperation
operationsN)r   r   r   r   r  r   r    r!   r"   r#   r  r  	  s7         */%*D*D*DJ&'DDDDDr"   r  c                   d    e Zd ZU  edd          Zee         ed<    edd          Zded	<   dS )
r/  Nz"Sequential number of the operationr2   operation_id.r   r   UpdateStatusrj   )	r   r   r   r   r  r
   r   r    rj   r!   r"   r#   r/  r/  	  sU         "'%Bf"g"g"gL(3-ggg"U3B777FN77777r"   r/  c                   &    e Zd ZdZdefdZdZdZdS )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__	  r   r"   acknowledged	completedN)r   r   r   r[   r-   r   ACKNOWLEDGED	COMPLETEDr!   r"   r#   r  r  	  s?              "LIIIr"   r  c                   p    e Zd ZU  edd          Zed         ed<    edd          Zed	         ed
<   dS )UpdateVectors.zPoints with named vectorsr   r  rc  Nr   r2   r  r  r  r!   r"   r#   r  r  	  s\         #(5:U#V#V#VFD VVV.3eDb.Q.Q.QIx*+QQQQQr"   r  c                   4    e Zd ZU  edd          Zded<   dS )UpdateVectorsOperation.r   r   r  update_vectorsN)r   r   r   r   r  r    r!   r"   r#   r  r  	  ri  r"   r  c                   4    e Zd ZU  edd          Zded<   dS )UpsertOperation.r   r   PointInsertOperationsupsertN)r   r   r   r   r  r    r!   r"   r#   r  r  	  s2         &+eCR&@&@&@F#@@@@@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<   dS )UuidIndexParams.r   r   UuidIndexTyperS   Nz'If true - used for tenant optimization.r2   rq  rC  rD  rr  r!   r"   r#   r  r  	  sy         !E#2666D/666 %d@i j j jIx~jjj#eD>qrrrGXd^rrrrrr"   r  c                       e Zd ZdZdS )r  r  N)r   r   r   r  r!   r"   r#   r  r  	  rV   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e         ed	<    edd
          Zee         ed<   dS )r  z%
    Values count filter request
    Nz'point.key.length() &lt; values_count.ltr2   rM  z'point.key.length() &gt; values_count.gtrO  z)point.key.length() &gt;= values_count.gterQ  z)point.key.length() &lt;= values_count.lterS  )r   r   r   r[   r   rM  r
   r   r    rO  rQ  rS  r!   r"   r#   r  r  	  s           d8abbbBbbbd8abbbBbbbt9deeeC#eeet9deeeC#eeeeer"   r  c                   4   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<   dS )r  z.
    Config of single vector data storage
    .z'Size/dimensionality of the vectors usedr   r7  z$Config of single vector data storager  distanceVectorStorageTypestorage_typeIndexesr^  NzDVector specific quantization config that overrides collection configr2   r   r   zBVector specific configuration to enable multiple vectors per pointr  multivector_configzBVector specific configuration to set specific storage element typerF  rG  )r   r   r   r[   r   r7  r   r    r  r  r^  r   r
   r  rG  r!   r"   r#   r  r  
  sB          c'PQQQD#QQQ 52XYYYHjYYY(-c?e(f(f(fL%fffuS.TUUUE9UUU:?%"h; ; ;"67    9>"f9 9 9!45    38%"f3 3 3Hh./     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<   dS )r  .r   r   r  r  r  N)	r   r   r   r   r  r   r    r  r  r!   r"   r#   r  r  
  sq         uSb111K111$uSb999999$uSb999999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<   dS )r  Nr   r2   
index_name.r   r  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  r  r  r  r  r  r  r  r!   r"   r#   r  r  
  s\         %d C C CJCCC6;eCR6P6P6P3PPP5:U3B5O5O5OO2OOO7<uSb7Q7Q7Q4QQQ49E#24N4N4NN1NNN@EcWY@Z@Z@Z =ZZZ@EcWY@Z@Z@Z =ZZZ49E#24N4N4NN1NNN5:U3B5O5O5OO2OOO6;eCR6P6P6P3PPPPPr"   r  c                   L   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<   d	S )VectorParamsz.
    Params of single vector data storage
    .zSize of a vectors usedr   r7  z$Params of single vector data storager  r  NzVCustom params for HNSW index. If none - values from collection configuration are used.r2   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: falserD  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]`.r7  rG  r  r  )r   r   r   r[   r   r7  r   r    r  r   r
   r   rD  r;   rG  r  r!   r"   r#   r  r  *
  sl          c'?@@@D#@@@ 52XYYYHjYYY.3el/ / /K*+    ;@%n; ; ;"67    $ev  GXd^    &+U F& & &Hhz"    9>"H9 9 9!45     r"   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
<   dS )r   NzAUpdate params for HNSW index. If empty object - it will be unset.r2   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 latencyrD  )
r   r   r   r   r   r
   r    r   rD  r;   r!   r"   r#   r   r   F
  s         .3e"e/ / /K*+    ?De"c? ? ?":;    $e"u  GXd^     r"   c                   *    e Zd ZdZdefdZdZdZdZdS )rF  z#
    Storage types for vectors
    r   c                 *    t          | j                  S r   r   r   s    r#   r   zVectorStorageDatatype.__str__W
  r   r"   r8  r:  r9  N)	r   r   r   r[   r-   r   r;  r=  r<  r!   r"   r#   rF  rF  R
  sD              GGEEEr"   rF  c                   "    e Zd ZdZdefdZdZdS )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__d
  r   r"   MemoryN)r   r   r   r[   r-   r   MEMORYr!   r"   r#   r  r  _
  s:              FFFr"   r  c                   "    e Zd ZdZdefdZdZdS )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__o
  r   r"   rW  NrX  r!   r"   r#   r  r  j
  r  r"   r  c                   "    e Zd ZdZdefdZdZdS )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__z
  r   r"   ChunkedMmapN)r   r   r   r[   r-   r   CHUNKEDMMAPr!   r"   r#   r  r  u
  s:               KKKr"   r  c                   "    e Zd ZdZdefdZdZdS )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                       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<   dS )	VersionInfo.r   r   titler1   Nr2   r|   )
r   r   r   r   r  r-   r    r1   r|   r
   r!   r"   r#   r  r  
  ss         s+++E3+++5"---GS---!E$B???FHSM?????r"   r  c                   X    e Zd ZU  edd          Zeed<    edd          Zeed<   dS )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   r  r   r    r  r!   r"   r#   r   r   
  sS          52VWWWOSWWW#eC5sttttttttr"   r   c                   p    e Zd ZU  edd          Zee         ed<    edd          Zee         ed<   dS )r$  Nr  r2   r  r  r  )	r   r   r   r   r  r
   r   r    r  r!   r"   r#   r$  r$  
  sl         %*U4Ei%j%j%jOXc]jjj(-"`) ) )     r"   r$  c                   T    e Zd ZU  edd          Zeeeedf         f         ed<   dS )r  .r   r   r  r  Nr  r!   r"   r#   r  r  
  sG         EJU3\^E_E_E_ItCc#@@AAB_____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<   dS )
WithLookup.z/Name of the collection to use for points lookupr   r  Nz8Options for specifying which payload to include (or not)r2   r  r  z8Options for specifying which vectors to include (or not)r  with_vectors)
r   r   r   r   r  r-   r    r  r
   r  r!   r"   r#   r  r  
  s         eC-^___J___5:U"\6 6 6L(12    ,15"\, , ,L(<(     r"   r  c                   *    e Zd ZdZdefdZdZdZdZdS )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__
  r   r"   weakmediumstrongN)	r   r   r   r[   r-   r   WEAKMEDIUMSTRONGr!   r"   r#   r  r  
  sD              DFFFFr"   r  N(c  r   r   enumr   typingr   r   r   r	   r
   r   pydanticr   r   pydantic.typesr   r   r   r   r-   rG   r  r  r   r'   r*   r/   r4   rB   rJ   rK   rQ   rR   rX   r]   ra   rh   rl   ry   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   re   r   r   r   r  r  r  r  r  r  r  r   r*  r/  r4  r7  r?  r@  rJ  rU  rY  r\  r_  rg  rk  rn  rq  rw  rz  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)  r,  r.  r1  r5  r8  r:  r<  r?  rB  rD  rG  rI  rL  rO  rR  rT  rV  rX  rZ  r\  r^  r`  ra  rh  rl  ro  rp  r   r{  r@  r  r  r  r  r  rv   r  r  r  r  r  r  r  r  r  r  r  r  r  r   r%  r  r  r  r  r  rc   ri  r   r  r  r  r  r  r  rp   r  r  r  r  r  r  r   r"  r/  r0  r5  r;  rF  rH  rE  rr   rM  rO  rX  rb  rd  rg  ri  r\  r*  r   rx  r{  r  r  r   rx  r  r  r  r  r  r   r  r  r6   r  r  r  r  r  r6  r  r2  r  rM  r  rJ  r  r  r  r  r  r  r  r  r  r  r  r}  r   r"  r'  r,  r   r#  r  r?  rA  rI  rK  rP  rU  r  r  r   r~   r  rp  rq  rr  r  r  r  r  r  r  r/  r  r  r  r  r  r  r  r  r  r  r  r   rF  r  r  r  r  r  r   r$  r  r  r  rY   r  ClusterOperationsrP  r   r  rt   r  rC   r  r  r  r  r  r   r  rt  r  PayloadSelectorr  r  r^   r   r  Queryr  ReadConsistencyr  r0  r  r  rD  r  r  r  r  r  Vectorr  r   rC  r  rE   r,  r  r  r	  r  r  r%  r!   r"   r#   <module>r     s"=   # # # # # # # #       < < < < < < < < < < < < < < < < % % % % % % % % H H H H H H H H H H H H
sCx.3 445 001 3 3 3 3 3( 3 3 3 3F F F F FYh F F F F6 6 6 6 6y 6 6 6
@ @ @ @ @	 @ @ @5 5 5 5 59 5 5 5N N N N NIX N N N ND D D D D( D D D DE E E E Ey E E E E7 7 7 7 7ix 7 7 7 7    C       Yh    A A A A AIX A A A AG G G G GY G G G# # # # # # # #    )   $R R R R RY R R RM M M M My M M M
w 
w 
w 
w 
wI 
w 
w 
w^ ^ ^ ^ ^y ^ ^ ^+ + + + +I + + +w w w w w) w w wf f f f fY f f f8    y   2    9H        sD   D D D D D) D D D< < < < <Y < < <C C C C C C C CL L L L L) L L La a a a a9 a a a
    sD   < < < < <y < < <D D D D D D D D# # # # #) # # #* * * * *) * * *> > > > >( > > > >
9 9 9 9 9)8 9 9 9 9
9 9 9 9 99H 9 9 9 9    9H     Y Y Y Y Y) Y Y Y    )8    = = = = =9H = = = =, , , , ,y , , , ,^W W W W Wy W W W W
    	     J J J J J( J J J J    sD   s s s s s)8 s s s s    T   h h h h hIX h h h hG G G G G)8 G G G GS S S S S9H S S S S: : : : :ix : : : :    IX    "A A A A AYh A A A AR R R R RIX R R R RA A A A AYh A A A A    T   
    sD       IX    ; ; ; ; ;IX ; ; ; ;% % % % %ix % % % %PC C C C C9H C C C C    sD   n n n n ny n n n n9 9 9 9 99H 9 9 9 97 7 7 7 7ix 7 7 7 7F F F F Fy F F F F@ @ @ @ @I @ @ @a a a a a) a a a
 
 
 
 
9H 
 
 
 
= = = = =I = = =, , , , ,I , , ,
s s s s sYh s s s s$
 
 
 
 
Yh 
 
 
 
R R R R RYh R R R R
s s s s sy s s s s    S$   	 	 	 	 	S$ 	 	 	2 2 2 2 2)8 2 2 2 2    Yh    s s s s sYh s s s s
    3   m m m m mIX m m m mD D D D Dy D D D D    (    	K 	K 	K 	K 	K	 	K 	K 	K 	K< < < < <9 < < <U U U U UI U U U] ] ] ] ]Yh ] ] ] ]       >    Yh    6    9       I       y    A A A A A	 A A AL L L L L L L LX X X X X) X X XR R R R R) R R RE E E E E) E E EK K K K K) K K KQ Q Q Q Q) Q Q QK K K K K) K K KP P P P P) P P PV V V V V) V V VK K K K K) K K KJ J J J J) J J JJ J J J J J J JL L L L L) L L LL L L L L) L L LR R R R R) R R RX X X X X) X X XZ Z Z Z Z) Z Z ZL L L L L L L LR R R R R R R RM M M M M M M MK K K K K K K KR R R R R R R RT T T T T T T TY Y Y Y Y Y Y Y@ @ @ @ @	 @ @ @
s s s s s( s s s s    sD   p p p p py p p p pn n n n nix n n n ns s s s s( s s s s    sD   7 7 7 7 7Y 7 7 7E E E E E) E E E- - - - -)8 - - - -
    Yh     Z Z Z Z Zy Z Z Z Z    )8    J J J J J	 J J J JV V V V V( V V V V	 	 	 	 		 	 	 	0 0 0 0 0	 0 0 0 0
	 	 	 	 	sD 	 	 	    	    9 9 9 9 9( 9 9 9 9    C   E E E E E	 E E E ET T T T T	 T T T T@ @ @ @ @)8 @ @ @ @8 8 8 8 89H 8 8 8 8i i i i iYh i i i i2 2 2 2 2ix 2 2 2 2Z Z Z Z Z) Z Z Z ? ? ? ? ? ? ? ?    y   >    9H    >    C   T T T T TY T T T    ix    > > > > >9H > > > >A A A A A	 A A A A; ; ; ; ; ; ; ;< < < < <9H < < < <	U 	U 	U 	U 	Uy 	U 	U 	UO O O O OI O O O    T   $^ ^ ^ ^ ^Yh ^ ^ ^ ^R R R R RYh R R R R# # # # #i # # ## # # # #y # # #N N N N Ny N N Nv v v v v v v vR R R R R9H R R R R
	N 	N 	N 	N 	N9H 	N 	N 	N 	N` ` ` ` `)8 ` ` ` `8 8 8 8 89H 8 8 8 8
R R R R R)8 R R R R
R R R R R( R R R R
    y    6F F F F F)8 F F F FE E E E E	 E E E E
    y    $) ) ) ) )( ) ) ) )X         9H        F@ @ @ @ @	 @ @ @ @= = = = =I = = =Q Q Q Q Qy Q Q Q(X X X X XIX X X X X
 
 
 
 
#t 
 
 
& & & & &Yh & & & &R	 	 	 	 	Yh 	 	 	 	= = = = =Yh = = = =& & & & &y & & & &RD D D D DIX D D D D	 	 	 	 	T 	 	 		X 	X 	X 	X 	XY 	X 	X 	X7 7 7 7 7i 7 7 7H H H H H9 H H HN N N N N)8 N N N NV V V V V9H V V V V. . . . .ix . . . .
M M M M M) M M M    3   "    Yh    C C C C Cix C C C C7 7 7 7 7	 7 7 7
    sD       T       Y   ? ? ? ? ?ix ? ? ? ?E E E E Ey E E E E0 0 0 0 0) 0 0 0    S$   2 2 2 2 2)8 2 2 2 2D D D D D( D D D D	 	 	 	 	y 	 	 	 	    d   \ \ \ \ \) \ \ \v v v v vIX v v v v.    9       )8    :X X X X X) X X XN N N N Ny N N Nd d d d d	 d d d    )8         9H    (    IX    @A A A A A( A A A AL L L L LI L L Ln n n n n) n n n"V V V V Vy V V V
 
 
 
 
#t 
 
 
    (    ,; ; ; ; ;)8 ; ; ; ;    9H        #t       	   & & & & &sD & & &    T       T       S$   
B B B B B) B B B
 
 
 
 
sD 
 
 
    ix    "    	       	    &    3   " " " " "C " " "    C   _ _ _ _ _9H _ _ _ _g g g g gY g g g
 
 
 
 
( 
 
 
 
" " " " "T " " "? ? ? ? ?I ? ? ?s s s s six s s s s    C   " " " " "C " " "    d   
0 0 0 0 0) 0 0 0, , , , ,) , , ,	k 	k 	k 	k 	ky 	k 	k 	k    y    6E E E E Ey E E E E8 8 8 8 89 8 8 8
	 	 	 	 	3 	 	 	R R R R RIX R R R R
A A A A AYh A A A AA A A A Aix A A A As s s s six s s s s    C   f f f f f)8 f f f f    y   (: : : : :Y : : :
Q 
Q 
Q 
Q 
Q9 
Q 
Q 
Q    9H    8	 	 	 	 	y 	 	 	 	
 
 
 
 
C 
 
 
    S$       c4            c4      * * * * *c4 * * *@ @ @ @ @) @ @ @u u u u u	 u u u
    IX    ` ` ` ` `i ` ` `    (    
 
 
 
 
C 
 
 
 
 OO     "$  
	 ! 
   

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