12 comments

  • stingraycharles4 hours ago
    This 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.<p>This seems to be coming from the “we must make ElasticSearch AI-compatible” department more than anything.
    • clintonb4 hours ago
      If you already have Elasticsearch, it makes sense to continue utilizing it.<p>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.
      • appplication2 hours ago
        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&#x2F;GB scale workloads.
        • infinite_spin2 hours ago
          that would be a pretty frail architecture too, I think I recall ES even saying not to rely on it for data persistence. Every time I&#x27;ve worked with ES it was always backed by some other database used as a source of truth.
          • sandeepkd55 minutes ago
            This is a important bit of information which either gets lost or ignored for convenience at times. Other side of it is the fact that this open up the door to keep two data stores in sync which is a much bigger battle for a lot of small companies or teams
    • gchamonlive4 hours ago
      ElasticSearch is fine. If your dataset isn&#x27;t too big you aren&#x27;t going to hit shard and memory limits and if you do chances are you are already in a large enough organisation that you&#x27;ll have the manpower to do the required maintenance. It&#x27;s not rocket science.<p>&gt; This seems to be coming from the “we must make ElasticSearch AI-compatible” department more than anything.<p>I don&#x27;t see the problem in that. It&#x27;d be great to have agentic capabilities embedded into Kibana and ES as long as it&#x27;s not user hostile.
    • jakevoytko4 hours ago
      Nah, &quot;Any other vector DB&quot; starts to fall apart once you need stuff like scripted scoring like OP uses. Then it starts to be a question of, &quot;do you need ANN for performance?&quot; 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.<p>Maintaining Elasticsearch isn&#x27;t free, but picking an underpowered db and having to port to the right one is also quite time consuming.
      • infinite_spin2 hours ago
        it&#x27;s also an odd situation to say a tabular database can replace a document store .. sure, it can, but that&#x27;s not good practice from my point of view<p>also, I&#x27;ve run ES on an old laptop and it worked really well, so the cost of it can be pretty low if you&#x27;re still in development
    • Catloafdev1 hour ago
      I agree for casual usage, but this seems targeted towards enterprise setups, which makes much more sense to use something like ElasticSearch if you&#x27;re already in the Amazon cloud, and especially if using the advanced features it provides like they are.
    • 0xbadcafebee3 hours ago
      The design they talk about includes 3 different types of memory. They store those kinds of memory separately, so that if there&#x27;s 10 users, all 10 access memories that are more general (&quot;what bulbs work with this kind of light fixture&quot;), and user-specific memories are segregated (&quot;sarah has three lightbulbs&quot;). The different memory types are ranked together leading to a different result. So this is a novel design and use of ElasticSearch-specific features
    • xor-eax-edx2 hours ago
      Would be interesting if one can replace ElasticSearch with something like Typesense here
    • haeseong4 hours ago
      [dead]
  • BiraIgnacio37 minutes ago
    TIL<p>- Hybrid recall + reranker: Two searches merged, then re-scored for best matches<p>- Supersession: Old facts get hidden, new ones take their place<p>- Decay: Recent or often‑used memories get a score boost<p>- DLS: Each user only sees their own documents
  • itissid4 hours ago
    I have a request: can this text be even more AI generated?
    • Cilvic1 hour ago
      I wonder if one clear sign is so much custom language that makes me wonder &quot;is this lingo used in that field&quot; but more often than not it&#x27;s just the LLM trying to sound hyper-professional?
  • 0xbadcafebee3 hours ago
    Summary of the article (<a href="https:&#x2F;&#x2F;pastebin.com&#x2F;aawJfrF6" rel="nofollow">https:&#x2F;&#x2F;pastebin.com&#x2F;aawJfrF6</a>) since the original one is like reading an academic paper filtered through an LLM that hates human readers.<p>It seems like a cool approach. Don&#x27;t know if it&#x27;s novel but it&#x27;s much smarter than &quot;shove markdown files into directories&quot;.
    • SwellJoe21 minutes ago
      &gt; but it&#x27;s much smarter than &quot;shove markdown files into directories&quot;.<p>Is it, though? I mean, is there evidence &quot;bunch of markdown files&quot; is bad while &quot;database the model has to be instructed how to use&quot; is good? `rg` is fast as hell. Markdown is the LLMs native tongue. It does require maintenance of the Markdown files to keep them current, but maybe explicit management is fine. The models can do the grunt work.<p>BMDF (Bunch of Markdown Files) can be checked into the git repo, they travel to any developer on the project without any setup or special auth, any agent and any model can read them with no special tools to install, and humans can easily poke around and read them, too. And, they can be part of the PR review process, documenting the code and intentions.<p>I can&#x27;t come up with good arguments for why a database or search index would be better than documentation in Markddown for any of my projects.
  • voidUpdate3 hours ago
    For someone who isn&#x27;t super familiar, what is &quot;R@10&quot;, and is 0.89 good? It&#x27;s impossible to google for
    • Hexcles3 hours ago
      89% chance the thing you want is among the 10 items returned by the system
      • voidUpdate3 hours ago
        So over 10% of the time, it fails? That&#x27;s not a great search engine
        • schmookeeg2 hours ago
          It&#x27;s sort of the whole tension when you query vectorized data&#x2F;embeddings -- you need to balance accuracy and recall against the performance you need.<p>It took me a while to wrap my head around the two terms since they seem similar -- but Accuracy is basically &quot;did i get mostly good results&quot; and Recall is &quot;did I get most of the good results&quot; and they&#x27;re subtly different. :)<p>Those two terms, though, will unlock as deep a rabbit-hole as you&#x27;d like on the subject.
    • esafak2 hours ago
      <a href="https:&#x2F;&#x2F;www.evidentlyai.com&#x2F;ranking-metrics&#x2F;precision-recall-at-k#recall-at-k">https:&#x2F;&#x2F;www.evidentlyai.com&#x2F;ranking-metrics&#x2F;precision-recall...</a><p>&quot;Good&quot; is subjective.
  • verdverm26 minutes ago
    I&#x27;m using Typesense to power my take on a md kb, highly recommend this option which positions itself against Elasticsearch and Algolia. Combines vector with bm25 and all the extras you get from a trad search tool like Algolia.
  • koinedad2 hours ago
    I think this is cool and helpful but my biggest complaint is the writing style and word choice just scream LLM
  • reactordev4 hours ago
    I built one into my agent using sqlite…
    • itissid4 hours ago
      Especially for indie users&#x2F;devs and smaller teams. I built a part of this(the retriever) in &lt; 4 hours <a href="https:&#x2F;&#x2F;github.com&#x2F;itissid&#x2F;wiki" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;itissid&#x2F;wiki</a> for replacing deepwiki.<p>I think the challenge is to <i>teach</i> how ranking works to people more effectively so that they can build it for themselves and host them on their own.<p>Like the other day someone who has worked in search explained to me why you would care about using learning-to-rank(LTR) technique to train your own feature vector weights on your data. My understanding is that weighted features work better(retreival wise) on textual data than plain BM-25 and vector embedding db indexing of text chunks of your data with minimal preprocessing. So if you have lots of conversations you can create a ton of features(like attributes of a conversation) from it and ones that matter more will rank higher. And you can use a regularization(like L1) to kill unimportant ones.<p>[EDIT]: IIUC, I think LTR is important because you likely want different features to matter more for different parts of your documents, e.g. what matters for codebase documentation is different from your personal journal.
      • reactordev4 hours ago
        I don&#x27;t treat memory like RAG. That&#x27;s the key. I only track decisions, actions, and outcomes.
        • itissid4 hours ago
          Ah so you extract decisions, actions and outcomes and you index and search over them?
          • reactordev3 hours ago
            Yeah, after I tokenize them and embed them into vector form. Then it’s a simple cosine distance.<p>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.
  • dominotw1 hour ago
    is there any proof that all these shenanigans impove agent performance
    • ozim20 minutes ago
      Cursor and PI harness are the proof.
  • tuo-lei3 hours ago
    so the 11% miss rate - do users actually notice when the agent drops a memory? like if someone already said they tried X and the agent suggests it again.
  • winterissnowing4 hours ago
    [flagged]