{"by":"cigrainger","descendants":5,"id":47512891,"kids":[47515933,47514220,47515224,47513207,47526016,47517136,47513429,47514748,47529272],"score":90,"text":"Hey folks! As someone doing hybrid search daily and wishing I could have a pgvector-like experience but with actual prefiltered approximate nearest neighbours, I decided to just take a punt on implementing ACORN on a fork of the DuckDB VSS extension. I had to make some changes to (vendored) usearch that I&#x27;m thinking of submitting upstream. But this does the business. Approximate nearest neighbours with WHERE prefiltering.<p>Edit: Just to clarify, this has been accepted into the community extensions repo. So you can use it like:<p>```<p>INSTALL hnsw_acorn FROM community;<p>LOAD hnsw_acorn;<p>```","time":1774409284,"title":"Show HN: DuckDB community extension for prefiltered HNSW using ACORN-1","type":"story","url":"https://github.com/cigrainger/duckdb-hnsw-acorn"}