For someone who isn't super familiar, what is "R@10", and is 0.89 good? It's impossible to google for
89% chance the thing you want is among the 10 items returned by the system
We built a persistent agent memory layer on Elasticsearch with 0.89 recall
21–30 of 55 posts
Re: We built a persistent agent memory layer on Elasticsearch with 0.89 recall
#22Earlier quoted context omitted.
I don't treat memory like RAG. That's the key. I only track decisions, actions, and outcomes.
Ah so you extract decisions, actions and outcomes and you index and search over them?
The point about memory is sometimes you remember great detail, sometimes you only remember that the memory exists, so having a good tool loop to attempt to recall and try permutations is good.
Re: We built a persistent agent memory layer on Elasticsearch with 0.89 recall
#23This is such a basic thing nowadays, and ElasticSearch is massive overkill for it. Something like SQLite or LanceDB or basically any vector database is much more appropriate. This seems to be coming from the “we must make ElasticSearch AI-compatible” department more than anything.
If you already have Elasticsearch, it makes sense to continue utilizing it. Saying, “just use SQLite” completely dismisses the idea that this is a _shared_ memory across teams. The ability to easily connect to the remote service and have everything “just work” pays dividends when you have dozens or hundreds of users.
Re: We built a persistent agent memory layer on Elasticsearch with 0.89 recall
#24Earlier quoted context omitted.
89% chance the thing you want is among the 10 items returned by the system
So over 10% of the time, it fails? That's not a great search engine
It took me a while to wrap my head around the two terms since they seem similar -- but Accuracy is basically "did i get mostly good results" and Recall is "did I get most of the good results" and they're subtly different. :)
Those two terms, though, will unlock as deep a rabbit-hole as you'd like on the subject.
Re: We built a persistent agent memory layer on Elasticsearch with 0.89 recall
#25This is such a basic thing nowadays, and ElasticSearch is massive overkill for it. Something like SQLite or LanceDB or basically any vector database is much more appropriate. This seems to be coming from the “we must make ElasticSearch AI-compatible” department more than anything.
Re: We built a persistent agent memory layer on Elasticsearch with 0.89 recall
#26Earlier quoted context omitted.
If you already have Elasticsearch, it makes sense to continue utilizing it. Saying, “just use SQLite” completely dismisses the idea that this is a _shared_ memory across teams. The ability to easily connect to the remote service and have everything “just work” pays dividends when you have dozens or hundreds of users.
I’m literally laughing at the root comment’s idea of proposing we replace ES with SQLite and imagining how that architecture review would go. Not everyone is doing MB/GB scale workloads.
Re: We built a persistent agent memory layer on Elasticsearch with 0.89 recall
#27This is such a basic thing nowadays, and ElasticSearch is massive overkill for it. Something like SQLite or LanceDB or basically any vector database is much more appropriate. This seems to be coming from the “we must make ElasticSearch AI-compatible” department more than anything.
Nah, "Any other vector DB" starts to fall apart once you need stuff like scripted scoring like OP uses. Then it starts to be a question of, "do you need ANN for performance?" since SQLite only does brute-force vector scoring. And granted, brute-force is performant for far more vectors than most people give it credit for, but it definitely hits a wall well below 1 million if you want it to have webpage-type latency. M…
also, I've run ES on an old laptop and it worked really well, so the cost of it can be pretty low if you're still in development
Re: We built a persistent agent memory layer on Elasticsearch with 0.89 recall
#28Re: We built a persistent agent memory layer on Elasticsearch with 0.89 recall
#29For someone who isn't super familiar, what is "R@10", and is 0.89 good? It's impossible to google for
"Good" is subjective.
Re: We built a persistent agent memory layer on Elasticsearch with 0.89 recall
#30This is such a basic thing nowadays, and ElasticSearch is massive overkill for it. Something like SQLite or LanceDB or basically any vector database is much more appropriate. This seems to be coming from the “we must make ElasticSearch AI-compatible” department more than anything.