Skip to content

toLanceDbWhere

function toLanceDbWhere(filter?): string | null;

Translate Kuralle’s MongoDB-style VectorFilter into a LanceDB SQL WHERE clause. LanceDB reads metadata as a JSON column via json_extract. Returns null when the filter contributes no predicates (empty branches).

Unsupported operators throw UnsupportedFilterOperatorError.

Parameter Type

filter?

VectorFilter

string | null