_shim_docstore() — langchain Function Reference
Architecture documentation for the _shim_docstore() function in multi_vector.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 5e31b49e_54a9_5e91_f1a5_323af704f180["_shim_docstore()"] c7ceffe2_56b9_b96d_5de5_8e679b778e9a["MultiVectorRetriever"] 5e31b49e_54a9_5e91_f1a5_323af704f180 -->|defined in| c7ceffe2_56b9_b96d_5de5_8e679b778e9a style 5e31b49e_54a9_5e91_f1a5_323af704f180 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/retrievers/multi_vector.py lines 52–61
def _shim_docstore(cls, values: dict) -> Any:
byte_store = values.get("byte_store")
docstore = values.get("docstore")
if byte_store is not None:
docstore = create_kv_docstore(byte_store)
elif docstore is None:
msg = "You must pass a `byte_store` parameter."
raise ValueError(msg)
values["docstore"] = docstore
return values
Domain
Subdomains
Source
Frequently Asked Questions
What does _shim_docstore() do?
_shim_docstore() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/retrievers/multi_vector.py.
Where is _shim_docstore() defined?
_shim_docstore() is defined in libs/langchain/langchain_classic/retrievers/multi_vector.py at line 52.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free