Feishu-Vector-Knowledge-Management icon indicating copy to clipboard operation
Feishu-Vector-Knowledge-Management copied to clipboard

一种可行的缓存策略优化

Open wslyyy opened this issue 2 years ago • 1 comments

看项目是精准匹配的缓存,可以尝试另一种模式,Qdrant加一个QA缓存collection,可以对比问题与缓存问题的相似度,设定一个阈值,高于阈值命中。类似https://github.com/wslyyy/LinguaDB/blob/main/storage/storage.go https://github.com/wslyyy/LinguaDB/blob/main/lingua/lingua.go

wslyyy avatar Apr 28 '23 05:04 wslyyy

这个方案也不错,欢迎PR

看项目是精准匹配的缓存,可以尝试另一种模式,Qdrant加一个QA缓存collection,可以对比问题与缓存问题的相似度,设定一个阈值,高于阈值命中。类似https://github.com/wslyyy/LinguaDB/blob/main/storage/storage.go https://github.com/wslyyy/LinguaDB/blob/main/lingua/lingua.go

xqbumu avatar Apr 29 '23 10:04 xqbumu