ML Engineer

Brayns

Stockholms kommun

On-site

SEK 900,000 - 1,300,000

Full time

14 days+
Application generator

Stand out for this role — generate a tailored resume and cover letter in about a minute.

Get past ATS filters

Job summary

Brayns in Stockholm is building next-generation retrieval and RAG systems. This role focuses on the model layer, not product features, working on long-context reasoning, prompt and pipeline optimization, and squeezing more from our models.

You will design and evaluate retrieval, embeddings, and inference strategies, using DSPy and related tools to push performance while keeping latency and costs in check. On-site in Stockholm.

Qualifications

  • A model-layer specialist who loves retrieval quality, eval design, and prompt optimization.
  • Experience building non-trivial RAG systems with strong opinions on chunking, embeddings, and retrieval strategies.
  • Hands-on experience with long-context LLMs and understanding their behavior in practice.
  • Proven track record of optimizing LLM inference for latency, throughput, and cost.

Responsibilities

  • Design, build, and improve our RAG systems end-to-end — retrieval, ranking, context construction, evaluation.
  • Work with long-context LLMs and figure out how to use that context well rather than just dumping tokens into it.
  • Use DSPy (and similar tools) to systematically optimize prompts, pipelines, and behavior — instead of hand-tuning by feel.
  • Optimize LLM inference — latency, throughput, cost, batching, caching, quantization where relevant.
  • Run experiments rigorously: build evals, measure honestly, and let the numbers drive decisions.

Skills

RAG systems
DSPy
Long-context LLMs
Prompt optimization
LLM inference optimization
Retrieval quality
Evaluation design
Model-layer focus

Tools

DSPy

Job description

We are a small team teaching machines to run compliance work end-to-end. Brayns reads how operators actually work — documents, case history, the judgment of senior people — and turns that structure into agents that execute continuously, traceably, at scale.

The role

We’re building what we think will be one of the next unicorns out of Stockholm, and the quality of our ML work is one of the things that has to be world-class for that to happen.

This role is for someone who lives and breathes the model layer — not a product engineer who happens to work with LLMs. You’ll spend your time on retrieval, long-context reasoning, prompt and pipeline optimization, and squeezing more out of the models we run. We want someone who is genuinely curious about how these systems work under the hood and who keeps up with the field as it moves.

This role is onsite in Stockholm and open only to candidates who already live in Stockholm or are ready to relocate before starting. We will not be considering remote applicants.

What you will do
  • Design, build, and improve our RAG systems end-to-end — retrieval, ranking, context construction, evaluation.
  • Work with long-context LLMs and figure out how to use that context well rather than just dumping tokens into it.
  • Use DSPy (and similar tools) to systematically optimize prompts, pipelines, and behavior — instead of hand-tuning by feel.
  • Optimize LLM inference — latency, throughput, cost, batching, caching, quantization where relevant.
  • Run experiments rigorously: build evals, measure honestly, and let the numbers drive decisions.
What we look for
  • A model-layer person, not a product person. You’re happiest deep in retrieval quality, eval design, prompt optimization, and inference internals. Shipping product features is not where you want to spend most of your time — and that’s exactly what we want from this role.
  • RAG expertise. You’ve built non-trivial RAG systems and have strong opinions about chunking, embeddings, retrieval strategies, rerankers, and evaluation. You know where naive RAG breaks and how to fix it.
  • DSPy experience. You’ve actually used DSPy in real work — not just read the docs — and understand when it’s the right tool and when it isn’t.
  • Long-context LLMs. You’ve worked with long-context models in practice and understand how they actually behave — attention degradation, position effects, retrieval-vs-context tradeoffs, and what tends to work versus what merely sounds good in a paper.
  • LLM inference optimization. You’ve worked on making LLMs faster, cheaper, or both — batching, caching, speculative decoding, quantization, serving stack choices, or similar.
Nice to have
  • Research sensibility. A research background is a plus. We like people who read papers, can tell the difference between hype and signal, and can take an idea from a paper and turn it into something that works for us.

Don't check every box? Apply anyway. We weigh trajectory and taste over a perfect résumé.

Get your free, confidential resume review.
or drag and drop your file here.
Similar jobs

Similar jobs worth comparing

Applied AI Engineer
Applied AI Engineer

Nooga • Stockholms kommun

Hybrid
SEK 655,000 - 874,000
Senior Python Developer
Senior Python Developer

Brayns • Stockholms kommun

On-site
SEK 900,000 - 1,300,000
Software engineer
Software engineer

Cofactor • Stockholms kommun

On-site
SEK 850,000 - 1,200,000
Agent Engineer
Agent Engineer

Brayns • Stockholms kommun

On-site
SEK 700,000 - 950,000
Front-End Developer Engineering • Stockholm • • On-site View role →
Front-End Developer Engineering • Stockholm • • On-site View role →

Brayns • Stockholms kommun

On-site
SEK 700,000 - 900,000
ML Engineer — Retrieval & Long-Context RAG Systems
ML Engineer — Retrieval & Long-Context RAG Systems

Brayns • Stockholms kommun

On-site
SEK 900,000 - 1,300,000
Senior Backend Engineer
Senior Backend Engineer

Nooga • Stockholms kommun

Hybrid
ML engineer - Maps Data Systems
ML engineer - Maps Data Systems

Functional Software Stockholm AB • Malmö kommun

Hybrid
SEK 600,000 - 900,000
Machine learning Engineer
Machine learning Engineer

Mindified AB • Malmö

On-site
SEK 437,000 - 657,000
Production ML Research Engineer - Post-Training & CodeGen
Production ML Research Engineer - Post-Training & CodeGen

Lovable • Stockholms kommun

On-site