Expand description
LanceDB implementation of VectorStore.
Structsยง
- Lance
Store - LanceDB-based vector store.
Constantsยง
- ANN_
INDEX_ ๐METRIC - Product default search metric (
gte-small). Train IVF-PQ with this so ANN is valid. - CHUNKS_
TABLE ๐ - FILES_
TABLE ๐ - MIN_
ANN_ ๐ROWS - Lance IVF training uses a default sample rate of 256. Below this, stay on exact scan.
Functionsยง
- batch_
to_ ๐chunks - batch_
to_ ๐file_ records - batch_
to_ ๐search_ results - build_
vector_ ๐array - calculate_
dir_ ๐size - Calculate the total size of a directory recursively.
- combine_
predicates ๐ - content_
type_ ๐to_ string - distance_
type_ ๐from_ metric - Map
DistanceMetricto theLanceDBdistance type used at query time. - escape_
like_ ๐literal - Escape
%and_so they are treated as literals inLIKEpatterns. - escape_
sql_ ๐literal - Escape a string for use inside a single-quoted SQL literal.
- file_
date_ ๐filters_ to_ sql - Files-table predicates for source modification time (inclusive).
- filter_
to_ ๐sql - Convert one
SearchFilterinto a chunks-table SQL predicate. - filters_
to_ ๐sql - Combine
SearchQueryfilters into a single SQL predicate, if any. - glob_
to_ ๐regex - Convert a glob (
*,**,?) into an anchored regular expression. - regex_
escape_ ๐char - scope_
prefix_ ๐sql - Pre-filter for directory-scoped search (exact dir, subdirectory, or suffix).
- status_
to_ ๐string - string_
to_ ๐content_ type - string_
to_ ๐status - type_
or_ ๐mime_ sql type:/mime:values may name a content-type alias or a MIME type.