filter_complex_metadata#

langchain_aws.utilities.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.

Parameters:
  • documents (List[Document])

  • allowed_types (Tuple[Type, ...])

Return type:

List[Document]