Glossary
Embeddings vs fine-tuning
Embeddings give a model access to your knowledge by retrieving relevant text at query time, while fine-tuning changes the model’s own weights to alter how it behaves, writes or reasons.
Embeddings and fine-tuning solve different problems, which is why the choice between them is usually clearer than it first appears. Embeddings are how you give a model access to knowledge it does not have: you turn your documents into vectors, retrieve the passages most relevant to each question, and place them in the prompt. Fine-tuning is how you change the model itself: you train it further on examples so that its weights shift and it behaves differently, for instance by following a house style, producing a fixed output format or handling a narrow task more reliably. If the goal is for the model to know your facts, retrieval with embeddings is almost always the better tool. If the goal is for the model to act differently, fine-tuning is the candidate. Many production systems use both, and a third option, fine-tuning the embedding model, sits in between.
What “using embeddings” means
An embedding is a vector produced by an embedding model that captures the meaning of a piece of text. When people say they will “use embeddings” for a chatbot or agent, they usually mean retrieval-augmented generation: split documents into chunks, embed each chunk, store the vectors, and at question time embed the question, find the closest chunks with semantic search, and pass those chunks to the language model as context. The language model is unchanged. It answers from what it reads in the prompt.
This has three practical consequences. Knowledge can be updated by changing the documents, without retraining anything. Every answer can point back to the passage it came from, which supports source attribution and lets users check the work. And access control can be applied at retrieval time, so a user only ever sees passages they are allowed to see. The RAG pipeline entry and the post what is RAG cover the mechanics in more depth.
What fine-tuning means
Fine-tuning continues training a pre-trained model on your own examples, usually pairs of inputs and desired outputs. The model’s weights change, so the new behaviour applies to every request without any extra context in the prompt. Full fine-tuning updates all the weights; parameter-efficient methods such as LoRA train a small set of added weights, which is far cheaper and lets you keep several adapters for one base model. Instruction tuning and preference methods such as RLHF are forms of fine-tuning used by model providers to make base models follow instructions.
Fine-tuning is good at teaching form: tone, format, a classification scheme, a domain’s vocabulary, the structure of a particular report, or a narrow task that general models handle inconsistently. It can also let a smaller, cheaper model match a larger one on a specific task, which is the idea behind distillation. It is much less reliable at teaching facts. A model trained on your documents may absorb some of their content, but it will not reliably recall specific figures, will mix them with what it learned in pre-training, cannot tell you where an answer came from, and has to be retrained whenever the facts change. Training on new data can also degrade what the model knew before, a problem known as catastrophic forgetting.
Embeddings vs fine-tuning at a glance
| Embeddings (retrieval) | Fine-tuning |
|---|---|---|
What changes | The context given to the model | The model’s weights |
Best for | Knowledge: facts, documents, records | Behaviour: format, tone, task skill |
Updating knowledge | Edit or re-index the documents | Retrain the model |
Citations | Yes, to the retrieved passage | No |
Per-user access control | Yes, at retrieval time | No; everything trained in is available to all |
Up-front cost | Indexing: embed every chunk | Training data, training runs, evaluation |
Per-request cost | Retrieval plus extra prompt tokens | No extra context; may allow a smaller model |
Risk of stale answers | Low if the index is maintained | High once facts change |
Effect on hallucination | Reduces it when retrieval finds the answer | Can increase confident errors on facts |
Why facts belong in retrieval
The strongest argument for retrieval is that knowledge changes. Prices, policies, product features, customer records and research findings all move. A fine-tuned model holds the version of the facts it was trained on until it is trained again, so it quietly drifts into stale knowledge. A retrieval index can be updated the moment a document changes. The model’s own knowledge cutoff stops mattering for anything you can retrieve.
The second argument is grounding. When the answer comes from a passage in the prompt, you can check the answer against the passage, show the passage to the user, and measure whether the model stayed faithful to it. When the answer comes from weights, none of that is possible, and a wrong answer looks exactly like a right one. Retrieval does not remove hallucination, especially when the retrieved passages are on topic but lack the specific fact, but it gives you something to measure and fix.
The third is data governance. A fine-tuned model cannot forget a single record on request; removing personal data means retraining. With retrieval, deleting a document removes it from future answers, which matters for the right to be forgotten and for keeping each customer’s data separate in a multi-tenant product.
When fine-tuning is the right call
Fine-tuning earns its cost when the problem is consistent behaviour that prompting cannot reach. Typical cases include producing output in a strict schema that the model keeps breaking even with structured output features, matching a house style across thousands of generated documents, classifying text into a company-specific taxonomy, handling domain shorthand that general models misread, or running a narrow task at high volume on a smaller model to cut cost and latency.
Before fine-tuning, it is worth exhausting cheaper options. Better prompt engineering, a few worked examples through few-shot prompting, and a clearer system prompt solve a large share of behaviour problems with no training at all. Fine-tuning also needs a decent golden dataset of examples and an evaluation set to prove it helped; without them, it is hard to tell whether a fine-tuned model is better or just different. The RAG vs fine-tuning entry compares the two approaches at the system level.
The third option: fine-tuning the embedding model
The question is sometimes really about retrieval quality. If a general embedding model does not separate the concepts that matter in your domain, for example two similar regulatory regimes or two internal products with overlapping names, you can fine-tune the embedding model on pairs of queries and the passages that should match them. This changes how text is represented for retrieval, not how the language model writes. It can raise retrieval accuracy noticeably in specialised domains, but it brings its own costs: training data, a model to host or a provider that supports custom embeddings, and a full re-index whenever the model changes, since vectors from different models are not comparable (see embedding drift).
Before that step, check cheaper retrieval fixes. Adding keyword matching through hybrid search often solves the “similar names” problem, and BM25 vs embeddings explains why. Reranking, better chunking and query rewriting are also cheaper than training. The best embedding models roundup and the OpenAI embeddings pricing page help if you are comparing hosted models first.
A worked example
A company builds an assistant for its support team, similar to many customer support agents. It has 6,000 help articles, a few hundred internal runbooks and a style guide for replies. The first idea is to fine-tune a model on all of it so that it “knows the product”.
The team tries a small experiment instead. A fine-tuned model writes replies in the right tone, but quotes plan limits from an old version of the pricing page and cannot say which article it relied on. A retrieval setup with an unchanged model quotes current limits and links each answer to its article, but its replies are longer and more formal than the style guide wants.
They end up with both. Retrieval supplies the facts from the help centre, kept current as articles change. A small LoRA adapter, trained on 2,000 approved replies, handles tone and structure. When pricing changes the next quarter, they update the articles and nothing needs retraining. When the style guide changes, they retrain the adapter, which takes an afternoon. The split follows the rule of thumb: knowledge in retrieval, behaviour in the weights.
Memory is a separate question
Neither embeddings over documents nor fine-tuning handles what the assistant learns about each user over time: preferences, past decisions, an account that was upgraded last week. Fine-tuning per user is impractical, and a document index is the wrong shape for facts that change and contradict each other. That is the job of agent memory, and the memory vs knowledge base entry explains where the boundary falls.
Where Exabase fits
Exabase is retrieval and memory infrastructure, so it sits on the embeddings side of this choice and works alongside whatever model you use, fine-tuned or not. Documents stored through Resources are indexed when they are written, and Deep Search returns the matching passage inside each document with page numbers or timestamps, using hybrid semantic and keyword search, with no embedding pipeline for you to build or re-index. Workers can keep that knowledge current on a schedule, which addresses the staleness that makes fine-tuned facts risky; the knowledge base solution covers that pattern. The searching resources guide shows the search call.
For per-user facts, Memory extracts facts, preferences and events from conversations and resolves contradictions as they change, scoped per user or tenant with Bases; the creating memories guide shows the API, and the agent memory solution explains the approach. Exabase does not fine-tune models or host custom embedding models. If you need a fine-tuned model for tone or format, train it with your model provider and use Exabase to supply the facts it should write about.
Frequently asked questions
Should I fine-tune or use embeddings for my company’s documents?
Use embeddings and retrieval. Documents change, retrieval can be updated without retraining, and answers can cite the passage they came from. Fine-tune only if you also need the model to behave differently.
Can fine-tuning teach a model new facts?
Somewhat, but unreliably. A fine-tuned model may recall some trained facts, mix them with pre-training knowledge, cannot cite a source, and must be retrained when the facts change.
Is fine-tuning cheaper than RAG?
It depends on volume. Fine-tuning has higher up-front cost and can lower per-request cost by removing retrieved context or allowing a smaller model. Retrieval has lower up-front cost and adds tokens to each request.
What is the difference between fine-tuning an LLM and fine-tuning an embedding model?
Fine-tuning an LLM changes how it writes and behaves. Fine-tuning an embedding model changes how text is represented for search, which can improve retrieval in specialised domains but requires re-embedding the corpus.
Can I use embeddings and fine-tuning together?
Yes, and many production systems do. Retrieval supplies current facts, and a fine-tuned model or adapter handles format, tone or a narrow task.
Does Exabase support fine-tuning?
No. Exabase provides retrieval through Deep Search and long-term memory through Memory, and works with any model, including one you have fine-tuned elsewhere.
Related pages: RAG vs fine-tuning, Fine-tuning, Embedding, Embedding model, BM25 vs embeddings, RAG vs long context, LoRA, Best embedding models, The end of the embedding pipeline, RAG accuracy solution, model distillation