# Adjusting context window for local LLM using GPT4ALL nodes

**URL:** <https://forum.knime.com/t/adjusting-context-window-for-local-llm-using-gpt4all-nodes/85307>\
**Category:** KNIME Extensions\
**Tags:** text-processing\
**Created:** [December 16, 2024, 9:30am UTC](https://forum.knime.com/t/adjusting-context-window-for-local-llm-using-gpt4all-nodes/85307 "2024-12-16T09:30:14Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [January 7, 2025, 10:46am UTC](https://forum.knime.com/t/adjusting-context-window-for-local-llm-using-gpt4all-nodes/85307/5 "2025-01-07T10:46:51Z")

</div>

@havarde maybe you can take a look at these examples using GPT4All and Ollama with KNIME nodes. For me the key to [getting re-usable JSON results](https://forum.knime.com/t/splitting-fields-with-multiple-values/84090/3) were the use of the instruct LLM model and experimenting with the prompts giving specific instructions.

> **[GPT4All - Extract Information from PDF Bank Statements into JSON – mlauber71](https://hub.knime.com/mlauber71/spaces/LLM_Space/GPT4All%20-%20Extract%20Information%20from%20PDF%20Bank%20Statements%20into%20JSON~wB3gLYsvKkPrIo2I/current-state)**
>
> Extract Data from Bank Statements (PDF) into JSON files with the help of GPT4All / Llama3 LLM List PDFs from your drive that roughly have a similar layout and …

> **[Ollama KNIME - using LLMs to split names and extract them into CSV - KNIME...](https://hub.knime.com/mlauber71/spaces/LLM_Space/Ollama%20KNIME%20-%20using%20LLMs%20to%20split%20names%20and%20extract%20them%20into%20CSV%20-%20KNIME%20Forum%20(84090)~_XUO_t6sYCvP9pvB/current-state)**
>
> Use LLM (Ollama/Llama3.2) to process text data in Chunks and collect a structured output on your local machine you need Ollama installed and ready to run on yo…

There is an older post by @MartinDDDD about the use of structured output that might be worth looking at

> **[Exploring the Benefits of OpenAI’s Structured Outputs in KNIME](https://medium.com/low-code-for-advanced-data-science/exploring-the-benefits-of-openais-structured-outputs-in-knime-7849d3d0aad4)**
>
> Learn what Structured Outputs are, why they matter and see them in action in 5 use cases

---

_[View the full topic](https://forum.knime.com/t/adjusting-context-window-for-local-llm-using-gpt4all-nodes/85307)._
