Skip to main content

Module lancedb

Module lancedb 

Source
Expand description

LanceDB implementation of VectorStore.

Structsยง

LanceStore
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 DistanceMetric to the LanceDB distance type used at query time.
escape_like_literal ๐Ÿ”’
Escape % and _ so they are treated as literals in LIKE patterns.
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 SearchFilter into a chunks-table SQL predicate.
filters_to_sql ๐Ÿ”’
Combine SearchQuery filters 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.