‹ Back to blog

fine-tuning7 min read

Voyage 4 Performance with Private Models You Own

We fine-tuned small and medium embedders and rerankers in GoodMem Cloud, then compared both pairs with Voyage 4 Large and Rerank 3 on 200 customer searches.

An archivist lifts an index card from a tray beside an open book and a reel of film.
The library included the video titles as well as the transcripts.

Your users have their own way of asking questions, and it does not always match the way your documents are written. During fine-tuning, we pair a search with a passage that answers it so the model can learn to find relevant passages even when the wording differs.

We recently used GoodMem Cloud to fine-tune embedders and rerankers for one of our customers. The embedder finds relevant passages in their library, and the reranker puts the best matches first. We uploaded the customer’s material, chose the spaces to train on, and set a budget. GoodMem Cloud prepared the training data, trained the models, and tested them on searches it had set aside.

On the customer’s own test set, our medium pair scored about the same as Voyage 4 Large paired with Rerank 3, and the customer can run both models on their own hardware. I’ll show you how we ran the comparison and how you can try it with your own data.

What we trained on

We indexed nearly 150,000 entries from the customer’s own library, the same content their users search every day.

  • Video transcripts. About 2,400 videos, split into roughly 75,000 timestamped segments.
  • Video titles. About 2,400 titles, often just a few words long.
  • Articles and papers. About 1,000 documents, split into roughly 70,000 passages.

A title might use the exact words someone types into search, while a speaker might take a few minutes to explain the same idea without using those words at all. We wanted search to work well in both cases.

We fine-tuned four models in all. In one run we trained a small embedder and a small reranker, and in the other we trained a medium embedder and a medium reranker on the same material. We wanted to know whether the medium pair gave users better search results and, if so, whether the difference was worth the extra cost.

How to fine-tune your own models

This walkthrough starts with your content already in GoodMem Cloud. You’ll need a running instance with an embedder and at least one memory space that uses it and contains your data. We used one space for written content, one for video transcripts, and one for video titles.

From there, you fill out one form. GoodMem prepares the training data, trains the models, and tests the results.

1. Go to Tuning. In the GoodMem Cloud console, open your organization in the left sidebar and select Tuning.

M my-organization
Instances1/1
Users & roles11
Tuning
Hosted models
Tuning in the organization sidebar.

2. Start a new run. Open the Fine Tuning tab. This is where you can find your previous runs. Click Start a fine-tuning run on the right to create a new one.

Optimize pipelines 0Fine Tuning 2
Fine-tune and deploy retrieval models tailored to your Memory Spaces and query patterns.
The Fine Tuning tab in the organization’s console.

3. Fill in the form. The form asks for your instance, the memory spaces to train on, the models you want to tune, and your budget.

GoodMem instance
Select an instance…
Memory Spaces
Select an instance first.
What to tune
Embedder
GoodMem Embed Small · multilingual
Finds the passages. Using it later means re-embedding these spaces.
Size Small selectedMediumBoth
The default: quickest to train and cheapest to serve.
Reranker
GoodMem Rerank Small · multilingual
Re-orders the top results. Can be switched on without re-embedding.
Size Small selectedMediumBoth
The default: quickest to train and cheapest to serve.
Plan
Pick spaces and at least one model to see the plan.
Cost cap (USD)
$
If the run reaches the cap, it stops.
No cap (run to completion regardless of cost)
Advanced
Search instruction
Given a search query, retrieve passages that answer it.
One sentence describing your searches. Used in training and again at search time.
Job name
e.g. tune-handbook-4-spaces
The form before an instance is selected.

4. Select your data. Choose the instance that holds your content, then select the memory spaces you want to use. We selected all three so the training data would include articles, transcripts, and titles.

GoodMem instance
my-instance
Memory Spaces
written_spacetranscripts_spacetitles_space
Add another…
3 of 18 selected
The three spaces we used.

5. Choose your models and their size. You can tune an embedder, a reranker, or both. The choice affects how you use the models afterward.

  • An embedder finds relevant passages. To use the tuned embedder, you’ll need to re-embed the content in your selected spaces.
  • A reranker puts the best matches first. You can use the tuned reranker with your existing embeddings.

For size, Small is the quickest to train and cheapest to run. Choose Medium for the larger model, or Both if you want to compare the two sizes on your own data.

6. Review the plan. GoodMem shows how it will read your spaces, prepare training examples, train the models, and test them. You also get a cost estimate before you start. GoodMem builds the examples from your documents and can use real searches if your instance has logged any, so you don’t need a separate training set.

Plan
124,477 passages · no real searches in the last 90 days
Training data will come from your documents alone. Future runs can also learn from real searches once some are logged.
StageCostTime
1Reading your Memory Spacesunder $12–4 min
2Preparing training data$33–713–6 h
3Training your modelsLarger embedder and larger reranker, side by side$13–337–16 h
4Checking the results$8–204–9 h
Total$54–12514–31 h
Estimates. You pay for what actually runs.
Cost cap (USD)
$ 125
If the run reaches the cap, it stops.
No cap (run to completion regardless of cost)
An estimated budget for training the medium pair.

7. Set your budget and start. You pay for what actually runs. The estimate tells you what to expect, and the cost cap tells GoodMem when to stop.

Under Advanced, you can add a one-sentence instruction describing how people search your content. GoodMem uses the same instruction during training and at search time. If your users typically ask questions, you can leave the default in place.

Advanced
Search instruction
Given a search query, retrieve passages that answer it.
One sentence describing your searches. Used in training and again at search time.
The default search instruction.

Give the run a name and select Start tuning job.

The estimate shown for a different configuration.

8. Follow the run. The run page shows which stage GoodMem is working on, how long it has been running, and how much it has cost so far. Here is what it looked like for our medium pair on roughly 124,000 passages.

Run details · 4 stages · 7 h 46 min
Elapsed 7 h 46 minCost $60.35 of $105.00 cap
Reading your Memory SpacesDone
26 s · 124,471 passages · 272 real searches
Preparing training dataDone
2 h 4 min · 18,995 training examples
Training your modelsDone
4 h 32 min
Larger embedder4 h 6 min
Done
Larger reranker4 h 28 min
Done
Checking the resultsDone
1 h 1 min
The completed run for the medium models.

We ran one job per size. Both finished well below the caps we set.

Stage or cost Small pair Medium pair
Training examples prepared 19,000 18,995
Preparing training data 1 h 20 min 2 h 4 min
Training both models 1 h 16 min 4 h 32 min
Testing the models 23 min 1 h 1 min
Total time 3 h 8 min 7 h 46 min
Total cost $51.20 $60.35
Cost cap we set $80 $105

For us, the bigger difference was time. The medium pair cost $9.15 more but took 4 hours and 38 minutes longer.

9. See whether tuning helped. GoodMem compares each tuned model with its original version on searches set aside before training. The results page shows how much the scores changed and whether GoodMem recommends using the tuned model.

Finished
Use the tuned model.
Estimated change
+6.6 nDCG@10 points (95% interval +3.7 to +9.8)Compared with the baseline pair (GoodMem Embed Medium and GoodMem Rerank Medium), on 92 test searches held out from training. This doesn’t cover the rest of your retrieval setup.
Evidence
47 real searches from your query logs and 45 test searches generated from your content.
Tuned larger reranker · GoodMem Rerank Medium236 MB
Download
Deploy to a GPUServes this model from a GPU, at a private address.
The recommendation for the medium run.

10. Use your models. The results page gives you a few ways to use what you’ve trained.

  • Select Deploy to a GPU to serve the recommended model at a private address you can use with your spaces.
  • To run the models on your own hardware, download them under Run files.
  • You can also download the comparison report as JSON to see the numbers behind the recommendation.
Run files (3)
Downloadable files produced by this run.
Tuned larger embedder · GoodMem Embed Medium · 120 MB
Download
Tuned larger reranker · GoodMem Rerank Medium · 236 MB Recommended
Download
Comparison report · JSON
Download
The two model downloads and the evaluation report.

What fine-tuning changed

Our first question was how much tuning had improved the models we started with. For the medium run, GoodMem set aside 92 searches before training and used them to test the models afterward. The console reports NDCG@10 on a 100-point scale. A higher score means the model did a better job of putting relevant passages near the top of the first ten results.

The baseline small embedder and reranker scored 80.4 together. Keeping the baseline embedder and fine-tuning just the reranker brought that to 86.9. Tuning both gave us the best score, 89.1, and was the setup GoodMem recommended.

Small run evaluation
Baseline Original modelFine-tuned Trained on the customer’s library
The Δ column compares each row with the baseline small embedder alone (79.4).
Retrieval pipelinenDCG@10 band = 95% CIΔ nDCG@10R@10
GoodMem Embed SmallBaselineNo reranker
79.4, 95% confidence interval 78.4 to 80.4
Baseline66.4
GoodMem Embed SmallBaselineGoodMem Rerank SmallBaseline
80.4, 95% confidence interval 79.4 to 81.3
+0.9Below recommendation threshold65.5
GoodMem Embed SmallBaselineGoodMem Rerank SmallFine-tuned
86.9, 95% confidence interval 86.2 to 87.7
+7.5+6.5 to +8.672.8
GoodMem Embed SmallFine-tunedNo reranker
85.7, 95% confidence interval 85.0 to 86.4
+6.3+5.1 to +7.672.6
GoodMem Embed SmallFine-tunedGoodMem Rerank SmallBaseline
83.2, 95% confidence interval 82.4 to 84.0
+3.8+2.5 to +5.369.8
Scroll across the table to see all metrics.
Small run. Scores and 95% intervals on the console’s 100-point scale. Changes are relative to the first row. R@10 is recall at ten.

The two baseline medium models scored 75.8 together. GoodMem recommended keeping the baseline medium embedder and using the fine-tuned medium reranker. That pair scored 82.4 and lets you keep your existing embeddings if you already use that embedder. Tuning both models gave us the highest score, 84.8. We used that fully tuned pair in the Voyage comparison.

Medium run evaluation
Baseline Original modelFine-tuned Trained on the customer’s library
The Δ column compares each row with the baseline small embedder alone (64.9).
Retrieval pipelinenDCG@10 band = 95% CIΔ nDCG@10R@10
GoodMem Embed SmallBaselineNo reranker
64.9, 95% confidence interval 60.2 to 69.4
Baseline38.3
GoodMem Embed SmallBaselineGoodMem Rerank MediumBaseline
73.8, 95% confidence interval 69.5 to 77.9
+8.9+4.4 to +13.847.8
GoodMem Embed SmallBaselineGoodMem Rerank MediumFine-tuned
78.5, 95% confidence interval 74.3 to 82.4
+13.6+9.5 to +18.149.7
GoodMem Embed MediumBaselineNo reranker
72.9, 95% confidence interval 68.9 to 76.7
+8.0+2.1 to +14.344.4
GoodMem Embed MediumBaselineGoodMem Rerank MediumBaseline
75.8, 95% confidence interval 72.0 to 79.4
+10.9+4.5 to +17.748.9
GoodMem Embed MediumFine-tunedNo reranker
77.7, 95% confidence interval 73.8 to 81.3
+12.8+5.8 to +19.751.8
GoodMem Embed MediumFine-tunedGoodMem Rerank MediumBaseline
79.3, 95% confidence interval 75.8 to 82.5
+14.4+8.1 to +21.254.0
GoodMem Embed MediumFine-tunedGoodMem Rerank MediumFine-tuned
84.8, 95% confidence interval 81.7 to 87.6
+19.9+13.5 to +26.958.4
Scroll across the table to see all metrics.
Medium run. Scores and 95% intervals on the console’s 100-point scale. Changes are relative to the first row. R@10 is recall at ten.

The bands show 95% confidence intervals. The ranges for score changes account for testing several setups at once and treat closely related searches as one group.

How our models compared with Voyage

Once we knew how our fine-tuned models compared with their baselines, we wanted to see how they did against Voyage on the customer’s own searches. The customer supplied 200 queries from a year of activity. There were 50 short queries, 50 medium ones, and 100 longer ones.

The set spans frequent and obscure searches alike, from single terms and titles to scriptural citations and full questions. A few queries contain typos or non-Latin text. We had no hand in selecting or writing these queries, and none were included in training.

We ran each query against the customer’s entire collection, changing only the embedder and reranker between runs. We asked Anthropic’s Claude Fable 5.1 to grade the top ten passages on a relevance scale from 0 to 4. It used the same grading instructions throughout and couldn’t see which system had returned a passage. In all, it graded about 4,500 query-passage pairs.

Here we report NDCG@10 on its usual 0-to-1 scale. All three pairs ran the same 200 customer searches, so their scores can be compared directly.

Models NDCG@10 Δ vs. Voyage
Voyage 4 Large + Rerank 3 0.755 Baseline
Our fine-tuned small pair 0.708 −0.047
Our fine-tuned medium pair 0.760 +0.005

The medium pair ranked the results better on 99 queries, Voyage did better on 90, and they tied on 11. The estimated range for the score difference was −0.017 to +0.028. Since that range includes zero, we would describe the medium pair as matching Voyage on this customer’s searches.

That gave the customer a practical choice. They could run the medium pair on their own hardware and get about the same ranking quality as Voyage on their searches. If the cost of serving those searches mattered more, the small pair was faster and cheaper to run and reached about 94% of Voyage’s score.