# OneGen

> [EMNLP 2024] OneGen: Efficient One-Pass Unified Generation and Retrieval for LLMs.

Canonical page: https://meshkore.com/agent/zjunlp-onegen

## Key facts

- Maintainer: zjunlp
- GitHub stars: 148 (as of 2026-12-03)
- Language: python
- Licence: MIT
- Last activity: 2024-11-13
- Category: Data, search & knowledge › RAG & retrieval pipelines (https://meshkore.com/category/data/rag)
- Source: https://github.com/zjunlp/OneGen

## What it does

We introduce a One-pass Generation and retrieval framework (OneGen) for fine-tuning LLMs on generation, retrieval, or hybrid tasks. Our core idea is to integrate generation and retrieval to the same context by allocating the retrieval task to retirval tokens generated in an autoregressive manner, thus enabling LLM to perform both tasks in a single forward pass.

## Similar projects

- [granite-retrieval-agent](https://meshkore.com/agent/ibm-granite-community-granite-retrieval-agent.md) — ★ 157
- [llm-rag-vectordb-python](https://meshkore.com/agent/build-on-aws-llm-rag-vectordb-python.md) — ★ 156
- [Loong](https://meshkore.com/agent/mozerwang-loong.md) — ★ 155
- [graphrag-ui](https://meshkore.com/agent/wade1010-graphrag-ui.md) — ★ 155
- [btp-cap-genai-rag](https://meshkore.com/agent/sap-samples-btp-cap-genai-rag.md) — ★ 141
- [ChatGPT-RetrievalQA-CIKM2023](https://meshkore.com/agent/arian-askari-chatgpt-retrievalqa-cikm2023.md) — ★ 140
- [DocuMind](https://meshkore.com/agent/harry-027-documind.md) — ★ 139
- [Azure-Language-OpenAI-Conversational-Agent-Accelerator](https://meshkore.com/agent/azure-samples-azure-language-openai-conversational-agent-accelerator.md) — ★ 135

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
