提示词库/填空即用的框架/Using GPT-4o mini to tag & caption images
Using GPT-4o mini to tag & caption images
exp-0484未验证
# Using GPT-4o mini to tag & caption images
This notebook explores how to leverage the vision capabilities of the GPT-4* models (for example `gpt-4o`, `gpt-4o-mini` or `gpt-4-turbo`) to tag & caption images.
We can leverage the multimodal capabilities of these models to provide input images along with additional context on what they represent, and prompt the model to output tags or image descriptions. The image descriptions can then be further refined with a language model (in this notebook, we'll use `gpt-4o-mini`) to generate captions.
Generating text content from images can be useful for multiple use cases, especially use cases involving search.
We will illustrate a search use case in this notebook by using generated keywords and product captions to search for products - both from a text input and an image input.
As an example, we will use a dataset of Amazon furniture items, tag them with relevant keywords and generate short, descriptive captions.