by softwaredoug · 2y ago · 0 comments
https://github.com/softwaredoug/searcharray
Why Pandas? Because BM25 is one thing, but you also want to combine with other factors (recency, popularity, etc) easily computed in pandas / numpy...
BTW phrases are the hard thing. There are a lot of edge case in phrase matching. Not to mention slop, etc. And you want to compact positions into as little memory as possible
https://github.com/softwaredoug/searcharray/blob/main/search...
I'll give a look to your project and try it for experimenting, thanks for sharing.
It's one I point people at all the time when they ask me why something isn't working as expected in any standard search tool, and something I reference from time to time to refresh my own knowledge.
Well worth the money.
I think I tested it thoroughly but any feedback would be appreciated!
Edit: I delta-encoded and base36-encoded the positions
I have my own feed setup with sites I like to frequent [1].
Also, a lot of subject matter experts hang out here so it just happens a lot :)