Ask My Image
The quick-start guide illustrates how to write a GenAIScript that takes input from an image file.
-
Place your image in a directory visible in VS Code Explorer
-
Use the
> GenAIScript: Create new script...
command in the command palette to create a new script. -
Update the model in the script header to refer to a model that understands images:
-
Use defImages to ingest the image file into the model context:
-
Replace the text
"TELL THE LLM WHAT TO DO..."
with what you want it to do with your image file. -
Right click on the image file in VS Code Explorer. Select Run GenAIScript. Select the script you just wrote.
-
The Output will be displayed in a new document tab.