计算机科学
重新使用
隐藏物
延迟(音频)
召回
语言模型
语义匹配
情报检索
匹配(统计)
查询语言
自然语言处理
人工智能
精确性和召回率
语义学(计算机科学)
CPU缓存
文献检索
查询扩展
建筑
系统体系结构
模式匹配
作者
Jianxin Yan,Wangze Ni,Lei Chen,Xuemin Lin,Peng Cheng,Zhan Qin,Kui Ren
标识
DOI:10.14778/3750601.3750679
摘要
Semantic caching significantly reduces computational costs and improves efficiency by storing and reusing large language model (LLM) responses. However, existing systems rely primarily on matching individual queries, lacking awareness of multi-turn dialogue contexts, which leads to incorrect cache hits when similar queries appear in different conversational settings. This demonstration introduces ContextCache, a context-aware semantic caching system for multi-turn dialogues. ContextCache employs a two-stage retrieval architecture that first executes vector-based retrieval on the current query to identify potential matches and then integrates current and historical dialogue representations through self-attention mechanisms for precise contextual matching. Evaluation of real-world conversations shows that ContextCache improves precision and recall compared to existing methods. Additionally, cached responses exhibit approximately 10 times lower latency than direct LLM invocation, enabling significant computational cost reductions for LLM conversational applications.
科研通智能强力驱动
Strongly Powered by AbleSci AI