Created Ollama nodes for AI Extension

Hi KNIME

I made Ollama nodes for KNIME AI Extension

Notes:

Code for the KNIME extension: KNIME AI Extension

After installation of extension, the source code was found here.

%AppData%/../Local/Programs/KNIME/plugins/org.knime.python.llm_5.4.3.v202503051153

In

KNIME Analytics Platform

→

Help

→

About...

→

Installation Details

: Searching for

KNIME AI Extension

, class is

org.knime.python.features.llm.feature.group

Installed the environment via

miniforge3 Prompt

.

cd C:/KNIME/knime-nodes/org.knime.python.llm_5.4.3.v20250416/src/main/python
conda env create -f env.yml
# conda env update --name llm_ollama_env -f env.yml --prune

Needed to fix category in

org.knime.python.llm_5.4.3.v20250416/src/main/python/src/util.py

, where

path="/labs"

was changed to

path="/community"

, and

name="AI Tutorial Development"

.

Deleted

.pk12

file and linux binary with size of ~60MB.

Updated

env.yml

,

  • Added `knime-extension`, to be able to run tests.

  • To use `conda-forge::`

  • Removed packages that seemed not to be in use? `scipy,bokeh,matplotlib,ipython`.

  • Removed pip packages `text_generation,griffe,ragas,umap-learn`

  • Added missing `langchain-community`

  • Added `langchain-ollama`

Added folder:

src\main\python\src\models\ollama

Took the code from

deepseek

and modified to fit ollama.

How do I do a Pull Request?