Website screenshot LLM chain and Summarization Chain

Hello!

Maybe someone could help me find a solution to this.

We are passing data to the Basic LLM chain, which is a text for now. Everything works correctly. Now we have added extra data which is a screenshot of the website (binary image example: File Name:
take
File Extension:
jpeg
Mime Type:
image/jpeg
File Size:
1.04 MB)

We want to pass this image to AI scan as well. But the passed data is too big. I tried the Summarization Chain but I could not get it working (errors like: Invalid prompt schema: Single ‘}’ in the template or " n8n may have run out of memory while running this execution. More context and tips on how to avoid this in the docs")

I tried splitting data in chunks manually and passing them with “Loop over Items” one by one to LLM Chain, but I’m not sure if that is the correct solution.

Maybe someone has done something like that and could guide me through the process

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system: