Mint the training data your retriever never had

    Generate verified (question, passage) pairs from your own corpus in 324 languages, or across languages, and fine-tune retrievers and rerankers on data that matches your domain.

    ML & data teamsRAG platformsSearch infrastructure
    Query and passage pairs generated for retrieval training
    0.701
    QUESTIONS THAT FIND THEIR OWN PASSAGE
    324
    PASSAGE LANGUAGES
    77%
    CROSS-LINGUAL QUESTIONS USABLE
    / The problem

    Why this breaks today

    Off-the-shelf embedding models are trained mostly on English web text. Point one at your domain corpus (legal filings, medical guidance, product docs, Yorùbá news) and recall drops in ways no amount of prompt engineering fixes.

    The fix is fine-tuning, and fine-tuning needs (question, passage) pairs. Nobody has those for their own corpus, and in most languages there are none to borrow.

    / How it works

    The pipeline, step by step

    01

    Label the corpus by language

    lid-lite-608 tags every document on CPU and sets aside numbers, URLs and code (zxx_Zxxx). The language label tells the generator what it is reading, and keeps your evaluation splits honest per language.

    lid-lite-608
    02

    Generate candidate questions

    MIST-QG-1.1 turns each passage into the questions it answers, in the passage’s own language, or in English or French for cross-lingual search. Ask for more than you need: only part will survive the next step.

    MIST-QG-1.1
    03

    Keep only what survives round-trip retrieval

    Embed each generated question and check that it retrieves its own source passage out of [source + distractors]. Discard the rest. MIST-QG-1.1’s questions find their own passage more often than any model it was tested against (R@1 0.701).

    04

    Fine-tune, then measure

    Train your embedder or cross-encoder on the surviving pairs and evaluate on a held-out slice of your own corpus, not on a public benchmark that looks nothing like your data. Mix real user queries back in after launch.

    / The code

    Running in about ten lines

    The Olaverse SDK wraps the models with sane defaults. If you would rather not add a dependency, the second tab is the same pipeline in plain transformers.

    $pip install requests sentence-transformers
    mint_pairs.py
    import os, requests
    from sentence_transformers import SentenceTransformer, util
    
    API = "https://api.olaverselab.com/v1"
    HEADERS = {"Authorization": f"Bearer {os.environ['OLAVERSE_KEY']}"}
    embedder = SentenceTransformer("Qwen/Qwen3-Embedding-0.6B")
    
    def survives_round_trip(question, source, distractors):
        pool = [source] + distractors
        q = embedder.encode(question, convert_to_tensor=True)
        p = embedder.encode(pool, convert_to_tensor=True)
        return int(util.cos_sim(q, p).argmax()) == 0   # the source ranks first
    
    pairs = []
    for batch in chunks(corpus, 64):                  # up to 64 passages per call
        r = requests.post(f"{API}/questions/generate/batch", headers=HEADERS,
                          json={"passages": [d["text"] for d in batch], "n": 5}).json()
        for doc, qs in zip(batch, r["results"]):      # each passage's language is detected
            for q in qs:
                if survives_round_trip(q, doc["text"], sample_distractors(corpus, doc)):
                    pairs.append((q, doc["text"]))
    
    # pairs → fine-tune your embedder or cross-encoder on your own domain

    Language coverage

    / QUESTION LANGUAGES

    Passages can be in any of 324 languages, and questions in the passage’s own language. For cross-lingual retrieval, ask for questions in one of these:

    Afrikaans
    af · afr
    Amharic
    am · amh
    Arabic
    ar · ara
    Bengali
    bn · ben
    Chinese
    zh · zho
    Dutch
    nl · nld
    English
    en · eng
    French
    fr · fra
    German
    de · deu
    Hausa
    ha · hau
    Hindi
    hi · hin
    Igbo
    ig · ibo
    Indonesian
    id · ind
    Italian
    it · ita
    Japanese
    ja · jpn
    Korean
    ko · kor
    Persian
    fa · fas
    Polish
    pl · pol
    Portuguese
    pt · por
    Russian
    ru · rus
    Somali
    so · som
    Spanish
    es · spa
    Swahili
    sw · swa
    Tamil
    ta · tam
    Telugu
    te · tel
    Thai
    th · tha
    Turkish
    tr · tur
    Ukrainian
    uk · ukr
    Urdu
    ur · urd
    Vietnamese
    vi · vie
    Yorùbá
    yo · yor
    Zulu
    zu · zul

    Language ID covers 608 languages, so every document gets a label first, including the ones you choose to skip.

    / This is you if
    • Your RAG system retrieves the wrong passages and you have run out of prompt-level fixes.
    • Your corpus is domain-specific, non-English, or both.
    • You have engineers who can fine-tune, and no labelled retrieval data to fine-tune on.

    Every figure on this page comes from the published model cards. Download the weights and check us.

    Want this on your data?

    The weights are open, so you can build it yourself this afternoon. If you would rather we tuned it to your domain, evaluated it properly, and handed it over, tell us what you are working on.