Is the "cache" referenced in a KB "cache hit," bro...
# 🤝help
w
When, in the console, a KB query reports a "cache hit", or the cost breakdown indicates "cache savings," is the cache being referenced the user's local browser cache? Or is it a bot-specific cache? And if the latter, how does one clear that cache? I looked in the docs but didn't see info that addresses this specifically.
n
there was a recent video i saw from botpress where they explained the cache savings number
let me find it

https://youtu.be/rUf23qvGpKM?si=ume84j-_0Gzo4wXT&t=620

w
Thanks @nice-salesclerk-98217 ! I listened to the complete video after the cue point - it confirms that the AI cache is on the Botpress side (not the browser side). -- It did not mention how to clear that cache, so if anyone has information about how to do so, I'd very much like to hear it.
b
hey this is a great question - it's indeed a Botpress cache per user
but we don't currently let you flush the cache. can I know more about the reason you'd like to do this?
w
@bumpy-butcher-41910 I'd like to be able to flush the cache ad hoc because the KB agent and data sources in my main bot are still being actively tuned, and I've run into several cases where a cached KB query response does not reflect the latest tuning and is incorrect or suboptimal. Being able to flush or clear the bot cache after a KB data source or agent update would ameliorate this issue, I think
b
I see & well noted, thanks for this
6 Views