Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一种可行的缓存策略优化 #7

Open
wslyyy opened this issue Apr 28, 2023 · 1 comment
Open

一种可行的缓存策略优化 #7

wslyyy opened this issue Apr 28, 2023 · 1 comment

Comments

@wslyyy
Copy link

wslyyy commented Apr 28, 2023

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

@xqbumu
Copy link
Collaborator

xqbumu commented Apr 29, 2023

这个方案也不错,欢迎PR

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants