Hub
Pricing About
WorkflowWorkflow

Leverage open-source, local LLMs via Ollama

LLMsOllamaGenAILocalOpen-source
+1
roberto_cadili profile image
Versionv1.0Latest, created on 
Jul 6, 2024 1:45 PM
Drag & drop
Like
Download workflow
Workflow preview
How to leverage open-source, local LLMs via Ollama This workflow shows how to leverage (i.e., authenticate, connect and prompt) an LLM (e.g., llama 3-instruct) available via Ollama in KNIME. This approach is suitable for chat, instruct and code models. ____ Why do we use the OpenAI nodes to connect and prompt LLMs via Ollama? Since Feb 2024, Ollama has built-in compatibility with the OpenAI Chat Completions API, making it possible to use more tooling and applications with Ollama locally. For this reason, we can conveniently use the OpenAI nodes of the KNIME AI Extension (and in particular the OpenAI Chat Model Connector node) to connect to the LLM of choice and send POST requests to the URL of a local host. In this way, we are freed from the burden of having to assemble and properly format the request body, and parse the resulting JSON output.

External resources

  • OpenAI compatibility with Ollama
  • Llama 3 model card on Ollama
  • Download Ollama
Loading deploymentsLoading ad hoc jobs

Used extensions & nodes

Created with KNIME Analytics Platform version 5.2.5
  • Go to item
    KNIME AI Extension (Labs)Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.2.1

    knime
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.2.4

    knime
  • Go to item
    KNIME Quick FormsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.2.4

    knime

Legal

By using or downloading the workflow, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits