📚 Media Node Tutorials
Welcome! This page provides hands-on tutorials for using the Media Node in ChainForge, tailored for Social Sciences and Humanities (SSH) researchers working with Vision Language Models (VLMs). Each tutorial demonstrates a real-world use case and includes an evaluation step. Add your own screenshots or GIFs where indicated!
1️⃣ Analyzing Historical Photographs (Upload Local Image Files)
Use Case: A digital historian wants to analyze a collection of historical photographs from their local archive to extract descriptions and identify key themes using a VLM.
Steps:
- Add a Media Node:
- Click
Add Node ➕and select 📺 Media Node from the Input Data section. -

-
Upload Local Images:
- Click the ➕ Add button in the Media Node.
- Use the Drag & Drop area or file picker to upload several historical photographs (e.g.,
berlin_wall_1989.jpg,civil_rights_march_1963.jpg). -

-
Connect to a Prompt Node:
- Add a Prompt Node.
- Connect the Media Node’s output to the Prompt Node’s input.
- In the Prompt Node, use a template like: > "Describe the main event and people in this photograph. What historical context does it represent?"
-

-
Add an Evaluation Node:
- Add a Multi-Evaluator Node.
- Connect the Prompt Node’s output to the Evaluator.
- Set up evaluation criteria, e.g., "Does the description correctly identify the event and people?" and "Is the historical context accurate?"
-

-
Run the Flow:
- Execute the flow and review the VLM’s responses and evaluation results.

2️⃣ Analyzing Social Media Memes (Use Remote Image URLs)
Use Case: A media studies researcher wants to analyze the messaging and sentiment of viral memes circulating on social media by providing public image URLs to a VLM.
Steps:
- Add a Media Node:
- Click
Add Node ➕and select 📺 Media Node. -

-
Add Remote Image URLs:
- Click the ➕ Add button in the Media Node.
- Paste public URLs of memes (e.g.,
https://i.imgur.com/xyz123.jpg,https://pbs.twimg.com/media/abc456.jpg). -

-
Connect to a Prompt Node:
- Add a Prompt Node.
- Connect the Media Node’s output to the Prompt Node’s input.
- Use a prompt like: > "Analyze the message and sentiment of this meme. What social or political commentary does it make?"
-

-
Add an Evaluation Node:
- Add a Multi-Evaluator Node.
- Connect the Prompt Node’s output to the Evaluator.
- Set up evaluation criteria, e.g., "Does the analysis capture the meme’s intended message?" and "Is the sentiment correctly identified?"
-

-
Run the Flow:
- Execute and inspect the VLM’s analyses and evaluation scores.

3️⃣ Coding and Analyzing Survey Responses with Images (Import from Spreadsheet)
Use Case: A sociologist is studying how participants interpret ambiguous images. Survey responses and image references are stored in a TSV file.
Steps:
- Prepare a TSV File:
- Create a TSV file with columns like
image_url,participant_response. - Example row:
image_url\tparticipant_response https://example.com/images/ambiguous1.jpg\t"The image looks like a family gathering." -

-
Add a Media Node:
- Click
Add Node ➕and select 📺 Media Node. -

-
Import from Spreadsheet:
- Click Import data in the Media Node.
- Select your TSV file.
-

-
Connect to a Prompt Node:
- Add a Prompt Node.
- Connect the Media Node’s output to the Prompt Node’s input.
- Use a prompt like: > "Given the participant's response: '{participant_response}', does the image support this interpretation? Explain why or why not."
-

-
Add an Evaluation Node:
- Add a Multi-Evaluator Node.
- Connect the Prompt Node’s output to the Evaluator.
- Set up evaluation criteria, e.g., "Does the explanation reference both the image and the participant’s response?" and "Is the reasoning sound?"
-

-
Run the Flow:
- Execute and review the VLM’s explanations and evaluation results.

Add your own screenshots or GIFs in place of the placeholders above to illustrate each step!