Metadata Utilities

langchain_memvid.utils.metadata.get_on_first_match(metadata, *keys, default=None, expected_type=None)[source]

Get the first value from the metadata dictionary that is not None and optionally matches the expected type.

Return type:

TypeVar(T)

Parameters: