Blog 5 December 2026

What a one-epoch fine-tune on a laptop buys

Our first domain model, artha-embed-indianfs-v1, lifts recall@10 from .583 to .698 on Indian financial services retrieval. How it was built, and where the numbers stop.

artha-embed-indianfs-v1 is our first domain model: a 271 M parameter text embedding model for retrieval over Indian financial services content. It is the text encoder of EmbeddingGemma-2, fine-tuned for one epoch, about 50 minutes, on one Apple M1 Pro.

On our benchmark it reaches .698 recall@10, against .583 for the model it started from. Over all questions that is level with Google's hosted gemini-embedding-2 (.695), at 768 dimensions instead of 3072.

Recall@10, all questions1,490 questions over 35,110 passages. Higher is better.
  • EmbeddingGemma-2 (base).583.583 768 dimensions
  • text-embedding-3-small.566.566 OpenAI, 1536 dimensions
  • gemini-embedding-2, 3072.695.695 Google, 3072 dimensions
  • gemini-embedding-2, 768.691.691 Google, 768 dimensions
  • artha-embed-indianfs-v1.698.698 Argot Labs, 768 dimensions

The tie is an average of two different results:

EnglishRecall@10, 1,223 questions
  • EmbeddingGemma-2 (base).581.581 768 dimensions
  • text-embedding-3-small.575.575 OpenAI, 1536 dimensions
  • gemini-embedding-2, 3072.674.674 Google, 3072 dimensions
  • artha-embed-indianfs-v1.663.663 Argot Labs, 768 dimensions
HindiRecall@10, 267 questions from 39 passages
  • EmbeddingGemma-2 (base).596.596 768 dimensions
  • text-embedding-3-small.528.528 OpenAI, 1536 dimensions
  • gemini-embedding-2, 3072.790.790 Google, 3072 dimensions
  • artha-embed-indianfs-v1.858.858 Argot Labs, 768 dimensions
model English (1,223) Hindi (267)
EmbeddingGemma-2 (base) .581 .596
text-embedding-3-small .575 .528
gemini-embedding-2, 3072 .674 .790
gemini-embedding-2, 768 .669 .790
this model .663 .858

On English it is about a point behind the hosted model, which is within noise. On Hindi it is about 7 points ahead, but the interval only just clears zero and the Hindi questions come from just 39 passages; see the intervals.

Read the numbers with these

  1. The questions, in training and in the benchmark, were written by a language model, not by users.
  2. All the passages come from one financial services provider's public websites, not named.
  3. The 1,490 benchmark questions come from only 222 passages, reworded several ways.
  4. The benchmark is not published.
  5. 178 benchmark questions (12 %) also occur in the training data. Removing them does not change the conclusions; see the overlap.

The data

Passages. The search corpus has 35,110 passages from one financial services provider's public websites. 22 % of passages are in Hindi, the rest in English. Median length is 130 tokens; 18 % are longer than the 256 tokens the model reads.

Questions. A language model read one passage at a time and wrote customer questions about it, copying the answer. A question was kept only if that answer really appeared in the passage. Some questions were written from two passages. Questions were then reworded as short keyword queries, abbreviations, typos and long rambling questions.

Pairs. 8,916 question–passage pairs, covering 2,880 passages: 8,471 for training and 445 held out to watch the loss. Only 2.8 % of the pairs have a Hindi question.

wording pairs
full sentence 4,714
long 1,342
typo 1,213
short 1,122
abbreviation 379
two passages 121
other 25

Split. Every page holding a benchmark answer was held out of training. None of the passages, or pages, that the benchmark scores was trained on.

Benchmark. 1,490 questions written from 222 passages: the original, then short, typo, long and (English only) abbreviated rewordings. 267 questions are in Hindi. The shortening step did not change Hindi text, so the 50 Hindi "short" questions are copies of the full question.

Training

setting value
start google/embeddinggemma-2, text inputs only
loss MultipleNegativesRankingLoss: a question's own passage is the positive, the other passages in its batch are the negatives
batching 8 pairs, no duplicates in a batch
steps 1,059 (one epoch)
learning rate 2e-5, warmup over the first 10 %
length 256 tokens
precision and device fp32, PyTorch on MPS, Apple M1 Pro with 32 GB
time 3,015 s
final loss 0.172 training, 0.182 held-out

Questions carried the prompt task: search result | query: . Passages were written as page title — section | text, with no prompt.

It is a plain recipe. There were no mined hard negatives and no Matryoshka loss.

Dropping the other towers

The base model also reads images and audio: 744.4 M parameters. Retrieval over text needs none of that, so we copied out the text encoder: 271.0 M parameters, 1.12 GB instead of 1.52 GB. On 500 passages and 100 queries the cosine similarity to the untrimmed model was at least 0.99999987, and every query returned the same ten passages.

Results

1,490 questions over 35,110 passages, exact cosine search. A question counts as found only if the passage it was written from is in the top k; for a two-passage question, either one. The same answer on a different page counts as a miss, which understates every model here.

Each model got the prompts meant for it: ours the query prompt; the base model (an 8-bit GGUF build) and gemini-embedding-2 a query prompt and a title: … | text: … passage prompt; text-embedding-3-small raw text, which scored better for it than adding prompts. The hosted models were run in late November and early December 2026.

model dims r@1 r@5 r@10 r@30 MRR@10
EmbeddingGemma-2 (base) 768 .243 .493 .583 .697 .346
OpenAI text-embedding-3-small 1536 .298 .486 .566 .692 .379
Google gemini-embedding-2 3072 .370 .617 .695 .805 .475
Google gemini-embedding-2 768 .363 .617 .691 .802 .467
artha-embed-indianfs-v1 768 .377 .619 .698 .797 .479

Differences in recall@10, with 95 % intervals. Rewordings of one question are not independent, so the paired bootstrap resamples the 222 source passages, not the 1,490 questions.

this model minus points interval reading
base model +11.5 +7.9 to +15.1 a real gain
text-embedding-3-small +13.2 +9.3 to +17.0 a real gain
gemini-embedding-2, 3072 +0.3 −3.3 to +3.9 a tie
gemini-embedding-2, 768 +0.7 −2.9 to +4.2 a tie

So overall the fine-tune does not beat the large hosted model. It matches it on this data with a quarter of the index (108 MB against 431 MB for 35,110 passages), on hardware you own. The hosted model finds slightly more at depth (r@30) and reads far longer inputs.

English and Hindi

this model minus English Hindi
base model +8.3 (+4.7 to +11.8) +26.2 (+16.3 to +36.8)
gemini-embedding-2, 3072 −1.1 (−5.2 to +3.0) +6.7 (+0.4 to +13.9)

Points of recall@10, with 95 % intervals. Hindi is where the fine-tune gained most, although few training pairs were Hindi. We do not know why. Leaving out the 50 copied questions, Hindi is .853 against .793 for the hosted model, and all questions together are .692 against .692.

English, by kind of question

model full sentence (261) short (283) abbreviation (87) typo (261) long (266) two passages (65)
EmbeddingGemma-2 (base) .709 .258 .621 .625 .647 .969
text-embedding-3-small .724 .247 .586 .694 .602 .800
gemini-embedding-2, 3072 .778 .322 .736 .785 .744 .969
gemini-embedding-2, 768 .785 .304 .736 .770 .748 .969
this model .762 .360 .724 .697 .759 .969

Short keyword queries are hard for every model. On English the hosted model is clearly better with typos; this model is ahead on short and long questions. These groups are small, so differences of a few points inside one column may be noise.

In Hindi, this model against the hosted one (3072): full sentence .865 and .797, typo .811 and .770, long .884 and .812. There are no real short or abbreviated Hindi questions.

Training and benchmark overlap

We held pages out of training, not question strings. Checking afterwards, 178 of the 1,490 benchmark questions occur word for word in the training pairs. Each was paired there with a passage on another page that also contains the answer, never with the passage the benchmark scores.

recall@10 all 1,490 without the 178 (1,312) only the 178
EmbeddingGemma-2 (base) .583 .611 .382
gemini-embedding-2, 3072 .695 .729 .444
this model .698 .727 .483

These questions are harder for every model, including ones that never saw our training data. Without them the gain over the base model is +11.7 points (interval +7.7 to +15.8), and the difference to gemini-embedding-2 is −0.15 points (−3.9 to +3.7). The conclusions stand. The next version should exclude question strings as well as pages, and check that each rewording differs from its original.

The prompt matters

given to the model recall@10
query prompt, passages as they are .698
no query prompt .630
query prompt, plus title: none | text: on passages .679

Put task: search result | query: on queries and nothing on passages. With sentence-transformers, that is model.encode(question, prompt_name="query"). Until 2026-12-04 the published configuration also set a passage prompt, so encode_document() applied it. If you built an index that way, encode it again.

Smaller vectors

The base model was trained so that the first part of a vector works on its own (Matryoshka). We did not add that loss in the fine-tune, so we measured what survives (fp16 build, truncate and re-normalise):

dimensions recall@10 index for 35,110 passages
768 .698 108 MB
512 .686 72 MB
256 .658 36 MB
128 .603 18 MB

Compressed builds

build weights file recall@10 mean cosine to full precision
full precision 1.12 GB .698 —
ONNX, int8 weights 408 MB .697 .9993
GGUF Q8_0 310 MB .697 .9996
MLX 8-bit 288 MB .696 .9998

What we rejected:

  • int8 that also quantises activations: cosine to full precision 0.947 at best. Quantise the weights only for this model family.
  • 4-bit: cosine 0.976 (GGUF Q4_K_M) and 0.85 (MLX), with many nearest neighbours changing.

To run the ONNX build on a small CPU machine, see the engine post.

Limits

  • Synthetic questions. Real search logs are messier; expect short and mistyped queries to suffer first.
  • One source. We have not measured how well it carries to other financial services providers, or to areas such as insurance and capital markets.
  • 256 tokens. Longer passages are cut off.
  • Only English and Hindi were looked at. Hindi rests on 39 passages and has no real short queries.
  • One scored passage per question (two for the two-passage ones). This measures finding a passage, not whether a set of passages is enough to answer.
  • The benchmark is closed, so these scores cannot be reproduced outside Argot Labs.

Licence: Apache 2.0, a derivative of google/embeddinggemma-2.