Icon

Demo AI workflow

There has been no title set for this workflow's metadata.

This demo workflow shows basic usage of LLMs for text and Image generation with the nodes of the KNIME AI Extension.

Annotations and comments
  • Demo: Generative AI
  • Closed-source AI for Text Generation (via API) Workflow description: This workflow leverages OpenAI's ChatGPT to generate an answer to the question provided by the user in the prompt. It requires an OpenAI API key, which can be requested at: https://openai.com/
  • Open-source AI for Text Generation (via API) Workflow description: This workflow leverages models available on Hugging Face Hub* to generate an answer to the question provided by the user in the prompt. Popular models are: bigscience/mt0-large or google/flan-t5-xxl. It requires a Hugging Face access token, which can be requested for free at: https://huggingface.co/ * Make sure the "Hosted Inference API" by Hugging Face is available for the selected model.
  • Open-source AI for Text Generation (local models) Workflow description: This workflow leverages local models available on GPT4All to generate an answer to the question provided by the user in the prompt. A popular model is: gpt4all-falcon. Check model list at: https://gpt4all.io/index.html
  • Bonus: AI for Image Generation (via API) Workflow Description: This workflows leverages OpenAI's DALL-E model for image generation.
  • Bonus: AI for Multiple Image Generation (via API) Workflow description: This workflows leverages OpenAI's DALL-E model to generate multiple images (e.g., to create or augment an existing data set for training a task-specific deep neural network). To do that, the workflow uses loops to prompt the model n times (in this example, n=3). Moreover, a Wait node is used to comply with the current rate limit (1 image per min).
  • Loop 3 times
  • OpenAI credentials
  • Write prompt
  • Wait 1 min

Nodes

Extensions

Links