conda_crewai_knime4

Python Conda environment propagation - depending on your operating system Windows or macOS (Apple Silicon)

Please read this article for more details:


KNIME and Python — Setting up and managing Conda environments
https://medium.com/p/2ac217792539

Annotations and comments
  • # Adapted from: # Integrating Agent Frameworks into Low Code Tools: Making CrewAI work in KNIME # https://medium.com/p/a7fecb042915 # by https://medium.com/@martindausa # A conda environment to work with Ollama and models like Llama3 within the KNIME analytics platform # https://github.com/ml-score/ollama # Ollama and Llama3 - A Streamlit App to convert your files into local Vector Stores and chat with them using the latest LLMs # https://medium.com/p/c5340fcd6ad0 # KNIME and Python - Setting up and managing Conda environments # https://medium.com/p/2ac217792539 # conda env create -f="/Users/m_lauber/Dropbox/knime-workspace/_hub/LLM_Space/script/py_knime_crewai.yml" # conda env create -f="C:\\Users\\x123456\\knime-workspace\\LLM_Space\\script\\py_knime_crewai.yml" # https://docs.gpt4all.io/gpt4all_python.html # conda env remove --name py_knime_crewai # conda activate py_knime_crewai # conda update -n py_knime_crewai --all # conda env update --name py_knime_crewai --file "/Users/m_lauber/Dropbox/knime-workspace/_hub/LLM_Space/script/py_knime_crewai.yml" --prune # conda env update --name py_knime_crewai --file "C:\\Users\\x123456\\knime-workspace\\LLM_Space\\script\\py_knime_crewai.yml" --prune # conda env update --name py_knime_crewai --file "/Users/m_lauber/Dropbox/knime-workspace/_hub/LLM_Space/script/py_knime_crewai.yml" # conda env update --name py_knime_crewai --file "C:\\Users\\x123456\\knime-workspace\\LLM_Space\\script\\py_knime_crewai.yml" # conda update -n base -c conda-forge conda # KNIME official Python integration guide # https://docs.knime.com/latest/python_installation_guide/index.html#_introduction # KNIME and Python - Setting up and managing Conda environments # https://medium.com/low-code-for-advanced-data-science/knime-and-python-setting-up-and-managing-conda-environments-2ac217792539 # file: py_knime_crewai.yml with some modifications # THX Carsten Haubold (https://hub.knime.com/carstenhaubold) for hints name: py_knime_crewai # Name of the created environment channels: # Repositories to search for packages - conda-forge # https://anaconda.org/knime - knime # conda search knime-python-base -c knime --info # to see what is in the package dependencies: # List of packages that should be installed - python #=3.10 # Python - knime-python-base<=4.7.0 # dependencies of KNIME - Python integration # - knime-python-scripting # everything you need to also build Python packages for KNIME - cairo # SVG support - pillow # Image inputs/outputs - matplotlib # Plotting - IPython # Notebook support - nbformat # Notebook support - scipy # Notebook support - jpype1 # A Python to Java bridge. # Jupyter Notebook support - jupyter # Jupyter Notebook # ---- additional packages LLM # - transformers - openai # # - textwrap # - streamlit # A faster way to build and share data apps - pip - pip: - crewai - 'crewai[tools]' - langchain # LangChain is a framework for developing applications powered by large language models (LLMs) - langchain-community
  • if (equals(column("os.name"), "Mac OS X") ) {"0"} else if (contains(lowerCase(column("os.name")),"mac" )) {"0"} else {"1"}
  • conda.environment java.home
  • conda.environment "py_knime_crewai" Windows
  • conda.environment "py_knime_crewai" MacOSX Apple Scilicon
  • osgi.syspath => find where the KNIME installtion is located on Windows or MacOSX also java.home
  • $$ROWID$$ = "java.home" => TRUE
  • var_environment_validation
  • java.home

Options

handle the Conda environment
how to handle your conda environment%%00010name = just check the names of packages name%%00010name_packages = also check the versions of packages%%00010overwrite = !!! always overwrite the environment

Input Ports

This node has no input ports

Output Ports

Icon
Flow Variable to propagate the conda.environment

Nodes

Extensions

Links