BENMARTE.COM

Back to all posts

LOG2 MIN READ

How to run your own private AI assistant locally

Learn how to run your own private AI assistant locally

In this article we will discuss how to run your own AI assistant using Ollama as the LLM (Large Language Model) and Chatbox in order to have a desktop GUI (Graphical User Interface) for your assistant.

Prerequisites

Selecting which model to use

Once you have installed Ollama you need to select which model you want to use, there are many different models you can choose from for different types of tasks so feel free to explore the different models and select the one that suits your needs.

Select the model you want to use with Ollama and instead of copying the code to run the model ollama run codellama we are going to change it to just download the model by typing ollama pull codellama:7b in your terminal (or powershell if you are on windows) which will download the model without running it.

Ollama model (open full size)Ollama modelClose

Ollama pull codellama (open full size)Ollama pull codellamaClose

Keep in mind the larger LLM require more memory and processing power so it might be better to use a smaller model if you are on a low-end device.

Configuring Chatbox

In order to use Ollama with Chatbox we need to change a few settings. Open Chatbox and click on settings, select the Model tab and change the following settings:

Set AI Model Provider to: Ollama

Chatbox model provider (open full size)Chatbox model providerClose

Set API Host to: http://localhost:11434

Chatbox API Host (open full size)Chatbox API HostClose

Set the Model to the model you downloaded in our case it was codellama:7b and click Save

Chatbox Model (open full size)Chatbox ModelClose

Thats it, you are now ready to start using your personal AI assistant to help you with your tasks.

Chatbox Chat (open full size)Chatbox ChatClose

If you need more info regarding Ollama and it’s more advanced features refer to it’s docs on github.

Thanks for reading.

Back to all posts

Comments