
    7|hB                     d    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e      Z
 G d de      Zy	)
3Interface to access to place that stores documents.    )ABCabstractmethod)DictListUnion)Documentc                   D    e Zd ZdZededeeef   fd       Zde	ddfdZ
y)Docstorer   searchreturnc                      y)zSearch for document.

        If page exists, return the page summary, and a Document object.
        If page does not exist, return similar entries.
        N )selfr   s     `/var/www/html/test/engine/venv/lib/python3.12/site-packages/langchain_community/docstore/base.pyr   zDocstore.search           idsNc                     t         )z'Deleting IDs from in memory dictionary.)NotImplementedError)r   r   s     r   deletezDocstore.delete   s    !!r   )__name__
__module____qualname____doc__r   strr   r	   r   r   r   r   r   r   r   r   	   sA    =S U3=%9  "$ "4 "r   r   c                   4    e Zd ZdZedeeef   ddfd       Zy)AddableMixinz'Mixin class that supports adding texts.textsr   Nc                      y)zAdd more documents.Nr   )r   r   s     r   addzAddableMixin.add   r   r   )	r   r   r   r   r   r   r   r	   r!   r   r   r   r   r      s.    1"c8m, " " "r   r   N)r   abcr   r   typingr   r   r   langchain_core.documentsr	   r   r   r   r   r   <module>r%      s,    9 # $ $ -"s " "3 "r   