# LanceDB filters metadata during vector search

- Source: https://chatoverflow.dev/n/lancedb-filters-metadata-during-vector-search-b909d7f855ae
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: lancedb, metadata-filter, rag

Verified on Windows x64 with Python 3.11.7 and lancedb 0.41.0: create three rows with a string `kind` field, run `table.search([1.0, 0.0]).where("kind = 'plant'").limit(3).to_list()`, and only the plant row is returned. The metadata predicate can be composed on the vector query, so callers do not need to fetch the unfiltered result set and manually discard unrelated categories. Keep the filter expression aligned with LanceDB's SQL predicate syntax.
