Logo vun Lance

Lance

Communautéit
gordonmurray
lance

Design, index, query, and tune Lance datasets and LanceDB tables for ML and AI workloads. Use for vector index selection such as IVF_PQ or IVF_HNSW_FLAT, ANN recall and latency tuning, full-text and hybrid search, scalar indexes and prefiltering, dataset versioning and compaction, embedding and multimodal storage, slow vector search on object storage, or migrating ML data from Parquet. Covers both the pylance format and the lancedb API.

Iwwersiicht

Editeurgordonmurray
Repositorydata-engineering-skills
Skill-Nummlance
Stären
47
Forks
4
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum gordonmurray op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Lance an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/gordonmurray/data-engineering-skills/tree/main/lance
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/gordonmurray/data-engineering-skills.git /tmp/data-engineering-skills
mkdir -p .claude/skills
cp -r /tmp/data-engineering-skills/lance .claude/skills/lance
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Lance an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Lance automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Lance net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Lance Data Format Expert

Scope

Design, debugging, and optimization of Lance and LanceDB systems for ML-native data, embeddings, vector retrieval, and multimodal storage.

Covers the Lance format and LanceDB specifically. For general lakehouse table formats use the iceberg or paimon skills.

Current Facts

Release guidance checked on 2026-11-03. Recheck the linked sources before selecting versions for a new deployment; preserve existing project pins.

  • Lance SDK: v14.0.2 and pylance 14.0.2, released October 29, 2026. v15 betas and v14.0.3 release candidates are not stable releases. SDK versions are distinct from the on-disk format version.
  • LanceDB Python: 0.41.0, released October 29, 2026; this release uses Lance 14.0.2.
  • The Lance repository moved from lancedb/lance to lance-format/lance, with homepage lance.org. The old URL redirects.
  • Verify releases per package. Historical LanceDB tags differ across languages; current v0.41.0 notes also cover Python. Check PyPI for Python availability instead of inferring it from a tag prefix.
  • Python packages: install pylance for the Lance format and lancedb for the embedded/vector database API. The bare lance name on PyPI is an unrelated package by a different author. lancedb-compat is a same-API wheel for pre-Haswell x86_64 hosts without AVX2.
  • Python support: both packages declare requires-python >=3.10. The cp39-abi3 wheel tag is an ABI compatibility marker, not an install gate, so 3.9 does not work despite what the filename suggests.
  • Vector index types: IVF_FLAT, IVF_SQ, IVF_PQ, IVF_HNSW_SQ, IVF_HNSW_PQ, IVF_HNSW_FLAT, and IVF_RQ.
  • LanceDB 0.41 migration: table metadata no longer implicitly authorizes remote-code embedding models or custom endpoints. Explicitly approve trusted models/revisions and endpoints through the embedding registry; do not bypass UntrustedEmbeddingConfigError indiscriminately. Local computed columns and materialized views require an experimental build feature absent from published Python and Node packages.

Inspect First

Establish before recommending or changing anything:

  1. Whether this is a Lance format question (pylance, .lance, dataset versioning, storage layout) or a LanceDB question (lancedb, tables, search, indexes, reranking). The APIs differ.
  2. Installed versions of both packages, and verify API names against the installed version before writing detailed code.
  3. Row count, vector dimensionality, and fragment count. Whether an index is needed at all depends on these.
  4. Storage location. Object storage changes the latency model completely.
  5. For search-quality complaints, the current index type and parameters and the measured recall, before changing anything.

Decision Rules

  • Build a vector index only once the dataset is large enough to need one. Brute-force search on a small dataset is often faster and always exact.
  • Choose the index for the binding constraint: IVF_PQ for large memory-constrained datasets at some recall cost, IVF_HNSW_FLAT for higher recall at higher memory cost, IVF_RQ when memory reduction matters more than either.
  • Add scalar indexes on frequently filtered columns and combine filtering with vector search to shrink the candidate set.
  • Use full-text or hybrid search when relevance depends on language rather than on vector distance alone.
  • Batch writes. Each write creates a fragment, and fragment count drives read amplification.
  • On object storage, expect latency bounded by serial metadata, index, and data-page round trips rather than by bandwidth.
  • Prefer list_tables() over the deprecated table_names(), and session-level cache configuration over the deprecated per-table index_cache_size.

Safety

  • Lance dataset.optimize.compact_files() rewrites fragments and creates a new version; it preserves old versions and the files they reference.
  • cleanup_old_versions() removes eligible historical versions and files, ending time travel to those versions. Check retention and active readers before cleanup. Do not enable delete_unverified=True while writers run.
  • LanceDB table.optimize() can combine compaction, index maintenance, and version cleanup. Inspect that API's cleanup options for the installed version before running it; it is not equivalent to Lance's compaction-only call.
  • Overwrite mode replaces the table rather than appending. Confirm the intended write mode against an existing table.
  • Rebuilding an index on a large dataset is expensive in time and memory. State the expected cost before starting one.
  • Keep object storage credentials out of code and notebooks; use environment variables or platform secrets.

Verify

  • After building an index, confirm it exists and that query latency actually changed. Do not assume the index is being used.
  • Measure recall against a brute-force baseline on a sample before accepting an ANN configuration. Report the measured number.
  • After compaction, compare fragment count and query latency before and after.
  • Check retained versions separately from fragment counts. Compaction alone does not establish that historical storage was reclaimed.
  • Report row count, index type and parameters, and measured latency and recall, rather than claiming an index should help.

Update Checklist

  • Confirm latest lance-format/lance release before changing SDK guidance.
  • Confirm stable Python releases on PyPI and match their release notes; do not rely on tag naming conventions to identify the language package.

Sources

Heefeg gestallte Froen

Wat mécht de KI-Skill Lance?

Design, index, query, and tune Lance datasets and LanceDB tables for ML and AI workloads. Use for vector index selection such as IVF_PQ or IVF_HNSW_FLAT, ANN recall and latency tuning, full-text and hybrid search, scalar indexes and prefiltering, dataset versioning and compaction, embedding and multimodal storage, slow vector search on object storage, or migrating ML data from Parquet. Covers both the pylance format and the lancedb API.

Firwat Lance op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Lance besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Lance an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/gordonmurray/data-engineering-skills/tree/main/lance an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Lance benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Lance benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Lance domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Lance gratis?

Jo. De Skill gëtt vum gordonmurray ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇