create_metadata#

langchain_community.vectorstores.alibabacloud_opensearch.create_metadata(fields: Dict[str, Any]) Dict[str, Any][source]#

Create metadata from fields.

Parameters:

fields (Dict[str, Any]) – The fields of the document. The fields must be a dict.

Returns:

The metadata of the document. The metadata must be a dict.

Return type:

metadata