Generating Titles and Descriptions for Images
Improve the discoverability of images in your SearchBlox Enterprise Search by using this feature. This feature uses AI (Large Language Models) to analyze images and automatically create accurate titles and descriptions.
Prerequisites:
- Download and install SearchBlox Service and set-up the configurations by creating a collection and indexing documents.
- Access to a Google Colaboratory (Colab) account with GPU runtime enabled. To download Colab Notebook click on the following link:
SearchAI_Image
Steps to Use the Google Colab Notebook
-
To connect to a runtime, click on the
connectbutton on the upper-right corner as shown in the following:
-
Choose the GPU accelerated runtime by clicking
Runtime>Change runtimetype.
NOTE: The code can only run on an GPU accelerated runtime. -
Run the first code block under the
install the required librariessection, by clicking theplay buttonmarked in red to execute the code block, as shown in the following screenshot:
-
Execute the
import the librariescode block similar to the above. -
Under
user credentialscode block, input yourhost address,port numberandusernameandpasswordinside theauth()variable. Enter the desiredcollection idfor theindex_namevariable as shown in the following example:
-
Execute the
checking cluster healthcode block. -
Execute the
retrieving and cleaning the datacode block. -
Execute the
loading the modelcode block. -
Execute the
prompts for the desired outputscode block. -
Execute the
Generating the relevant output and pushing it onto the metadatacode block.
Steps to View the Results
-
After completing the execution of previous section , navigate to the
SearchBlox Console > Manage Collection, look for the Collection which was used with images and click on thesearch iconon that collection as shown in the following example.
-
To activate the debug mode, follow the following steps:
-
Click on the
search iconon the collection. -
Log in to the search interface.
-
Append
&debug=TRUEat the end of the URL.
-
-
To Review AI-Generated Metadata, search for the term
ml_image_. You should see the two entities with the AI-generated metadata.
Updated over 1 year ago
