o
    kƒfÝ  ã                   @   s.  d dl mZmZ d dlmZmZmZ d dlmZ d dl	m
Z
 eƒ Ze d¡edƒedƒfdedefd	d
„ƒZe d¡edƒfdefdd„ƒZe d¡edƒfdefdd„ƒZe d¡edƒedƒedƒfdededefdd„ƒZe d¡edƒedƒfdedefdd„ƒZe d¡edƒfdefdd„ƒZdS )é    )ÚFastAPIÚForm)ÚchatÚvector_chatÚmilvus_vector©Úhilo_conversacion)Úactualizar_mulvusz	/pregunta.ÚpreguntaÚsesionc                 C   s   t  | |¡S ©N)r   r
   )r
   r   © r   úB/home/marcatoma/Documents/GitHub/back-lhia-marcimex-ia/app/main.pyÚenvio_pregunta   ó   r   z/pregunta_pgvectorc                 C   ó
   t  | ¡S r   )r   Úpregunta_pgvector©r
   r   r   r   Úenvio_pregunta_pgvector   ó   
r   z/pregunta_milvusc                 C   r   r   )r   Úpregunta_milvusrr   r   r   r   Úenvio_pregunta_milvus   r   r   z/question_milvusÚquestionÚ
collectionÚamountc                 C   s   t  | ||¡S r   )r   Úquestion_milvusr)r   r   r   r   r   r   Úsend_question_milvus   s   r   z/pregunta_hiloÚidentificadorc                 C   s   t   | |¡S r   r   )r   r
   r   r   r   r      r   z/actualizar_productos_milvusÚcollectionNamec                 C   r   r   )r	   Úactualizar_productos)r   r   r   r   Úactualizar_productos_milvus   r   r    N)Úfastapir   r   Úapp.langchain_lhiar   r   r   Ú8app.langchain_lhia.funciones_langchain.hilo_conversacionr   Úapp.actualizacion_productosr	   ÚappÚpostÚstrr   r   r   Úintr   r    r   r   r   r   Ú<module>   s"    ","