test_create_kv_store() — langchain Function Reference
Architecture documentation for the test_create_kv_store() function in test_lc_store.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD bf8e7a85_1aa0_8425_4d67_42debfb84d41["test_create_kv_store()"] bc75f51c_2251_f277_f00a_4fb8c7746416["test_lc_store.py"] bf8e7a85_1aa0_8425_4d67_42debfb84d41 -->|defined in| bc75f51c_2251_f277_f00a_4fb8c7746416 style bf8e7a85_1aa0_8425_4d67_42debfb84d41 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/storage/test_lc_store.py lines 30–37
def test_create_kv_store(file_store: LocalFileStore) -> None:
"""Test that a docstore is created from a base store."""
docstore = create_kv_docstore(file_store)
docstore.mset([("key1", Document(page_content="hello", metadata={"key": "value"}))])
fetched_doc = docstore.mget(["key1"])[0]
assert isinstance(fetched_doc, Document)
assert fetched_doc.page_content == "hello"
assert fetched_doc.metadata == {"key": "value"}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_create_kv_store() do?
test_create_kv_store() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/storage/test_lc_store.py.
Where is test_create_kv_store() defined?
test_create_kv_store() is defined in libs/langchain/tests/unit_tests/storage/test_lc_store.py at line 30.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free