Search and its modes
The search line is the main place in AnyText. It has a mode (how to search) and a scope (where to search), and both are remembered between launches.
Search scope: one collection or all
Next to the line you choose where to search: in the current collection or in all of them at once.
- All collections — the search runs over all indexes at once. Handy when you do not remember which collection holds what you need.
- One collection — search only in it: faster and more precise when you know where to look.
The chosen scope is visible in the application header.
Four modes
Words and meaning
The default mode: you type ordinary text, nothing needs switching.
- With several words, exact matches are shown first — the phrase as a whole, and if it is not there, the documents where all the query words occur. Then come semantic ones: documents close in meaning, even if they do not contain the query words. These are two separate blocks, and one document is not repeated in both.
- With a single word, only an exact match is searched. This is deliberate: a semantic search for one word returns everything that is “somehow about this word”, and what you need drowns in the list. If the word occurs in almost every document, AnyText will say so and suggest adding a qualifying word. You can search by the meaning of one word — with the “By meaning” mode.
By words
Exact search by letters: you need exactly the words you wrote. No models are needed for it — it always works, even without Ollama. The command is /find.
This mode is useful when you need to find a rare word, a number, a surname or an exact phrase.
By meaning
Search by closeness of meaning: it finds documents that say the same thing in other words. It needs a search model (embeddings) and Ollama. The command is /search.
Model answer
Search over documents plus an answer: the model reads the found fragments and formulates an answer with references to sources. It needs an answer model (the “Smart answers from documents” section). The command is /ask.
This mode does not replace search but complements it: the answer always rests on the found pieces, and they are visible next to it.
Commands instead of the switcher
You do not have to switch the mode; you can name it right in the line:
/find слово— search by words;/search вопрос— search by meaning;/ask вопрос— answer from documents;/docs— see the state of the collection’s documents.
If nothing is found
- Check the search scope: perhaps what you need is in another collection.
- Make sure the files are indexed: the
/docscommand shows the state of every file and the reason why it is not in the search. - Semantic search needs an installed search model — it is described in the “Ollama and OCR” section.
Example: find a document by meaning
- In the search line, leave the “Words and meaning” mode, and next to it choose the scope — a specific collection or “All collections”.
- Write the query in your own words, not a single word but a phrase, for example:
сколько стоит обслуживание. - Press Enter.
What you get: first the block of exact matches appears (these words are in the documents), below it — “by meaning”: documents that say the same thing in other words.
Example: find an exact phrase
- Switch the mode to “By words”.
- Type a rare word, a number or a surname the way they are written in the document.
- Press Enter.
What you get: only the documents where these letters occur exactly like that. This mode works even without Ollama.