AI Assistant & LLM Configuration

Nocarta includes a built-in AI Assistant powered by Large Language Models (LLMs). It works out of the box with Nocarta AI — no setup required. You can also bring your own LLM provider for additional flexibility.


Overview

The AI Assistant can help you with questions about Nocarta features, troubleshooting, and general tasks. It works with multiple LLM providers:

  • Ollama - Run models locally on your own machine (fully private)
  • OpenAI - GPT models via the OpenAI API
  • Anthropic - Claude models via the Anthropic API
  • Google Gemini - Gemini models via the Google AI API
  • Custom (OpenAI-compatible) - Any server that implements the OpenAI-compatible API (vLLM, LM Studio, etc.)

Nocarta AI

Nocarta AI is the built-in assistant that works immediately — no API keys, no external accounts, no configuration needed. Every Nocarta account has access to it from day one.

In the LLM Configurations section of Connections → External LLM/Models, Nocarta AI appears with a SYSTEM badge, indicating it is provided by Nocarta and always available.

How It Works with Your Own LLMs

  • No LLM configured: Nocarta AI is used automatically for both the General Assistant and the Automation Assistant.
  • Your own LLM chosen: when you choose one of your models for Answer a question in Which model answers what, both assistants send your messages to it. It answers on the Nocarta Desktop it runs on.
  • Switching back: choose Nocarta AI in that row.

Fair Use Limits

To ensure reliable service for all users, Nocarta AI has fair use limits on message frequency. If you reach these limits, you will be asked to wait before sending more messages. The limits are generous for normal usage and are designed to prevent abuse, not restrict legitimate work.


What the assistant knows and remembers

The Help Center

For every question, the assistant reads the parts of this Help Center that match it, by meaning and by words, whatever language you write in. A follow-up such as "and on Windows?" is read together with your previous question.

Your own content

When your question is about something of yours ("where did I say the boiler was leaking?"), the General Assistant also looks at your templates, notebooks, instances, automations, your recordings (by what is said in them) and your saved images and video frames (by what they show). It names what it found with its date, the moment in a recording, and a link. It never looks at a picture itself, and it reads only your own content.

Recordings and images are searchable only while their switches are on, in My Account → Indexing. Turning a switch off deletes that index at once; your recordings and images stay.

Facts you keep

An instance page and a notebook page have a Facts card. It lists the facts a model found in the instance's recordings and videos (in what is said), documents (in their text), images and pages. Each fact waits for you: Keep saves it, Discard drops it. Find facts reads every item again; a fact already found, kept or discarded is not proposed a second time.

A fact is either a short statement, with the moment in the recording where it was said, or Speaks about one of your other instances. Keeping a "Speaks about" fact links the two. Facts that only repeat the instance's own fields are left out, because the fill writes those.

The General Assistant reads only the facts you kept, when your question is about your own content. A fact you did not keep never reaches it.

To have each recording, document and image you save on an instance or a notebook read for facts by itself, turn on Find facts in my recordings in My Account → Indexing. It is off unless you turn it on, and turning it off deletes nothing. A recording saved outside an instance or a notebook is not read.

Guidance you keep

The assistant forgets a conversation when it ends. What it should always know goes in guidance, on the page What the assistant remembers, which the assistant page's menu also opens:

  • Guidance about you: both assistants read it before every conversation. For example: "I call my invoice template Fatture Rossi."
  • Guidance for an automation: the Automation Assistant reads it when it answers for that automation.
  • Each item holds up to 600 characters; you can keep up to 20 about you and 20 for each automation. Edit or delete one at any time.

When you ask the General Assistant to remember something ("Remember that I prefer short answers"), it shows the guidance under its answer with Keep and Discard. Nothing is saved until you press Keep.

Never write a password or any other secret in guidance. Guidance that holds a credential placeholder such as {{BANK.password}} is refused. When your assistant runs on a model of your own, your guidance goes to that model, as your messages do.


Configuring Your Own LLM Provider

To set up your first LLM configuration:

  1. Go to Connections → External LLM/Models
  2. Find the LLM Configurations section
  3. Click the Add LLM button
  4. Choose a provider from the dropdown: Ollama, OpenAI, Anthropic, Google Gemini, or Custom
  5. Enter a configuration name (e.g., "My GPT-4") and optionally an alias
  6. The API endpoint URL is auto-filled based on the selected provider. Adjust it if you use a custom endpoint.
  7. Enter the model name, or click the Discover button to fetch available models (see below)
  8. If required, enter your API key. It will be stored securely in your Secrets Vault.
  9. Set a response timeout (how long to wait for the LLM to respond)
  10. Click Test Connection to verify everything works
  11. Click Save

Model Discovery

Instead of typing a model name manually, you can use the Discover button next to the model field. This queries the LLM server directly from your browser and displays all available models as clickable chips.

Discovery works with all supported providers:

  • Ollama - Queries /api/tags to list locally installed models
  • OpenAI / Custom / vLLM - Queries /v1/models using the standard OpenAI-compatible API
  • Anthropic - Queries /v1/models with Anthropic-specific headers
  • Google Gemini - Queries /v1beta/models for available Gemini models

Click on any discovered model chip to select it automatically.


Models on your computers

On Connections → External LLM/Models, the panel Models on your machines shows, for each computer where you opened the Nocarta desktop app, the model servers that answer there and the models each one holds. It covers Ollama, llama.cpp, vLLM and any other server that uses the OpenAI format. The desktop app reads them every minute while it is open. You can look at the panel from any device, your phone included.

Inside the desktop app, on the computer itself, the panel can also do the work for you:

  • Install a program: Ollama and llama.cpp on macOS, Windows and Linux; vLLM on Linux, the only system its publisher offers an install for. The desktop app downloads the publisher's release, checks that the file is the one the publisher released, and keeps it in its own folder. It asks for no administrator password.
  • Install a model on Ollama, or remove one.
  • Host a model with llama.cpp or vLLM: the program downloads the model and serves it on a port of this computer until the computer restarts. Stop ends a server the desktop app started.
  • Servers for vector models, on macOS and Linux: Infinity hosts text embedding and reranking models, and Hugging Face Transformers hosts a model that turns pictures and sentences into vectors, such as SigLIP 2 (google/siglip2-base-patch16-224). You install them and host a model with them the same way. Nothing else in Nocarta uses such a server yet: the panel installs it, hosts the model and shows it.
  • Add as connection turns a server the panel found into one of your configurations.

Every action opens a dialog with the steps the desktop app performs, marked as they happen, and a part named Do it yourself with the commands that give the same result in a terminal. Your computer may block an automatic install. When it does, the failed step says so and the commands are right below it. For example:

ollama pull qwen3:0.6b

llama-server -hf ggml-org/gemma-3-1b-it-GGUF:Q4_K_M --host 127.0.0.1 --port 9931

vllm serve Qwen/Qwen2.5-1.5B-Instruct --host 127.0.0.1 --port 8000

The desktop app never stops or removes a server or a program it did not start or install itself.


Multiple Configurations

You can add multiple LLM configurations, each using a different provider and model. This is useful if you want to:

  • Switch between a local Ollama model (for privacy) and a cloud model (for quality)
  • Have different models for different tasks
  • Keep a backup configuration if one provider is unavailable

One configuration is always set as the default. The AI Assistant will use the default configuration unless you switch to another one.


Using Your Own LLM for Document Interpretation

Beyond the chat assistant, your LLM configurations can run the interpretation step of document processing — turning extracted text into structured values in Scan Areas, bulk instance fills, and post-processing. Text extraction (image → text) always runs on Nocarta's infrastructure; interpretation (text → meaning) is the step you can route to your own LLM — for cost control, model choice, or privacy.

Two switches per configuration

  • "Use as my default for interpretation" — an explicit opt-in. Document interpretation runs on this LLM instead of Nocarta AI. Merely creating a configuration does not re-route anything; only one configuration can be the interpretation default. Scan-area pipelines can also bind a specific configuration per step, which wins over the default.
  • "Fall back to Nocarta AI on failure" — off by default (private). Off: if your LLM fails, you get an honest error with the real reason and your document text is never sent to Nocarta AI for interpretation. On: failed interpretations retry on Nocarta AI and the result is labeled accordingly.

Where the call runs

On your Nocarta Desktop app — for every configuration, cloud or localhost, Tier 1 or Tier 2 key. Nocarta's servers never call your endpoint. Only the extracted text is sent to your LLM, never the image. Jobs queue durably and your desktop picks them up — see below.

The desktop LLM worker

Nocarta's servers never call your LLM — by design. They can't reach localhost, can't decrypt Tier 2 keys, and don't call cloud endpoints on your behalf either. Every interpretation bound to one of your configurations is placed in a durable queue, and Nocarta Desktop drains it whenever it's open:

  • Dispatch from anywhere. Trigger a bulk fill from any browser; the affected scan areas show "queued — waiting for your desktop." Nothing fails while the desktop is offline.
  • Consent at app open. Jobs that accumulated while the desktop was offline never run silently: at app open a dialog lists exactly what is waiting — template, scan area, instance, how it was dispatched and when, and which LLM will run it — with Run queued jobs / Not now.
  • Queue interface. Desktop LLM worker, in Connections → External LLM/Models, shows the queue from any device: each job's status, target LLM, and error, with a Cancel action for waiting jobs and the live worker state inside the desktop app.
  • Recovery built in. If the desktop crashes mid-job, the job is re-queued and retried. Jobs that wait longer than 24 hours expire with a clear message (or retry on Nocarta AI if you enabled fallback).
  • Privacy. Document text is wiped from the queue as soon as a job finishes; Tier 2 keys are decrypted only on your machine, in your unlocked vault.

Every interpreted result records which LLM produced it — the scan-area result page shows "Interpreted by: your-llm (your LLM, on your desktop)" or "Nocarta AI (fallback)" so provenance is always auditable.


Security & Privacy

Nocarta takes your privacy seriously when it comes to AI interactions:

  • Your own LLM — always on your Nocarta Desktop: chat, questions, tests and document work alike run on the Nocarta Desktop of the machine your model runs on (its Runs on setting). No web page calls your model, and Nocarta's servers never call your endpoint.
  • Nocarta AI — server-processed: When using Nocarta AI, requests are processed through Nocarta's servers. Your conversations are not stored or used for training.
  • Secure key storage: API keys for your own providers are stored in the Secrets Vault using Tier 1 (server-encrypted) or Tier 2 (master-password-protected) encryption.
  • Local option: Use Ollama to run models entirely on your own machine.

Troubleshooting

CORS Issues with Ollama

If you see CORS errors when connecting to a local Ollama instance, you need to allow browser access. Set the environment variable before starting Ollama, restricted to the Nocarta origin:

OLLAMA_ORIGINS=https://app.nocarta.ai ollama serve

Connection Failures

  • Verify the API endpoint URL is correct
  • Make sure the LLM server is running and reachable from your network
  • Check your firewall settings if connecting to a local server
  • Use the Test Connection button to diagnose issues

Authentication Errors

  • Double-check that your API key is correct and has not expired
  • Ensure the API key has the necessary permissions for the selected model
  • For Anthropic, verify your API key starts with sk-ant-
  • For OpenAI, verify your API key starts with sk-

Slow Responses

  • Increase the response timeout in your LLM configuration
  • For local models (Ollama), ensure your hardware meets the model requirements
  • Try a smaller or faster model if response times are too long

Related Topics

Need More Help?

Ask AI Assistant