# LLM / AI / OpenAI workflow with file input

**URL:** <https://forum.knime.com/t/llm-ai-openai-workflow-with-file-input/85667>\
**Category:** KNIME Extensions\
**Tags:** image-processing, deep-learning\
**Created:** [January 11, 2025, 10:11am UTC](https://forum.knime.com/t/llm-ai-openai-workflow-with-file-input/85667 "2025-01-11T10:11:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![McReady](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@McReady](https://forum.knime.com/u/McReady)\
**Post date:** [January 11, 2025, 10:11am UTC](https://forum.knime.com/t/llm-ai-openai-workflow-with-file-input/85667/1 "2025-01-11T10:11:57Z")

</div>

Hello _._

I want to create a workflow with existing nodes and without any Java/Python-workarounds to ask a local LLM. Everything easy, as long as the input is text only. But I need to have the input both: A file (binary) and a text with the prompt. As far as I can see, there are no nodes fitting this purpose out of the box.  
Did someone already made this? Is there a methodology where you can e.g. create something like a “multipart-form”, meaning you kind of join the file and the string to a mixed data stream (e.g. a JSON) and send this to the LLM?

Thanks for your thoughts and solutions on this already upfront.

---

<div class="post-metadata">

**Author:** ![MartinDDDD](https://forum-cdn.knime.com/user_avatar/forum.knime.com/martindddd/32/69988_2.png) [@MartinDDDD](https://forum.knime.com/u/MartinDDDD)\
**Post date:** [January 11, 2025, 10:21am UTC](https://forum.knime.com/t/llm-ai-openai-workflow-with-file-input/85667/2 "2025-01-11T10:21:19Z")

</div>

Hey there,

as you already found the current GenAI extension does not support multi modal inputs, but is text only.

With regards to documents the use case of Retrieval Augmented Generation is covered, provided you are using an embedding model that is compatible with OpenAI API (which currently rules out local models hosted e.g. via Ollama).

I am not sure what the content of your binary file is and how you’d merge that etc, that said @roberto_cadili has some example workflows (which use python scripts - so may not be an option) to interact with embeddings and vision models:

> **[Leverage open-source, local LLMs for vision and embeddings via Ollama –...](https://hub.knime.com/roberto_cadili/spaces/Public/LLMs%20use%20cases/Leverage%20open-source,%20local%20LLMs%20for%20vision%20and%20embeddings%20via%20Ollama~6__SgHvVKyoPU6dt/current-state)**
>
> Leverage open-source, local LLMs for vision and embeddings via Ollama This workflow shows how to leverage an LLM for vision and embeddings available via Ollama…

I myself have developed an experimental extension that makes prompting vision models possible with a node that is part of this extension. You can find the extension with links to example workflows below:

> **[GitHub - miuuu1/FinnovationFlows-Extension: KNIME Extension by Finnovation Flows](https://github.com/miuuu1/FinnovationFlows-Extension)**
>
> KNIME Extension by Finnovation Flows

---

<div class="post-metadata">

**Author:** ![McReady](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@McReady](https://forum.knime.com/u/McReady)\
**Post date:** [January 12, 2025, 11:57am UTC](https://forum.knime.com/t/llm-ai-openai-workflow-with-file-input/85667/3 "2025-01-12T11:57:36Z")

</div>

Thanks, that’s exactly what I’m looking for. I just have to get the Ollama API working 😂

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [January 19, 2025, 11:57am UTC](https://forum.knime.com/t/llm-ai-openai-workflow-with-file-input/85667/4 "2025-01-19T11:57:45Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
