Open Source 开源项目 3h ago Updated 3h ago 更新于 3小时前 57

lance-format/lance lance-format/lance

Lance is an open lakehouse format designed specifically for multimodal AI workloads, supporting vector search, full-text search, and SQL analytics on the same dataset It claims 100x faster random access compared to Parquet or Iceberg while maintaining competitive scan performance Native support for multimodal data (images, videos, audio, text, embeddings) with efficient blob encoding and lazy loading Built-in zero-copy versioning with ACID transactions, time travel, tags, and branches without ad Lance 是面向多模态 AI 的开源湖仓格式,提供向量搜索、全文搜索(BM25)和 SQL 分析的混合查询能力 随机访问性能比 Parquet/Iceberg 快 100 倍,同时保持扫描性能不下降 原生支持图像、视频、音频、文本和嵌入向量在同一格式中存储,支持高效 blob 编码和懒加载 提供零拷贝版本控制、ACID 事务、时间旅行和分支功能,无需额外基础设施 与 Arrow 生态深度集成,兼容 Pandas、DuckDB、Polars、Spark、Ray、Trino、Flink 等主流工具

62
Hot 热度
68
Quality 质量
58
Impact 影响力

Analysis 深度分析

TL;DR

  • Lance is an open lakehouse format designed specifically for multimodal AI workloads, supporting vector search, full-text search, and SQL analytics on the same dataset
  • It claims 100x faster random access compared to Parquet or Iceberg while maintaining competitive scan performance
  • Native support for multimodal data (images, videos, audio, text, embeddings) with efficient blob encoding and lazy loading
  • Built-in zero-copy versioning with ACID transactions, time travel, tags, and branches without additional infrastructure
  • Rich ecosystem integrations including Apache Arrow, Pandas, Polars, DuckDB, Spark, Ray, Trino, Flink, and open catalog systems

Why It Matters

Lance addresses a critical gap in the AI data infrastructure landscape by providing a purpose-built format for multimodal AI workloads that combine vector search, traditional analytics, and large-scale ML training. For practitioners building RAG systems, feature stores, or multimodal pipelines, it offers a unified solution that eliminates the need to juggle multiple storage formats and systems.

Technical Details

  • Hybrid Search Architecture: Combines vector similarity search, BM25 full-text search, and SQL analytics on a single dataset with accelerated secondary indices, enabling complex query patterns without data movement
  • File Format Design: Uses a data_storage_version identifier for long-term compatibility contracts; stable storage versions guarantee future read support even as SDKs evolve via semantic versioning
  • Performance Characteristics: Claims 100x faster random access than Parquet/Iceberg through optimized layout for ML training IO patterns, while preserving efficient sequential scan performance
  • Multimodal Storage: Native support for storing images, videos, audio, text, and embeddings in a unified format with efficient blob encoding and lazy loading capabilities
  • Ecosystem Integration: Full Apache Arrow compatibility with native bindings for Pandas, Polars, DuckDB, PyArrow, and integrations with Spark, Ray, Trino, Flink, and catalog systems like Apache Polaris, Unity Catalog, and Apache Gravitino

Industry Insight

  • The rise of purpose-built lakehouse formats like Lance signals a shift away from general-purpose columnar formats (Parquet/Iceberg) for AI workloads, as multimodal data patterns require fundamentally different IO characteristics
  • Zero-copy versioning with ACID guarantees positions Lance as a strong candidate for ML feature stores and experiment tracking, where data lineage and reproducibility are critical
  • The emphasis on hybrid search (vector + full-text + SQL) in a single format suggests the industry is converging on unified retrieval architectures rather than stitching together specialized systems

TL;DR

  • Lance 是面向多模态 AI 的开源湖仓格式,提供向量搜索、全文搜索(BM25)和 SQL 分析的混合查询能力
  • 随机访问性能比 Parquet/Iceberg 快 100 倍,同时保持扫描性能不下降
  • 原生支持图像、视频、音频、文本和嵌入向量在同一格式中存储,支持高效 blob 编码和懒加载
  • 提供零拷贝版本控制、ACID 事务、时间旅行和分支功能,无需额外基础设施
  • 与 Arrow 生态深度集成,兼容 Pandas、DuckDB、Polars、Spark、Ray、Trino、Flink 等主流工具

为什么值得看

Lance 解决了多模态 AI 工作流中数据存储与检索的性能瓶颈,为构建搜索引擎、特征存储和大规模 ML 训练提供了统一的湖仓解决方案。其混合搜索能力和 100 倍随机访问加速对 AI 基础设施架构设计具有重要参考价值。

技术解析

  • 文件格式与架构:Lance 包含文件格式、表格式和目录规范三层设计,可在对象存储上构建完整湖仓,支持数据演进(高效添加带回填值的列而无需全表重写)
  • 混合搜索引擎:在同一数据集上结合向量相似度搜索、BM25 全文搜索和 SQL 分析查询,通过加速二级索引实现高效混合检索
  • 多模态数据支持:统一格式存储图像、视频、音频、文本和嵌入向量,采用高效 blob 编码和懒加载机制优化 I/O
  • 版本控制机制:基于 data_storage_version 实现零拷贝版本控制,稳定存储版本提供长期兼容性保证,SDK/API 变更遵循语义化版本控制
  • 生态集成:原生支持 Apache Arrow 内存格式,提供 Python SDK(pylance),并集成 DuckDB、Polars、Pandas、PyArrow、Ray、Spark、Trino、Flink 及开放目录(Polaris、Unity Catalog、Gravitino)

行业启示

  • 多模态 AI 基础设施正从单一数据格式向统一湖仓格式演进,Lance 代表了针对向量检索和特征工程优化的新一代存储方案趋势
  • 随机访问性能成为 ML 训练数据管道的关键瓶颈,100 倍性能提升可能重新定义大规模训练数据加载的最佳实践
  • 零拷贝版本控制与 ACID 事务的结合降低了特征存储和模型版本管理的运维复杂度,为 MLOps 标准化提供新路径

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Open Source 开源 Dataset 数据集 Embedding Model 嵌入模型 RAG 检索增强生成