Generative metadata using Open AI (POC)
This optional module is part of release 24.4
and is still in the proof-of-concept (POC) stage.
Introduction
Generative metadata allows for creating instructions for an AI model to generate multiple metadata fields. Any metadata field can be generated by providing a good hint to the AI model. For the POC we have created the following instructions. During the POC phase, these instructions are stored as custom properties of the Module Plugins.
{
"Fields": {
"Dynamic.GeneratedPocTitle": {
"Hint": "Generate a prosaic title"
},
"Dynamic.GeneratedPocDescription": {
"Hint": "Generate a description"
},
"Descriptive.Keywords.Keyword": {
"Hint": "Generate a list of keywords as JSON array. All keywords should start with a capital letter. Generate around 10 keywords.",
"Type": "array"
},
"Descriptive.Position.Location": {
"Hint": "Generate the geocoordinates formatted as longitude and latitude seperated by comma"
},
"Dynamic.GeneratedPocIsPoorQuality": {
"Hint": "Generate whether there is image has poor quality or is blurry",
"Type": "boolean"
},
"Dynamic.GeneratedPocGdprHasFace": {
"Hint": "Generate whether there is a human face on the image",
"Type": "boolean"
}
}
However, MediaHaven is already prepared to handle many other questions you can ask of AI vision models. For example, is the picture taken outside or inside, is it nighttime, are there animals in the picture, etc. The language of the generated metadata is in the default locale of the organisation.
Activation
This feature will be automatically activated for the secondary and tertiary organisations on integration environments
The configuration of the Open AI API key is required for the correct operation
Create all the following field definitions linked with the dotted key you specify in the instructions
Enable the module
GENERATIVE_METADATA_OPEN_API_POC
for the customer’s organisation.Obtain the Open AI API key for this environment. The development Open AI API key is stored in LastPass.
Update the plugin
GENERATIVE_METADATA_OPEN_API_POC
for the propertySecret
with the above Open AI API key. See Postman “Update secret for plugin”
Caveats
The metadata is only generated once at ingest time