# DuckDB community extension for prefiltered HNSW using ACORN…

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…

- **Page:** https://magpie.gallery/i/duckdb-community-extension-for-prefiltered-hnsw-us-ilfm
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Tags:** duckdb, vector-search, hnsw, extension, database

## Source

Web · cigrainger: DuckDB community extension for prefiltered HNSW using ACORN-1

- **Original:** https://news.ycombinator.com/item?id=47512891

> 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'm thinking of submitting upstream. But this does the business. Approximate nearest neighbours with WHERE prefiltering. Edit: Just to clarify, this has been accepted into the community extensions repo. So you can use it like: ``` INSTALL hnsw_acorn FROM community; LOAD hnsw_acorn; ``` https://github.com/cigrainger/duckdb-hnsw-acorn

## GitHub projects

- https://github.com/cigrainger/duckdb-hnsw-acorn

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
