langchain.vectorstores.utils.filter_complex_metadata

langchain.vectorstores.utils.filter_complex_metadata(documents: ~typing.List[~langchain_core.documents.base.Document], *, allowed_types: ~typing.Tuple[~typing.Type, ...] = (<class 'str'>, <class 'bool'>, <class 'int'>, <class 'float'>)) List[Document][source]

Filter out metadata types that are not supported for a vector store.