Training, fine-tuning, retrieval, memory and context describe different ways an AI system acquires, represents or uses information. Training adjusts a model’s learned parameters through an optimisation process. Fine-tuning continues training a pretrained model for particular tasks or domains. Retrieval selects information from a data source for a current question without necessarily changing the model’s parameters. Memory can mean several things: persistent application records, conversation summaries, stored preferences or model-related state, depending on the system. Context is the information supplied for a particular inference or interaction. A model can answer using newly retrieved documents without having been retrained on them, and a fluent answer does not prove any source was correctly interpreted.
To assess claims such as “the AI knows our latest policy” or “the assistant remembers everything”, ask which information is in model weights, which comes from a retrieved source, what is in the current context, what is stored between interactions, how current the information is, and what permissions govern its use. Then zoom from a single question to a knowledge base, workplace assistant, publishing workflow, public service and multilingual AI infrastructure. None of these architectures supplies a universal guarantee of factual truth, consent, exact semantic preservation or successful external action. Their value comes from selecting the right process for a clearly defined purpose and evaluating the whole application.
- Training: An optimisation process updates learned model parameters using selected data and objectives.
- Fine-tuning: Additional training of an existing model, with methods and scope depending on implementation.
- Retrieval: Relevant documents or data are selected for the current task from an external source.
- Memory: Persistent or reusable information retained by a system under its design and access rules.
- Context: Current input, retrieved material and relevant interaction state available for response generation.
- Source evidence: A model’s answer or confidence does not automatically prove retrieved claims are correct.
- Practical method: Track information source, model version, indexing date, permissions, interpretation and corrections.
Chapter Index
- 1. Five Different Paths to an AI Answer
- 2. One Fictional Workplace Policy Update
- 3. Training and Fine-Tuning Are Not the Same as Supplying Examples
- 4. Retrieval-Augmented Generation Has More Than One Stage
- 5. Memory Is Not One Universal Feature
- 6. Context Has Meaning, Size and Trust Boundaries
- 7. Choosing a Technique for the Actual Need
- 8. Zoom From One Conversation to Civilisational Vocabulary
- 9. A Seven-Question Audit and Seven-Day Practice
- 10. Frequently Asked Questions
1. Five Different Paths to an AI Answer
What does training mean?
In machine learning, training adjusts model parameters through an objective and an optimisation process using training data. A language model may learn statistical patterns in text, code and other material depending on its architecture. Training can enable useful general capabilities, but it does not independently certify each factual statement represented in the data. Sources can contain mistakes, outdated information and contradictory opinions. A trained system is therefore not a perfect database of verified facts. Its abilities and limits require independent evaluation on relevant tasks.
What is pretraining?
Pretraining generally means an initial broad training stage that produces a model for subsequent use or adaptation. A pretrained language model can then be used directly, fine-tuned or combined with retrieval. The term describes a stage in model development, not a promise about which specific webpages were included or how current its knowledge remains. A pretrained model does not automatically update its parameters whenever a website changes. The distinction matters when users expect an AI answer about a newly revised policy or recently published research.
What is fine-tuning?
Fine-tuning continues training an already pretrained model on additional data or objectives suited to a task. The Hugging Face Transformers fine-tuning guide describes loading a pretrained model and adapting it through training on task data. The resulting model can behave differently from its starting version. But fine-tuning does not automatically create a reliable search engine for continually changing source documents or prove that every learned response is current. Its suitability depends on the task, data and evaluation.
What is retrieval?
Retrieval selects relevant information from a source collection. It may use keyword search, embeddings, structured queries or hybrid approaches. An AI application can retrieve a document during a conversation and supply excerpts to a generator. The process does not, by itself, change the model’s learned weights. Amazon Bedrock Knowledge Bases provides an example of combining external data with model-generated responses. The retrieved content can improve relevance, but still requires source-quality checks and correct interpretation.
What does memory mean?
Memory is not one universally standardised AI capability. It may refer to persistent records that an application stores between interactions, a summary of earlier conversation, a user’s saved preferences, tool-side history or other system state. Within a neural network, the learned parameters can also encode information acquired during training, but this differs from a user-accessible memory entry or external database. To understand a product’s memory claim, identify what is stored, who controls it, whether it is actually retrieved and what privacy and retention rules apply.
What is context?
Context is information relevant to interpreting or generating a response in a particular interaction. It may include the current user request, recent conversation, instructions and retrieved documents. A context window is an implementation limit, often expressed in tokens, on how much material the model can process within an operation. Having a large context window does not guarantee perfect attention to every detail. An application can also shorten or select earlier history, so what the model actually sees may differ from what the user remembers discussing.
2. One Fictional Workplace Policy Update
The old policy appears in a model’s learned patterns
Imagine a workplace assistant whose base model was trained before a policy change. The model may generate an older procedure if the prompt does not supply the current official source. It might sound fluent because the older terminology is statistically familiar. That behaviour is not direct evidence that the application accessed a live policy document. The responsible workflow distinguishes model-generated language from verifiable current institutional guidance. A change of public policy should not be assumed to update previously trained parameters automatically.
Fine-tuning changes the model, not the official policy
The organisation could fine-tune a model to follow its writing conventions or perform a specialised classification task. This might improve style or task performance under suitable data. But the official rule can change again after fine-tuning. A newly tuned model is not necessarily a dependable source for every rapidly changing requirement. AWS guidance comparing RAG and fine-tuning explains why the two approaches have different strengths, costs and limitations. They can also be combined.
Retrieval can supply the current document
A retrieval system may search the organisation’s knowledge base for a document relevant to the user’s question, then include its contents in the current model input. This can give the generator access to information not represented by its original training. However, the knowledge base may contain an older version or have an incomplete index. The system should identify the retrieved source and effective date rather than claim the model’s internal knowledge has magically updated. Retrieval is an information-selection step, not a universal verification step.
Context can carry the relevant exception
Suppose the policy says “applications may be submitted until Friday, except in a specified emergency category.” If retrieval selects only the first clause, the model may produce a misleading general answer. The failure is not necessarily in the underlying model weights; it may be a missing relevant passage in the supplied context. A well-designed application checks whether it retrieved enough information to support the requested decision and whether the exception has been preserved. More context is useful only when its content and interpretation are suitable.
Persistent memory can retain an old preference
The assistant might remember that a person prefers concise emails. That preference can help presentation, but it does not supply authority to act on unrelated accounts or override current rules. An application might also retain a previously discussed document title, which could now be stale. Memory records need provenance, version and correction procedures when they affect consequential choices. The existence of persistent state should not be confused with permanent factual truth or unrestricted permission to reuse personal data.
The final answer still needs verification
The assistant may combine retrieved text, model knowledge and the current request into a polished paragraph. The user needs to know what the original source actually supports, which claims were inferred, and whether a proposed action was merely drafted or actually completed. A good citation identifies relevant evidence but does not guarantee that the model’s interpretation was faithful. The source-and-citation guide explains why a link is not an independent certificate of truth.
3. Training and Fine-Tuning Are Not the Same as Supplying Examples
Model weights are not ordinary files of source paragraphs
Training updates numerical parameters used in generation or prediction. Those parameters may reflect patterns in the data but are not simply a catalogue of every source sentence with an authoritative reference attached. A model can generate a plausible citation that does not exist. It may also fail to reproduce a fact it encountered during training. Treating weights as a verified reference library is a mistaken metaphor. For claims that need source authority, retain and check appropriate source records separately.
Supervised fine-tuning uses training examples
A fine-tuning dataset can contain examples of desired inputs and outputs, with methods differing across providers and architectures. The model is optimised to perform those tasks under an objective; it is not guaranteed to learn every example as a perfect rule. The Hugging Face guide shows a standard fine-tuning workflow and the need for tokenisation and evaluation. Quality depends on the training material, target definitions, coverage and how the model performs on genuinely new cases.
Fine-tuning is not necessarily full-model training
Some adaptation approaches update all eligible parameters, while parameter-efficient techniques train a smaller set of additional or selected parameters. They have different operational and resource implications. “Fine-tuned” does not tell a reader which technique was used or what the model can now do. A responsible technical description names the method and evaluation when those facts matter. The broad word does not prove that every parameter was changed, every task improved or earlier safety properties remained identical.
In-context examples do not necessarily change the model
A prompt might supply several examples of preferred answers and ask the model to follow the pattern. The model can adapt its immediate output based on these examples without performing a weight-update training procedure. This is often called in-context learning or prompting. The effect may disappear when the examples are no longer supplied. A product that “learned your style” may mean it received a preference in current context, stored a memory or underwent actual training. Ask which mechanism is involved before assuming permanence.
Fine-tuning can change behaviour without proving accuracy
A model fine-tuned on examples of a company’s preferred language may become more fluent in that style. It could still misunderstand an updated eligibility condition or invent a source. A benchmark should test the actual task and consequential error types, not only whether output resembles preferred writing. The AI testing guide distinguishes tests, evaluation and certification. A training run ending successfully is not the same as a validated deployment.
Continual updating introduces new risks
Updating a model’s parameters with additional data may change behaviour on earlier tasks, including performance that was previously useful. A responsible development process evaluates the new version and preserves the ability to compare relevant results. Continual learning is a research and engineering area with its own methods and limits; it should not be promised as effortless absorption of every changing fact. Version the data, objective and model, and test for unexpected regressions before describing an update as an improvement.
4. Retrieval-Augmented Generation Has More Than One Stage
What is RAG?
Retrieval-augmented generation, or RAG, combines a retrieval process with a generative model. Relevant external information is selected and made available during response generation. AWS Prescriptive Guidance compares it with fine-tuning and describes their complementary use cases. RAG can support more traceable answers about changing documents, but only if the source collection is appropriate and the retrieval and generation steps actually preserve what the documents say.
Ingestion is not retrieval
Before a system can retrieve a document, it may need to ingest, parse and index it. A new file uploaded into storage is not necessarily available to search immediately. Processing may fail, metadata may be omitted or an access rule may exclude it. A system claiming the AI “has the document” should specify whether it means stored, indexed, retrieved or included in the particular response context. These stages correspond to different evidence and failure modes. An upload receipt alone does not prove the answer used the new file.
Chunking changes what the model sees
Many retrieval systems split long documents into smaller chunks for indexing and selection. The split can improve search efficiency but may separate an important exception from the clause it qualifies. A returned chunk should retain enough context for reliable interpretation. A policy statement saying “may apply” could be misleading when its eligibility exclusions are in another chunk. Source-aware retrieval must evaluate whether the selected material is complete enough for the user’s question rather than equate any match with sufficient evidence.
Embeddings are representations, not definitions
A search index may represent passages as numerical vectors so related texts can be found. These embeddings reflect model-dependent patterns and are not themselves permanent concept identifiers or proof of semantic equivalence. Two passages can share a topic while disagreeing on the outcome. The AI tokens and embeddings guide explains why similarity is not entailment. Retrieval quality needs tests of negation, permissions, dates and factual claims, not only nearest-neighbour distance.
Reranking is another evaluation step
A system may retrieve many candidate passages and use a reranker to choose which are most relevant to the query. This can improve useful coverage under appropriate tests. It does not make the selected passages authoritative or guarantee that the generator will use them correctly. Amazon Bedrock’s retrieval documentation describes retrieval, generation and reranking as distinguishable operations. Keeping their roles separate helps identify whether an error came from search, source quality or interpretation.
Citation generation is not independent verification
A RAG system may return references to retrieved passages. This is valuable because readers can inspect the source. But a citation can be attached to a claim the source does not support, or an outdated source can be cited accurately. The application’s quality process should compare claims with passages, dates and relevant authority. A bibliography is not proof that the generated answer is current, safe or correct. Verification remains an evidence-based activity, not a cosmetic presentation stage.
5. Memory Is Not One Universal Feature
Conversation history differs from persistent memory
A current conversation may contain messages visible or supplied as model context. Persistent memory is reusable information stored beyond a particular interaction under an application’s design. An application may summarise earlier discussion to fit current limits or retrieve selected records later. It may not preserve every earlier sentence. A user’s expectation of continuous memory should be matched to the actual product and settings. Do not invent a claim that any AI assistant remembers everything indefinitely or that every previous conversation remains in its context.
Application memory can be stored outside model weights
A system might store user preferences or project status in a database. When needed, it retrieves relevant entries into the model’s current input. This is different from fine-tuning the model on the user’s conversations. A change to the stored preference might be applied at retrieval time without a training run. The organisation should explain who can update or delete the record and which information is appropriate to retain. A memory feature is a data-governance responsibility, not merely an AI convenience.
Temporary state differs from long-term memory
An agent may retain an operation identifier or partially completed workflow step for a short session. That operational state can be important for avoiding duplicate actions, but it may expire or be cleared after completion. A long-term preference or archive has a different purpose and retention policy. Describing both as memory can confuse users about durability and privacy. A reliable interface distinguishes temporary context, saved data, task status and historical record rather than place them under one vague claim.
A remembered fact can become stale
A user may have changed organisations, responsibilities or preferences since the stored information was created. If the assistant reuses an old memory as current fact, it can make inappropriate recommendations or target the wrong document. A trustworthy design records source and date where relevant, allows correction and avoids overconfidence when information may have changed. A persistent record supports continuity; it does not guarantee permanent truth. Revalidation matters for time-sensitive details.
Personalisation is not permission for external action
Remembering that a user prefers brief emails does not authorise sending an email, accessing private files or paying an invoice. Preferences guide style or choices within legitimate scope. Tool permissions and user instructions must still control consequential actions. A system should not promote a memory entry into unrestricted authority. This is particularly important when an assistant interacts with third-party content containing instructions that may be untrusted or malicious.
Privacy and retention apply to memory
Stored personal information can create privacy risks if it is kept longer than necessary, exposed to unrelated people or reused for unexpected purposes. A responsible application identifies its lawful basis, retention and controls appropriate to the data and jurisdiction. Temporary context is not automatically harmless, nor is a database entry automatically permanent. The point is to describe what is actually stored and how it can be managed. Marketing terms such as remembers you should not conceal real data handling.
6. Context Has Meaning, Size and Trust Boundaries
A context window is a capacity constraint
A model can process a certain amount of text or other encoded input per operation under its architecture and application limits. The practical window is often measured in tokens, not words or ideas. Different languages can consume different token counts for similar content. A large window can accommodate lengthy material but does not establish that every clause was considered accurately. Evaluation should include the actual document type, position of critical information and known failure patterns rather than treat maximum size as guaranteed comprehension.
More context can introduce more ambiguity
Adding documents may give the model access to necessary evidence while also introducing outdated policy versions or contradictory commentary. The assistant must identify which source governs the user’s question. Context selection is therefore a quality and governance decision, not a simple competition to include as much text as possible. An accurate answer sometimes requires fewer, more authoritative passages and a clear treatment of exceptions. Information quantity and evidentiary suitability are different properties.
Context may be summarized or truncated
An application might shorten earlier messages or select excerpts from a long document. That can help stay within processing limits but may remove dates, negation or original authority. A model can then generate a plausible answer based on incomplete context. A reliable workflow records which constraints were retained and verifies that high-impact details survived summarisation. It should be willing to request the original source again when a summary no longer supplies sufficient evidence.
Untrusted retrieved text is still data
A webpage or email can contain instructions addressed to an AI model. When the user’s task is to summarise that document, those instructions are part of the material being examined, not a new source of operational authority. The OWASP prompt-injection guidance explains this class of risk. Source provenance and tool permission checks matter even when a document is relevant and authentic. An AI agent must not let retrieved text silently redefine what the user authorised.
A document can contain multiple conflicting versions
An organisation may have one policy version effective today and an archived version explaining past practice. Retrieval may return both because their wording is similar. A good answer identifies effective dates and the use case rather than merge their terms into a hybrid rule. Current guidance and historical evidence are different kinds of context. The same phrase “the policy” is ambiguous when a version history exists. A time-aware glossary and source record reduce the likelihood of a misleading answer.
Missing context should produce appropriate uncertainty
If the assistant cannot identify which contract, project or deadline a user means, inventing the most likely referent may be unsafe. A low-stakes draft might permit a clearly stated assumption; a high-impact action may require clarification or independent confirmation. The model’s fluent language does not eliminate uncertainty about the user’s actual intent. A trustworthy service distinguishes enough information to draft from enough authority and evidence to execute.
7. Choosing a Technique for the Actual Need
When training might be appropriate
Training a model can be appropriate when building fundamental capabilities or adapting to a defined problem with suitable resources and data. It requires attention to data rights, task definitions, evaluation and changes across versions. A growing reference library, however, may be better served by a retrieval system than repeated training. The method should match whether the goal is behaviour, factual access, style or decision-support quality. A team should not select training merely because it sounds more advanced than search.
When fine-tuning might help
Fine-tuning can help with a stable specialised output style or repeatable task when the training dataset captures the desired examples and boundaries. It may be less suitable as the sole mechanism for answering questions about frequently revised documents. Even with fine-tuning, the model needs evaluation on unseen cases and appropriate source verification. The AWS RAG-versus-fine-tuning guidance compares the approaches and notes they can be combined rather than treated as mutually exclusive technologies.
When retrieval might be preferred
Retrieval is useful when answers should refer to a changing corpus of documents, especially when readers need citations to an identifiable source. Its strength depends on ingestion, indexing, ranking, source authority and access controls. A knowledge base that is never updated can become stale despite using modern retrieval methods. RAG does not guarantee accurate summaries of every entire document or every embedded exception. Evaluate the complete user question, not merely the retrieval service’s response latency.
When persistent memory is useful
Persistent memory can help maintain selected preferences or project state across interactions, reducing repeated instructions. But it should be used only under appropriate controls and with a correction route. A personal preference should not be treated as an immutable identity attribute or a future authorisation for unrelated action. A task log may require different retention from a stylistic preference. The system should explain why information remains available and what the current response actually used.
When current context is enough
A user can supply a short document and ask for a rewrite in the present interaction. If no persistent state is needed, storing that document in long-term memory may provide no benefit. The model can work with the supplied context and return the result. For consequential rewriting, it still needs a check for lost negation, changed quantities and unsupported additions. The presence of source text in context is an opportunity for evidence-based comparison, not proof that the model will automatically perform one.
Combining methods can improve a workflow
An organisation might use a pretrained model, fine-tune it for consistent classification, retrieve current policy documents and keep authorised task state in a separate database. Each component has a different responsibility. The combination can be powerful, but also creates more places for mistakes: stale indexes, outdated labels, untrusted documents and mistaken permission claims. System-level evaluation should map which component supplies each answer and verify external actions with authoritative tool results.
8. Zoom From One Conversation to Civilisational Vocabulary
Personal zoom: “remember my preference”
A person asks a writing assistant to use concise language in future drafts. The system might place that preference in the current context or store it persistently, depending on the product. The user should not assume every assistant has the same memory controls. The helpful result is better future writing within agreed boundaries. The statement “I remember” should mean the application can actually retrieve and use the preference, not merely that it produced a reassuring sentence.
Workplace zoom: a newly revised policy
A company changes the definition of completed work. A fine-tuned model might still produce its former terminology; a retrieval system may fetch the updated glossary if indexed correctly. A saved memory could also repeat the older label if not corrected. A reliable workflow versions the authoritative policy, updates indexes and tests whether generated responses apply the current rule. This illustrates why changing one webpage is not automatically enough to update every AI-assisted process that depends on it.
Research zoom: source-grounded explanation
A scientific assistant can retrieve a study and explain its methods, but it should preserve whether an outcome was observed, inferred or predicted. Training history does not make the article true, and retrieval does not make interpretation infallible. Source quality and methodology require independent assessment. An application should distinguish passages from generated explanation, allow corrections and avoid presenting a model’s confidence as an empirical result. The right architecture improves traceability when it keeps that separation visible.
International zoom: multilingual knowledge bases
One concept may have different labels across languages and jurisdictions. A model trained on one language variety may not handle all others equally. Retrieval can bring target-language references into current context, while fine-tuning may improve selected language tasks under appropriate evaluation. Neither technique guarantees perfect one-to-one semantic equivalence. A cross-language system should preserve source labels, jurisdiction, effective date and uncertain mappings instead of pretending the word at the centre of every translation is universally fixed.
Ztime zoom: what was known when?
A knowledge base may preserve historical policy documents and current guidance in one index. Without time-aware retrieval, an answer can combine incompatible versions. A model’s training cutoff is only one temporal property; source publication date, ingestion time, indexing time and policy effective date can all differ. A useful answer states which date controls the claim and which sources were consulted. An immutable history helps explain earlier decisions, while later corrections keep the current record usable.
Civilisational zoom: preserve knowledge beyond model generations
Future AI models may use different architectures and tokenizers. An archive storing only model weights may fail to preserve source citations, legal context or human interpretation. Long-term vocabulary survival benefits from readable primary documents, versioned definitions, translation notes and provenance alongside computational representations. The goal is not to freeze every meaning in one neural model. It is to make the evidence and concepts reconstructable across technological change while acknowledging what may remain uncertain.
9. A Seven-Question Audit and Seven-Day Practice
Seven questions for AI knowledge claims
- Was the information learned during training or fine-tuning, or supplied at inference time?
- Which exact model version and training objective are relevant?
- Which external documents were retrieved, and how current and authoritative are they?
- What entered the actual context used for this response?
- What persistent memory was consulted, and under which permissions?
- Do the cited sources support the generated claims and required actions?
- How can the system correct stale information or unintended reuse?
Day one: separate model knowledge from source evidence
Take a harmless fictional policy question. Draft one answer based only on general model behaviour and another based on a supplied authoritative document. Identify which claims the document supports and where the model might add unsupported details. The purpose is to see why training and retrieval answer different engineering needs. A confident tone is not evidence of current knowledge.
Day two: define a fine-tuning task
Choose a narrow fictional classification such as routing museum enquiries to three teams. Write a small labelled training dataset with consistent instructions and difficult boundary cases. Explain what a fine-tuned model would be expected to improve and what it would not automatically know about future policy changes. The exercise does not require actually training a model; defining the target and evaluation is the important lesson.
Days three and four: simulate retrieval
On day three, create three fictional documents with slightly different policy versions and identify which is authoritative for today’s question. On day four, imagine the retriever selected only a passage missing an important exception. Explain how the generator could become wrong despite citing a real source. A corrected workflow should retrieve enough context and check the relevant version rather than merely increase the number of search results.
Days five and six: distinguish context and memory
On day five, place a harmless preference in the current prompt and observe how it shapes a draft. On day six, describe how a system might store that preference for future use, including privacy, change and deletion controls. Make clear that a stored preference is not a permanent truth about the person and does not authorise external actions. The conceptual distinction is between current input and reusable application state.
Day seven: make a source-to-answer record
Write a small provenance record listing the user question, current source, relevant context, retrieved version, model output, verified claims and unresolved uncertainty. Add how the information could become stale and who may correct it. This produces an inspectable chain of interpretation instead of claiming that the AI simply knows everything. A strong vocabulary-engineering system distinguishes its information paths because each has different failure modes.
10. Frequently Asked Questions
Does retrieval retrain the model?
Not ordinarily. Retrieval supplies external information for a task without necessarily changing model weights. A separate training process would be needed to update those parameters.
Is fine-tuning the same as putting examples in a prompt?
No. Fine-tuning performs further training; in-context examples influence a particular inference without necessarily modifying learned parameters.
Does a larger context window mean the AI remembers more forever?
No. A context window concerns input capacity for an operation. Persistent memory depends on the application’s separate design and controls.
Can persistent memory become outdated?
Yes. Stored details can change and may need correction or revalidation. Memory retention does not guarantee ongoing factual accuracy.
Does RAG guarantee correct citations and truthful answers?
No. Retrieval can improve traceability, but documents can be stale, chunks can omit context and generated interpretations can be wrong.
Can AI training, retrieval and memory be combined?
Yes. A system may use a pretrained or fine-tuned model with retrieval and persistent state. Each component should be evaluated and governed separately.
Continue the Vocabulary at Every Zoom Level
- AI tokens, embeddings, vectors and meaning
- AI training data, labels and ground truth
- AI models, simulations, digital twins and reality
- AI confidence, probability and calibration
- Source of truth, replica, cache, backup and archive
- Semantic firewalls, prompt injection and untrusted text
Companion Articles in This Batch
Explore the companion articles to see how mathematical evaluation, causal evidence, meaningful permission and AI information pathways interact across individual, organisational and global zoom levels.
- Accuracy, Precision, Recall, Specificity and Sensitivity
- Correlation, Causation, Confounding, Mediation and Counterfactual
- Consent, Assent, Opt-In, Opt-Out and Withdrawal