Token #
The smallest piece of text a model reads: a whole word, part of one, or a character.
Example: “factories” may become “factor” + “ies”.
62 terms you will see in MEMO², from token to ANOVA, in plain language with an example for each.
No matching term.
The smallest piece of text a model reads: a whole word, part of one, or a character.
Example: “factories” may become “factor” + “ies”.
The tool that splits text into tokens and gives each token a number.
Example: “What is the mean efficiency?” → 8 tokens with ids like 950 and 1149.
A way to build a tokenizer: start from characters, then repeatedly merge the most frequent pair.
Example: “t”+“h” is frequent, so it becomes one token “th”.
How many different tokens the tokenizer knows.
Example: MEMO²'s bundled tokenizer has 2,000; GPT-4o has about 200,000.
When the tokenizer meets a character it never saw in training, it writes it as raw bytes.
Example: The symbol “•” shows as <0xE2><0x80><0xA2>.
Making spellings uniform before search, such as hamza forms, taa marbuta and diacritics.
Example: “Café” → “cafe”.
Very common words that do not help search, so they are ignored.
Example: “in”, “what”, “the”.
Linking a word to its equivalent in another language so search finds Arabic and English sources together.
Example: mean → متوسط, factory → مصنع.
A file or link you added. MEMO² answers only from your approved sources.
Example: solar_factories_ar.pdf
Pulling the text out of a file. OCR reads text from images and scanned files.
Example: A photo of a maintenance board → searchable text.
A short part of a source (a paragraph or table rows) that is searched and cited.
Example: Chunk 10: page 1 of the report.
Finding the chunks closest to your question among all sources.
Example: The top 5 chunks for each search method.
Building the answer from retrieved chunks instead of the model's memory alone. This is what MEMO² does.
Example: Question → search your sources → answer with source numbers.
Keyword search: gives more weight to rare words and accounts for chunk length.
Example: The rare word “Riyadh” raises a chunk's score more than “in”.
Turns text into numbers: how often a word is in the chunk × how rare it is overall, then measures similarity.
Example: Similarity 0.42 between the question and the chunk.
Representing a text's meaning as a vector of numbers, so similar meanings sit close even with different words.
Example: “car” and “vehicle” are close.
A 0-to-1 measure of how closely two vectors point the same way.
Example: 1 = identical, 0 = unrelated.
Combining the results of several search methods for a stronger ranking.
Example: BM25 + TF-IDF together.
The fusion rule: each chunk gets the sum of 1 ÷ (60 + its rank) across methods.
Example: First in two methods: 1/61 + 1/61 = 0.033.
The sentence in a source that supports the answer, and the number you click to open it.
Example: “...reached 18% [10]”.
A rule that stops an answer when evidence is too weak, so MEMO² says “not enough evidence” instead of guessing.
Example: “Capital of Japan?” in an energy project → no evidence.
Two sources give different numbers for the same thing, so MEMO² shows both.
Example: 22% in the report and 18% in the news.
When sources are not enough, MEMO² suggests what kind is missing (a table, a PDF, a web page).
Example: To total salaries: add an Excel table of salaries.
Numbers are computed from your table rows with code, not written by a language model.
Example: Sum of Energy = 42,750 from 12 rows.
Checking the answer: is each sentence supported? Are the numbers in the sources? Are the citations real?
Example: Sentence support 1.000 = every sentence is supported.
A huge model trained on very large amounts of text to write text, such as GPT, Claude and Gemini. Optional in MEMO².
Example: Without an OpenAI key the answer stays local: MEMO extractive.
The simplest language model: predicts the next character or word from the last n−1 items.
Example: Trigram: after “th” it expects “e”.
The architecture behind modern models: reads all tokens together and attends to the important ones. MEMO² has a small teaching version.
Example: About 40 thousand parameters vs 175 billion in GPT-3.
How the model decides which earlier words matter most for the next one.
Example: In “Riyadh panel efficiency” it attends to “Riyadh”.
The numbers a model learns during training. Their count shows its size.
Example: 40,479 parameters in MEMO²'s Transformer.
The first stage: the model learns to predict the next character from lots of text.
Example: Test loss from 4.98 to 3.41.
The second stage: teaching the model “question → answer” pairs from your project; loss counts only the answer.
Example: Answer loss from 1.65 to 1.09.
Mixing the first training text into post-training so the model does not forget. Forgetting = change in its loss on that text.
Example: Forgetting −0.04 means it did not forget.
Improving a model with human ratings: a reward model learns what people prefer, then the model is trained to satisfy it.
Example: Used for ChatGPT. In MEMO² your ratings train the evaluator.
A function that turns the model's scores into probabilities that sum to 1.
Example: “2”: 0.60, “t”: 0.08, ...
The average −ln p of the true character. Lower is better.
Example: p = 0.5 → loss 0.69.
e to the power of the loss: as if the model were choosing among this many options. Lower is better.
Example: Perplexity 2.98 out of 111 possible characters.
How big each parameter update is. Too large ruins learning; too small slows it.
Example: η = 0.0003 in post-training.
When a model memorizes its training data and does worse on new data.
Example: Training loss falls while test loss rises.
A machine-learning model that predicts the probability an answer is right, learning from your ratings.
Example: Confidence 43%.
The numbers the evaluator sees about an answer: coverage, support, number of citations...
Example: n_citations = 2.
A simple model that weights the features, then turns the sum into a probability between 0 and 1.
Example: p = 1 ÷ (1 + e^−z).
Many decision trees vote, and the result is the majority view.
Example: Best model: Random Forest.
Some data is kept away from training so the model can be tested fairly.
Example: 76 for training and 17 for testing.
The share of all predictions that were right.
Example: 12 right out of 17 = 0.706.
Precision: of those it called right, how many were? Recall: of those truly right, how many did it find?
Example: Precision 1.0, recall 0.15.
One number combining precision and recall (their harmonic mean).
Example: F1 = 0.783.
The chance the model scores a right answer above a wrong one. 0.5 = random, 1 = perfect.
Example: AUC = 0.654.
Brier = mean of (probability − truth)². Calibration means “70%” is right 70% of the time.
Example: Brier 0.252; lower is better.
The mean x̄ is the central value; the deviation s measures how spread out the values are.
Example: x̄ = 0.869, s = 0.263.
A test that compares the means of several methods and gives evidence of a difference among them overall; which pairs differ comes from follow-up comparisons.
Example: BM25, TF-IDF and Hybrid on 14 questions.
Every method is measured on the same questions, so we compare methods, not question difficulty.
Example: Question 3 is hard for all, so it does not penalize one method.
F = variation between methods ÷ random variation. The bigger it is, the clearer the difference.
Example: F(2, 26) = 2.69.
The probability of seeing a difference this large or larger if the methods were truly equal. It is not the probability that the difference is chance. Below 0.05 counts as evidence of a difference.
Example: p = 0.087 → no proven difference.
How much of the variation the methods explain. It says how big the difference is, not whether it exists.
Example: η²p = 0.17 is a fairly large effect.
A correction to p when the methods' differences are unequal, keeping the test fair.
Example: pGG = 0.115.
Holm compares each pair of methods, correcting for many comparisons. Friedman is an alternative that does not assume a normal distribution.
Example: BM25 vs TF-IDF: adjusted p = 0.21.
A separate space for one topic: its sources, chats, experiments and brain.
Example: “Energy in factories”.
Training: to teach models. Evaluation: questions and answers used only to test them. Text, Q&A or JSONL.
Example: A JSONL file with {"question": ..., "answer": ...}.
A direct link to your company system such as Odoo, Oracle or SAP; it pulls tables read-only and refreshes them on a schedule.
Example: Pull sales orders from Odoo, then ask “what is the total sales?”.
The project's memory: answered questions, your ratings, corrections and Lab results.
Example: A similar earlier question with 👍.
A read-only link to your project; it can expire and does not allow edits.
Example: A team-review link for 30 days.