arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.18819cs.AIcs.IRcs.LG
收藏

LLM辅助的向量相似性搜索

LLM-assisted Vector Similarity Search

Grab(Grab公司)

Md Riyadh, Muqi Li, Felix Haryanto Lie, Jia Long Loh, Haotian Mi, Sayam Bohra

AI总结:

本文提出一种将向量相似性搜索与LLM相结合的两步混合检索方法,先用向量搜索筛选候选,再用LLM进行上下文感知排序,以提升复杂查询的搜索准确性,同时保持效率。

摘要:

随着数据检索需求日益复杂,传统搜索方法在处理细微且概念性的查询时往往力不从心。向量相似性搜索已成为一种有前景的技术,能够高效地找到语义相似的信息。然而,在处理具有上下文细微差别的复杂查询时,其效果会有所下降。本文探索了一种将向量相似性搜索与大型语言模型(LLMs)相结合的混合方法,以提高搜索的准确性和相关性。所提出的两步解决方案首先使用向量相似性搜索筛选出潜在匹配项,然后由LLM对结果进行上下文感知的排序。在结构化数据集上的实验表明,虽然向量相似性搜索单独用于简单查询时表现良好,但LLM辅助的方法在处理涉及约束、否定或概念性要求的复杂查询时表现更优。通过利用LLM的自然语言理解能力,该方法在不牺牲效率的前提下提高了复杂任务搜索结果的质量。我们还讨论了实际应用场景,并提出了未来研究方向,以完善该技术并将其扩展到多样化的数据集和用例中。

英文摘要:

As data retrieval demands become increasingly complex, traditional search methods often fall short in addressing nuanced and conceptual queries. Vector similarity search has emerged as a promising technique for finding semantically similar information efficiently. However, its effectiveness diminishes when handling intricate queries with contextual nuances. This paper explores a hybrid approach combining vector similarity search with Large Language Models (LLMs) to enhance search accuracy and relevance. The proposed two-step solution first employs vector similarity search to shortlist potential matches, followed by an LLM for context-aware ranking of the results. Experiments on structured datasets demonstrate that while vector similarity search alone performs well for straightforward queries, the LLM-assisted approach excels in processing complex queries involving constraints, negations, or conceptual requirements. By leveraging the natural language understanding capabilities of LLMs, this method improves the accuracy of search results for complex tasks without sacrificing efficiency. We also discuss real-world applications and propose directions for future research to refine and scale this technique for diverse datasets and use cases. Original article: https://engineering.grab.com/llm-assisted-vector-similarity-search

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑