I reacted with 👀 to @aaxsh18’s post about improving Claude Code retrieval. The reaction alone does not establish that I endorse the quoted claim.
I said, “This is exactly how I feel,” in a reply about @changhiskhan’s post, and linked to an interview with @BEBischof and @changhiskhan. I was expressing agreement, not claiming to have made or implemented the ideas in the interview description.
I describe an LLM workflow where the LLM decides to rewrite query as traditional search, Grep, regex and expand the hell out of keywords based on semantica.
I do not think there is a universally optimal retrieval order: the order of operations very much depends on the goal and sometimes a different path is optimal.
- I note that Sometimes (Often) you want to do hybrid search.
For genuinely exploratory work, I sometimes want to to show a model interleaved results and have it do multiple rounds of search if it’s truly exploratory.
I recommended @bclavie’s primer, saying “a good starting point is @bclavie ‘s primer” for people wondering how ModernBert fits into RAG.
I noted that the primer covers encoders, including: “He talks about the various kinds of encoders”.
I noted the accompanying materials: “Notes, slides and talk in the post”.
I said, “You can use it as a cross-encoder as well.” I also urged people to slow down and watch the talk, saying it was worth it.
I responded emphatically to people saying RAG was dead: “Eat it.”
I expressed enthusiasm about Mixedbread Search because @bclavie was involved: “If @bclavie is involved this means you must pay attention 👀”.
I shared an image from @svonava reminding people not to rely solely on semantic search for many LLM based applications.
I also praised a slide illustrating the limitations of relying only on text-only embeddings for retrieval.
I shared @BEBischof’s advice to try different ways to make your search results good rather than have seven meetings with VectorDB vendors.
I argue that finding things often calls for multiple vector representations, in addition to keyword search, rather than just one embedding per document.
I use the idea that “the map is not the territory” to explain that a thing can have many representations, and each representation is useful for a different purpose.
By analogy with the method of Loci and memory palaces, I explain that if you build associations to a concept you are more likely to retrieve it; for humans, physical places or loci tend to be the most powerful association.
I use art search to illustrate why keyword search or one semantic representation can be insufficient: people may want to search art by feelings, moods, styles, or other dimensions.
I said, “The search engine is not perfect! But I really like the educational value of it.”
Together, these ideas point toward retrieval systems that combine complementary representations and search approaches rather than treating a single embedding as a complete model of an item.
I favor improving search by working with the retrieval system and process already in place, rather than reaching first for new tools. Across my posts, I’ve emphasized query expansion, domain-specific customization, and learning from people with deep search experience as ways to make retrieval work better for RAG.
I recommended keeping existing search infrastructure, not buying new tools, and making search better with query expansion: “Keep your search infra the same, don’t buy new tools and make it better with query expansion”.
I called this practical approach deserving of the “Pragmatism award 🥇 😍”.
I agreed that search and RAG infrastructure often will not achieve desired results out of the box without customization for a particular domain: “how most search / RAG infra will not achieve desired results oob without customization for your domain”.
I observed teams “churning through many vector DBs instead of investing in the right process,” which reinforced my emphasis on process over repeatedly changing databases.
I argued that most RAG problems are caused by poor retrieval: “Most issues with RAG are poor retrieval.”
I described a forthcoming session with @softwaredoug as likely to be “one of the highest signal sessions of the series.”
I introduced @softwaredoug as sharing his search-optimization experience from “10 years of optimizing search in industry”.
I called talking with people like Doug who have spent time optimizing retrieval and search an “Underrated way to get better at RAG”.
I said that “Decades of expertise carries over” from retrieval and search to RAG, and that many people are ignoring this.
In Doug’s takeaway that I shared, I highlighted checking how a search system applies filters, including post-filtering, pre-filtering, or concatenating filters into the embedding.
My position is that retrieval remains essential to RAG, and that practical improvements require attention to both the retrieval methods and the way a domain-specific system is configured. Doug’s filtering advice adds a concrete system-design question to that broader point.
Related: rag courses and practice, rag debate and terminology, evaluating retrieval systems