Contents
← Remote access →Image descriptions (vision)

Ollama and OCR

This section configures the engine that gives AnyText its “meaning”: semantic search, answers to questions, image descriptions and recording transcripts. This is also where the languages for recognising text on scans are set — but the recognition itself (OCR) works without Ollama: it is handled by Tesseract, built into AnyText.

What Ollama is and what a model is

Ollama is a free program that AnyText uses to work with neural network models. It is installed on your computer and runs the models on it too: neither documents nor questions are sent anywhere.

A model is a program trained on an enormous amount of text that “understands” language: it can find meaning in what is written, answer questions, and some models can also look at images or listen to recordings. A model is a file several gigabytes in size; it is downloaded once and then works without the internet.

Put simply: Ollama is like a player, and the model is what is played in it. AnyText passes your documents and questions to the model, and the model returns the result: pieces of text similar in meaning, an answer, an image description or a recording transcript.

If Ollama is not installed or the needed model is missing, AnyText searches by exact words and recognises scans and images with the built-in Tesseract — nothing needs to be installed for that. Without Ollama, only semantic search, answers to questions, image descriptions and recording transcripts are missing.

Why AnyText needs Ollama

AnyText uses models for four different jobs:

For each job there is its own model and its own settings section. Only the first, the search one, is configured here.

Speed: graphics card and processor

Models work well on a graphics card (GPU): if the computer has a suitable graphics card, the answer comes in seconds. If there is no graphics card, everything is computed on the processor — it will work, but noticeably slower.

The recommended models are chosen so that together they fit into 8 GB of graphics card memory. If your graphics card is weaker or you have none, take the smaller models from the list below — they are lighter and faster, although they answer more simply.

Models come in different sizes

Models differ in size, and that is the main trade-off:

We tested the available models and chose those that give the best balance of quality and computer requirements for AnyText’s tasks. These are the ones AnyText offers — but the model field accepts any name, and an experienced user can install their own model.

What is configured here

If you change the search model

Vectors computed by one model cannot be compared with vectors from another. That is why, when the model changes, AnyText will offer to rebuild the indexes of all collections. It is not quick — the text is read and computed again — but otherwise semantic search stops finding anything.

What we recommend

Local or in the cloud

Models run in two ways:

AnyText is built so that everything that can work locally does.

OCR: text from scans and photographs

OCR is the recognition of text in images: scans, photographs of documents, screenshots with text. It is handled by Tesseract, which is built into AnyText — nothing needs to be installed, only the languages specified.

The languages eng and rus are built into AnyText. Keep only those that really occur in your documents: the fewer languages, the faster and more precise the recognition.

Example: install a search model

  1. Settings → “Ollama and OCR”.
  2. Make sure the address field contains http://localhost:11434 — that is the engine on your computer.
  3. In the “Search model (embeddings)” field, leave embeddinggemma:latest.
  4. Click “Download the model” and wait for the download to finish.
  5. Click “Test” — AnyText will report that the engine sees the model.
  6. Click “Save”.

What you get: semantic search starts working. If you later install a different search model, AnyText will offer to rebuild the collection indexes — old vectors are not comparable with the new model.

Example: find text printed on a scan

  1. Put a scan of a contract (a PDF or an image with text) into the collection folder.
  2. Settings → “Collections” → next to the collection, click “Scan (changed)”.
  3. Nothing else needs to be turned on: the text from the image is recognised during the scan. The recognition languages are here too, in the “OCR languages” field (eng,rus).
  4. Go back to the search and type a word that is in the contract but appears only on the scan.

What you get: the word is found — OCR read it.

Contents
← Remote access →Image descriptions (vision)