o
    1j                     @   sZ  U d dl mZmZmZmZmZmZ d dlmZ ddl	m
Z
mZ ddlmZ g dZdZee ed	< G d
d dejZG dd deZG dd deZdZee ed< G dd deZG dd deZdZee ed< G dd deZG dd deZdZee ed< G dd deZG d d! d!eZeeefeeefeeefeeefd"Zee ed#< d$S )%    )DictFinalListOptionalTupleUnion)	BaseModel   )DataInfoPrimaryOperations   )ocr)ANALYZE_IMAGES_ENDPOINTAnalyzeImagesRequestLayoutParsingResultAnalyzeImagesResultBUILD_VECTOR_STORE_ENDPOINTBuildVectorStoreRequestBuildVectorStoreResultINVOKE_MLLM_ENDPOINTInvokeMLLMRequestInvokeMLLMResultCHAT_ENDPOINTChatRequest
ChatResultPRIMARY_OPERATIONSz/chatocr-visualr   c                   @   s  e Zd ZU dZee ed< dZee ed< dZee ed< dZ	ee ed< dZ
ee ed< dZeeeef  ed< dZee ed< dZeeeeeef ef  ed	< dZeeeef  ed
< dZee ed< dZee ed< dZee ed< dZee ed< dZee ed< dZee ed< dZee ed< dZee ed< dZee ed< dZee ed< dZee ed< dZ ee ed< dZ!ee ed< dS )r   NuseDocOrientationClassifyuseDocUnwarpinguseTextlineOrientationuseSealRecognitionuseTableRecognitionlayoutThreshold	layoutNmslayoutUnclipRatiolayoutMergeBboxesModetextDetLimitSideLentextDetLimitTypetextDetThreshtextDetBoxThreshtextDetUnclipRatiotextRecScoreThreshsealDetLimitSideLensealDetLimitTypesealDetThreshsealDetBoxThreshsealDetUnclipRatiosealRecScoreThresh	visualize)"__name__
__module____qualname__r   r   bool__annotations__r   r   r   r    r!   r   floatdictr"   r#   r   r$   strr%   intr&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1    r;   r;   s/var/www/html/Deteccion_Ine/venv/lib/python3.10/site-packages/paddlex/inference/serving/schemas/pp_chatocrv4_doc.pyr   *   s.   
 "r   c                   @   s>   e Zd ZU eed< dZeeeef  ed< dZ	ee ed< dS )r   ZprunedResultNoutputImages
inputImage)
r2   r3   r4   r8   r6   r=   r   r   r9   r>   r;   r;   r;   r<   r   C   s   
 r   c                   @   s.   e Zd ZU ee ed< ee ed< eed< dS )r   ZlayoutParsingResults
visualInfoZdataInfoN)r2   r3   r4   r   r   r6   r8   r
   r;   r;   r;   r<   r   I   s   
 r   z/chatocr-vectorr   c                   @   sB   e Zd ZU ee ed< dZeed< dZeed< dZ	e
e ed< dS )r   r?     minCharactersi,  	blockSizeNretrieverConfig)r2   r3   r4   r   r8   r6   rA   r:   rB   rC   r   r;   r;   r;   r<   r   R   s
   
 r   c                   @      e Zd ZU eed< dS )r   
vectorInfoNr2   r3   r4   r8   r6   r;   r;   r;   r<   r   Y      
 r   z/chatocr-mllmr   c                   @   s2   e Zd ZU eed< ee ed< dZee ed< dS )r   imagekeyListNmllmChatBotConfig)	r2   r3   r4   r9   r6   r   rJ   r   r8   r;   r;   r;   r<   r   `   s   
 r   c                   @   rD   )r   mllmPredictInfoNrF   r;   r;   r;   r<   r   f   rG   r   z/chatocr-chatr   c                   @   s*  e Zd ZU ee ed< ee ed< dZeed< dZ	e
e ed< dZeed< dZe
e ed	< dZe
e ed
< dZe
e ed< dZe
e ed< dZe
e ed< dZe
e ed< dZe
e ed< dZe
e ed< dZe
e ed< dZe
e ed< dZe
e ed< dZeed< dZe
e ed< dZe
e ed< dS )r   rI   r?   TuseVectorRetrievalNrE   r@   rA   textTaskDescriptiontextOutputFormattextRulesStrtextFewShotDemoTextContenttextFewShotDemoKeyValueListtableTaskDescriptiontableOutputFormattableRulesStrtableFewShotDemoTextContenttableFewShotDemoKeyValueListrK   ZintegrationmllmIntegrationStrategychatBotConfigrC   )r2   r3   r4   r   r9   r6   r8   rL   r5   rE   r   rA   r:   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rK   rW   rX   rC   r;   r;   r;   r<   r   m   s(   
 r   c                   @   rD   )r   Z
chatResultNrF   r;   r;   r;   r<   r      rG   r   )ZanalyzeImagesZbuildVectorStoreZ
invokeMllmZchatr   N) typingr   r   r   r   r   r   Zpydanticr   Zinfra.modelsr
   r   Zsharedr   __all__r   r9   r6   ZBaseInferRequestr   r   r   r   r   r   r   r   r   r   r   r   r   r;   r;   r;   r<   <module>   s@   "