metadata: support passing multiple documents to extract metadata from