Home / File/ in_memory.py — langchain Source File

in_memory.py — langchain Source File

Architecture documentation for in_memory.py, a python file in the langchain codebase. 1 imports, 0 dependents.

File python 1 imports

Entity Profile

Dependency Diagram

graph LR
  c9d6314d_901f_9c54_14fc_d429575b1b6d["in_memory.py"]
  18bf18ce_a804_12d4_efe2_700bc6c22630["langchain_core.stores"]
  c9d6314d_901f_9c54_14fc_d429575b1b6d --> 18bf18ce_a804_12d4_efe2_700bc6c22630
  style c9d6314d_901f_9c54_14fc_d429575b1b6d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"""In memory store that is not thread safe and has no eviction policy.

This is a simple implementation of the BaseStore using a dictionary that is useful
primarily for unit testing purposes.
"""

from langchain_core.stores import InMemoryBaseStore, InMemoryByteStore, InMemoryStore

__all__ = [
    "InMemoryBaseStore",
    "InMemoryByteStore",
    "InMemoryStore",
]

Dependencies

  • langchain_core.stores

Frequently Asked Questions

What does in_memory.py do?
in_memory.py is a source file in the langchain codebase, written in python.
What does in_memory.py depend on?
in_memory.py imports 1 module(s): langchain_core.stores.
Where is in_memory.py in the architecture?
in_memory.py is located at libs/langchain/langchain_classic/storage/in_memory.py (directory: libs/langchain/langchain_classic/storage).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free