Blog

Code review

LLM use for Code review #

The fundamental property of Large Language Models is their ability to understand the context of provided content. A straightforward application of this ability is text summarization, correction and any advanced work with natural language. For software developers, it opens possibilities for an independent check of their code from the contextual point of view. There are plenty of tools already for this kind of task, mostly based on online services and therefore utilizng the powerful and really large language models.

...

Switching models

Why more AI models in one app? #

LokAi uses a local AI model. I chose a model that is powerful enough to run on common hardware, but there are still machines where it can be too slow. Especially, waiting for the first answer can take almost a minute or more on slower computers. Therefore, the default model LokAi uses after a fresh installation is a small, fast, and less sophisticated model compared to the larger one. However, it can still be used for text generation and some less complex tasks.

...

Basics

Text corrections #

LokAi can be used for text corrections, and it works similarly to any other chatbot. It generates an answer based on your input, which you can export to a PDF file for later reference. If you’re familiar with Markdown syntax, you can also export the output as a text file in Markdown format for further editing.

Using LokAi for TextCorrections #

To use LokAi for text corrections, simply type your question or task in the text input field at the bottom of the screen. You can enter multiple lines of text, and by pressing Enter, you add a new line to the input. To send the input to the AI model, press SHIFT-Enter. If your input is lengthy or you need to provide contextual information, it’s easier to prepare your input using a text editor and save it as a text file (.txt). You can then load the text file directly into the input area using the dedicated button on the left side of the input field. See the following screenshot.

...

LokAi - how it works

About LokAi #

The name “LokAi” may seem unusual at first. However, it’s derived from the Slovak word “Lokaj,” which means a servant, concierge, or majordomo. The name is also reminiscent of the English abbreviation “Local AI.”

The desing of the app’s icon is inspired by some scene from an old movie where I saw a servant with lantern opening the house gates in a rainy night:

lokai6-lantern200x200-popis.png

...