Project
Personal research and development
Year
Ongoing
Brief
An AI assistant that runs entirely locally, remembers over time and can be put to the test
Fields
AI agents, knowledge graphs, voice interfaces, model evaluation

The project studies what it takes for an assistant based on language models to be useful in everyday work while staying entirely on the computer it runs on. The answer it looks for is a working system.

It is the lab where I try out the solutions I then bring to projects for companies and firms.

Grafo di conoscenza: la memoria di un assistente AI locale

A memory that can be read and corrected

Most assistants forget everything at the end of a conversation, or keep information that is hard to check. Here the memory is a knowledge graph: people, facts and relationships written explicitly, with rules that verify their consistency.

A new piece of information does not immediately join what is taken as certain. It goes through a quarantine area, and becomes stable memory only after a check. The principle is that of the ontologies I wrote my thesis on in 2013, applied here to prevent a model from remembering wrong information as certain.

Voice: listening, answering and interruptions

The assistant is activated by a keyword, transcribes speech, reasons and answers by voice. Each step adds delay, and two seconds of silence between one line and the next are enough to make the exchange feel unnatural.

Much of the work went into designing the details that make the exchange feel natural: being able to interrupt, asking to repeat, receiving a nod while the system is still working, avoiding reading symbols and punctuation aloud.

Local models: working with limits

Everything runs on owned hardware, without external services. This means taking into account the memory of the graphics card, choosing which model to load for which task and providing a reduced mode for when the resources are needed elsewhere.

A small model also makes different mistakes from a large one, and can say «done» without having carried out the task. Written instructions to the model are not enough to correct these errors, so the checks have to be written in the code.

Testing: comparing models

To decide whether to adopt a new model I built a kit of repeatable tests, based on real tasks, which compares models and reports regressions separately, that is, things that used to work and no longer do.

The choice of a model is therefore based on comparable measurements.

How it is built

The architecture and the decisions are mine; the code is written together with AI programming assistants, with different agents that write, review and verify. It is a method I openly declare, and one that requires being able to justify every choice, such as the use of a graph in place of a text archive or the quarantine area.

For a similar system based on a company’s data, the reference is the page Contact.