ai metadata plugin

How to configure and use the ai-metadata plugin

For the setup of this plugin root permissions are suggested.

Plugin description

The ai-metadata plugin enables the integration of OpenAIs ChatGPT into a fylr instance by automatically filling object type fields. Custom prompts can be configured and mapped to fylr object types through metadata mappings. The generated output is written directly to objects during their creation.

Datamodel requirements

To successfully use the ai-metadata plugin to describe your instances content, your Object Type needs to have

  • a file field: the source image for ChatGPT to describe

  • text fields or lists: (multilingual) text fields to map ChatGPTs output to

Installation

This plugin is a paid feature. The ZIP package is only available after a valid license has been purchased.

Please contact us to obtain the license and access to the ZIP file.

Move to your fylr instances Plugin Manager to install the ai-metadata plugin by finding the -Icons in the bottom of the plugin list and clicking the plus symbol.

While installing enabling the plugin is the default behavior. You can enable or disable the plugin anytime, active configuration will be preserved until enabled again.

Configuration

After installing and activating the plugin, select it in the plugin list.

Configure the plugin in the "General Tab" by adding an API Key

Setting
Description

ChatGPT API Key (Required)

Enter your OpenAI API key. Without API Key, requests to OpenAI will be denied.

Erweitertes Protokoll

Optional. Debug option (detailed logging).

Used image size

Controls the resolution of images sent to OpenAI. “Small” is sufficient for most use cases.

Creating the ChatGPT prompts

Inside the plugin managers config tab, create one or more named prompts by clicking .

The available inputs are mandatory.

Setting
Description
Options

Name

Name your prompt. This name will be used later to refer to this particular prompt.

-

Question for Chat GPT

Your custom ChatGPT prompt

-

Type

Output type

  • Single line text

  • Single line text (multilingual)

  • List text

  • List text (multilingual)

Choosing the Output Type

The output type matters when mapping the prompt to the object type later, make sure you select the option that fits your needs and matches your object types fields.

If it doesn't, edit your datamodel accordingly and continue afterwards.

Examples

Example prompts created for the ai-metadata plugin. The prompts display the usage of the different output type options while showcasing prompts in various complexities.
Example prompts created for the ai-metadata plugin. The prompts display the usage of the different output type options while showcasing prompts in various complexities.

Multilingual fields: Make sure to include the languages of your expected output in your prompt.

Each named list entry in the Plugin Managers configuration tab of the ai-metadata plugin becomes available in the Metadata Mapping section of fylr.

As a start, you can upload the displayed configuration and modify as needed.

Creating the Metadata Mapping

Navigate to "Metadata Mappings" in the configuration.

Create a new IMPORT Mapping by finding the -Icons in the bottom of the available Mappings and clicking the plus symbol, selecting IMPORT.

Option
Description

Object Type

Select an Object Type to apply the mapping to

Name

Provide a descriptive name for your mapping

If the plugin is enabled and a prompt is configured in the previous step, you should now see the section “ChatGPT Metadata” listing your created prompts.

Per default all Object Types are listed, in the below example, only the fields for the selected Object Type are shown because the object type limits the mapping to be used on OT "ChatGPT Object"

To map the available fields to the created prompts, drag and drop the individual fields onto your created mapping. Right click a mapping to remove.

Example of a created Metadata Mapping in fylr. To map an object types fields to our created ChatGPT Prompts drag and drop the individual fields onto your created mapping.
Example of a created Metadata Mapping in fylr using drag and drop.

Right-click on a mapping to remove it. Duplicate Mappings are allowed.

Reload the frontend to make the mapping available for upload dialogs and record creation.

Usage while creating records

When creating a new record, select the metadata mapping that includes your prompt configuration.

The mapping can be used

  • during upload via the plus icon

Create New Records view in fylr app. Highlighted are our choosen Object Type and the metadata mapping using the ChatGPT prompts

When clicking Next, you will see the Metadata Mapping being applied with a progress indicator.

In the next view, see the prompt results arranged into your fields.

After saving, the records will be accessible just like any other record.

Upload collections are available for choosing a ChatGPT Metadata Mapping to be applied to all freshly added records to the collection.


Usage with Background Tasks

To run the ai-metadata plugin in background tasks, follow these steps:

Create and Configure the Task

  1. Open the Background Tasks section in the header bar of your fylr instance.

background tasks manager located in the header bar of fylr
background tasks manager located in the header bar of fylr

  1. Create a new task by using the -Icon and selecting the module Metadata

  2. Define the schedule:

  • Manual time (default: now)

  • Scheduled time (future execution)

Task Parameters

Configure the mapping

Example mapping configuration for using the ai-metadata plugin in a background task
Parameter
Description

Object Type

Apply only to the specified object type.

Metadata Mapping

Select the metadata mapping to be applied.

Pool

Used when creating linked records with pool management during metadata mapping.

Mask

Define which mask to use for the task.

Field for Files

If multiple file fields exist, specify which one to use as source for yourn prompt.

Creating a search result to apply the mapping to

For the task to have records to apply the mapping to, configure a search that finds the records you want to be filled by ChatGPT (selection of records / the entire search result).

Example configuration of a search query showing results to be mapped by the ai-metadata plugin using the bg-tasks.
Example configuration of a search query showing results to be mapped by the ai-metadata plugin using the bg-tasks.

If the found records have no values in their fields yet, the Override Values checkbox might not be required.

After the created tasks next scheduled job has finished (now or later, depending on the amount of records to be mapped), confirm the changes made in the tasks log and the record itself.

Last updated