o
    ®©ZhB  ã                   @   sX   d Z ddlmZmZ ddlmZmZmZ ddlm	Z	 G dd„ deƒZ
G dd„ deƒZd	S )
ú3Interface to access to place that stores documents.é    )ÚABCÚabstractmethod)ÚDictÚListÚUnion)ÚDocumentc                   @   s@   e Zd ZdZededeeef fdd„ƒZde	ddfdd	„Z
dS )
ÚDocstorer   ÚsearchÚreturnc                 C   ó   dS )zžSearch for document.

        If page exists, return the page summary, and a Document object.
        If page does not exist, return similar entries.
        N© )Úselfr
   r   r   úX/var/www/html/lang_env/lib/python3.10/site-packages/langchain_community/docstore/base.pyr
      ó    zDocstore.searchÚidsNc                 C   s   t ‚)z'Deleting IDs from in memory dictionary.)ÚNotImplementedError)r   r   r   r   r   Údelete   s   zDocstore.delete)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ústrr   r   r
   r   r   r   r   r   r   r	   	   s
    r	   c                   @   s.   e Zd ZdZedeeef ddfdd„ƒZdS )ÚAddableMixinz'Mixin class that supports adding texts.Útextsr   Nc                 C   r   )zAdd more documents.Nr   )r   r   r   r   r   Úadd   r   zAddableMixin.add)	r   r   r   r   r   r   r   r   r   r   r   r   r   r      s     r   N)r   Úabcr   r   Útypingr   r   r   Zlangchain_core.documentsr   r	   r   r   r   r   r   Ú<module>   s    