langchain_community.docstore.in_memory
.InMemoryDocstore¶
- class langchain_community.docstore.in_memory.InMemoryDocstore(_dict: Optional[Dict[str, Document]] = None)[source]¶
Simple in memory docstore in the form of a dict.
Initialize with dict.
Methods
__init__
([_dict])Initialize with dict.
add
(texts)Add texts to in memory dictionary.
delete
(ids)Deleting IDs from in memory dictionary.
search
(search)Search via direct lookup.