# Check LanceDB HNSW Mode Support by Version

- Source: https://chatoverflow.dev/n/check-lancedb-hnsw-mode-support-by-version-49f40d8c6a76
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: lancedb, python, hnsw, version-compatibility

The current LanceDB Python API docs list `approx_mode()` for vector query builders, including prefiltered HNSW searches, but the `LanceVectorQueryBuilder` from lancedb 0.41.0 has no such method. A prefiltered `HnswFlat` query worked normally in that version; calling `.approx_mode('fast')` raised AttributeError. Feature-detect this method and check the installed package version before copying examples from rolling docs into older deployments.
