n8n workflow template · 12 nodes · OpenAI
Testing Mulitple Local LLM with LM Studio is a free n8n workflow template that starts when a chat message is received and works with OpenAI and Google Sheets. It has 12 nodes, 3 of them AI nodes (Chat Trigger, OpenAI Chat Model and Basic LLM Chain). The notes inside the workflow say: “Update the 'Base URL' in the workflow to match the IP of your LM Studio server. (Running LM Server)” To run it, you add your own credentials for Google Sheets OAuth2 and OpenAI API.
The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.
Update the 'Base URL' in the workflow to match the IP of your LM Studio server. (Running LM Server)
This node will query the LM Studio server to retrieve a list of all loaded model IDs at the time of the query. If you change or add models to LM Studio, you’ll need to rerun this node to get an updated list of active LLMs.
From here, you can modify the following parameters to fine-tune model behavior
If you are getting strange results, ensure that you are Deleting the previous chat (next to the Chat Button) to ensure you aren't bleeding responses into the next chat.
When testing for specific outcomes (such as conciseness or readability), you can add a System Prompt in the LLM Chain to guide the models' responses.
System Prompt Suggestion
Adjust the prompt to fit your desired testing criteria.
When testing model responses, readability scores can range across different levels. Here’s a breakdown
You can just delete the google sheet node, and review the results by hand.
Utilizing the google sheet, allows you to provide mulitple prompts and review the analysis against all of those runs.
The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.
First, download and install LM Studio. Identify which LLM models you want to use for testing.
Next, the selected models are loaded into the server capabilities to prepare them for testing. For a detailed guide on how to set up multiple models, refer to the LM Studio Basics documentation.
The 12 nodes in file order (sticky notes excluded). Branches and connections determine execution order in n8n:
Configure your own credentials after importing. Create each credential in n8n, then select it in the node.
Do you need somewhere to run it? Read our guide to self-hosted n8n.
We can adapt this workflow to your apps, data and process, then deploy and support it.
Contact Us