TotalApp Docs

Ranking

How TotalApp puts matching records in order — every candidate gets a score, the list is sorted best-first, weak matches are dropped and only the strongest few are kept.

Overview

When a screen looks for records that resemble your text — similar rules, prior art, contracts, library sources — it does not just find candidates, it has to decide which one comes first. That ordering is Ranking. Each candidate receives a score for how closely it matches, and the list is sorted from the best match down.

Ranking always runs — Reranking is the optional second look

Ranking is the built-in first pass that works from Embedding scores (or keyword matching when no embedding model is available). Reranking can then re-order the strongest few with a dedicated model, but you never need it for a ranked list.

How ranking works

Candidate records
→
Each one scored 0–100%
→
Sorted highest first
→
Below the minimum dropped
→
Top few kept
  1. Your text and every candidate record are compared by meaning, and each candidate gets a similarity score shown as a percentage.
  2. The candidates are sorted from the highest score to the lowest.
  3. Candidates under the screen’s minimum similarity are removed.
  4. Only the best few of what remains are kept, and that is the list you see.

The minimum is applied before the list is trimmed

A weak match can never take a place that belongs to a stronger one: records under the minimum are removed first, and only then is the list cut down to the top few. If six records are genuinely relevant, the sixth is not pushed out by a record that should not have been there at all.

Reading the percentage

  • A higher percentage means the record is closer in meaning to your text. It is a way to compare records within the same list.
  • Do not compare percentages between different screens or after switching the embedding model — each screen sets its own minimum, and different models spread their scores differently.
  • When Reranking is applied, the percentage on each row becomes the rerank score and the list carries a green Reranked label.

Two ways a list can be ranked

Semantic rankingKeyword ranking
How it scoresBy closeness of meaning, using an embedding modelBy how many of your words appear in each record
Finds records without a shared wordYesNo
When it is usedAn embedding model is selected and reachableNo embedding model is selected, it cannot be reached, or no record clears the minimum
What you seeA normal ranked listA notice that the screen is in keyword mode

Keyword ranking is a safety net, not an error: you still get a useful list instead of an empty one. Very short words (a single character) are ignored, and records that share none of your words are left out. See Embedding for how to select a model.

What shapes the order

Minimum similarity

Each screen sets a floor, for example 60% on Trade Compliance & Sanctions. Anything below it is never shown.

Number of matches

Only the best few are kept (for example 5) so the next step stays focused.

The text that is compared

Each record is described by the fields that matter for that screen, so the order reflects what is relevant there.

The embedding model

A different model can produce a slightly different order. Switching models is safe — stored vectors are refreshed automatically.

Very long texts

Texts are shortened to roughly the first 3,000 characters before they are compared.

Ranking and Reranking

RankingReranking
Question it answers“Which records are closest to my text?”“Of these, which fits best?”
Runs onEvery candidateOnly the shortlist
How it readsText and records separatelyText and each record together
RequiredYes — always onNo — optional
Works offlineYes, with a local embedding model or keyword matchingNo — needs a hosted model

Privacy

It depends on where embedding runs

With a local Ollama embedding model, your text stays on your machine while it is ranked. With a hosted embedding model, the text is sent through the TotalApp server to the provider you chose. Keyword ranking runs entirely in your browser.

Where it is used today

AreaWhat gets ranked
Attach Knowledge (Writer Tools)Your own library, so the most relevant sources are suggested first
Patent & R&D OperationsPrior art, literature benchmarks and licensing guidance for a disclosure or project
Customs & Global TradeSanction rules and similar records on Trade Compliance & Sanctions and the other customs screens
Hospitality & Events OperationsSimilar contracts, safety notes, policies and rules in your own records

Frequently Asked Questions

Why is the list shorter than I expected?
Records under the screen’s minimum similarity are removed, and only the best few of the rest are kept. A short list usually means few records are genuinely close to your text.
Why did the percentages change after I turned on Reranking?
With Reranking the percentage is the rerank score, not the similarity score, so the two should not be compared. The order may also change — that is the point of the second look.
The screen says it is in keyword mode. Is something wrong?
No. It means no embedding model was available, so the list was ranked by shared words instead. Select an embedding model in Settings → AI Models → Embedding to get meaning-based ranking.
Can I rank without any AI model?
Yes. Keyword ranking needs no model at all, and nothing leaves your browser.