arXiv:2609.38099v1 Announce Type: cross Abstract: Turning decoder-only large language models (LLMs) into strong dense retrievers typically requires some form of retriever training. In this paper, we ask whether LLMs can instead be prompted to produce effective representations for dense retrieval given only a few in-context examples. To answer this, we introduce RICE (Representations from In-Context Examples), a simple "training-free" approach that extracts high-quality dense representations from LLMs. To do so, RICE conditions the LLM on examples that provide a shared context for query and document encoding. Our results demonstrate that RICE embeddings can substantially improve the accuracy of prompt-based LLM embeddings, establishing it as a simple method to build LLM-based dense retrievers that do not require training. We release our code at https://github.com/nourj98/RICE.
Effective Dense Retrieval using Only In-Context Examples
Researchers introduced RICE (Representations from In-Context Examples), a training-free method that extracts high-quality dense representations from decoder-only large language models by conditioning the model on a few in-context examples that provide shared context for query and document encoding. According to the arXiv paper 2609.38099v1, RICE embeddings substantially improve the accuracy of prompt-based LLM embeddings, offering a way to build LLM-based dense retrievers without retriever training. The code is released at https://github.com/nourj98/RICE.
Run your AI side-project on zahid.host
EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.