Guardado en:
Detalles Bibliográficos
Autores principales: Zhou, Weichao, Zhang, Jiaxin, Hasson, Hilaf, Singh, Anu, Li, Wenchao
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:https://arxiv.org/abs/2410.15262
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866909356741623808
author Zhou, Weichao
Zhang, Jiaxin
Hasson, Hilaf
Singh, Anu
Li, Wenchao
author_facet Zhou, Weichao
Zhang, Jiaxin
Hasson, Hilaf
Singh, Anu
Li, Wenchao
contents In retrieval-augmented systems, context ranking techniques are commonly employed to reorder the retrieved contexts based on their relevance to a user query. A standard approach is to measure this relevance through the similarity between contexts and queries in the embedding space. However, such similarity often fails to capture the relevance. Alternatively, large language models (LLMs) have been used for ranking contexts. However, they can encounter scalability issues when the number of candidate contexts grows and the context window sizes of the LLMs remain constrained. Additionally, these approaches require fine-tuning LLMs with domain-specific data. In this work, we introduce a scalable ranking framework that combines embedding similarity and LLM capabilities without requiring LLM fine-tuning. Our framework uses a pre-trained LLM to hypothesize the user query based on the retrieved contexts and ranks the context based on the similarity between the hypothesized queries and the user query. Our framework is efficient at inference time and is compatible with many other retrieval and ranking techniques. Experimental results show that our method improves the ranking performance across multiple benchmarks. The complete code and data are available at https://github.com/zwc662/hyqe
format Preprint
id arxiv_https___arxiv_org_abs_2410_15262
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle HyQE: Ranking Contexts with Hypothetical Query Embeddings
Zhou, Weichao
Zhang, Jiaxin
Hasson, Hilaf
Singh, Anu
Li, Wenchao
Information Retrieval
Artificial Intelligence
In retrieval-augmented systems, context ranking techniques are commonly employed to reorder the retrieved contexts based on their relevance to a user query. A standard approach is to measure this relevance through the similarity between contexts and queries in the embedding space. However, such similarity often fails to capture the relevance. Alternatively, large language models (LLMs) have been used for ranking contexts. However, they can encounter scalability issues when the number of candidate contexts grows and the context window sizes of the LLMs remain constrained. Additionally, these approaches require fine-tuning LLMs with domain-specific data. In this work, we introduce a scalable ranking framework that combines embedding similarity and LLM capabilities without requiring LLM fine-tuning. Our framework uses a pre-trained LLM to hypothesize the user query based on the retrieved contexts and ranks the context based on the similarity between the hypothesized queries and the user query. Our framework is efficient at inference time and is compatible with many other retrieval and ranking techniques. Experimental results show that our method improves the ranking performance across multiple benchmarks. The complete code and data are available at https://github.com/zwc662/hyqe
title HyQE: Ranking Contexts with Hypothetical Query Embeddings
topic Information Retrieval
Artificial Intelligence
url https://arxiv.org/abs/2410.15262