From 80c8c40cf73c3d0403b135381403dc92c099288e Mon Sep 17 00:00:00 2001 From: prrao87 Date: Sun, 18 Jan 2026 20:26:08 -0500 Subject: [PATCH 1/3] Add new Lance-Hugging Face documentation --- .github/workflows/docs-deploy.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index b5ffaa8f670..c601ec0fe55 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -40,6 +40,11 @@ jobs: with: repository: lancedb/lance-ray path: lance-ray + - name: Checkout lance-huggingface + uses: actions/checkout@v4 + with: + repository: lance-format/lance-huggingface + path: lance-huggingface - name: Checkout lance-namespace-impls uses: actions/checkout@v4 with: @@ -84,6 +89,9 @@ jobs: cat >> docs/src/integrations/.pages << 'EOF' - Ray: ray EOF + - name: Copy lance-huggingface docs + run: | + cp lance-huggingface/docs/src/index.md docs/src/integrations/huggingface.md - name: Copy contributing docs run: | mkdir -p docs/src/community/project-specific/lance From d0561f94ff16e3cb2f7c28f12a4a3d3f318890ee Mon Sep 17 00:00:00 2001 From: prrao87 Date: Tue, 20 Jan 2026 14:36:58 -0500 Subject: [PATCH 2/3] Address feedback --- .github/workflows/docs-deploy.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index c601ec0fe55..012a95a76c6 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -91,7 +91,10 @@ jobs: EOF - name: Copy lance-huggingface docs run: | - cp lance-huggingface/docs/src/index.md docs/src/integrations/huggingface.md + cp -r lance-huggingface/docs/src docs/src/integrations/huggingface + cat >> docs/src/integrations/.pages << 'EOF' + - Huggingface: huggingface + EOF - name: Copy contributing docs run: | mkdir -p docs/src/community/project-specific/lance From 97e160d845882142f11075be4a024f24cac99af6 Mon Sep 17 00:00:00 2001 From: prrao87 Date: Tue, 20 Jan 2026 15:14:31 -0500 Subject: [PATCH 3/3] remove old page --- docs/src/integrations/huggingface.md | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 docs/src/integrations/huggingface.md diff --git a/docs/src/integrations/huggingface.md b/docs/src/integrations/huggingface.md deleted file mode 100644 index 5e5a66e7363..00000000000 --- a/docs/src/integrations/huggingface.md +++ /dev/null @@ -1,15 +0,0 @@ -# HuggingFace Integration - -The HuggingFace Hub has become the go to place for ML practitioners to find pre-trained models and useful datasets. - -HuggingFace datasets can be written directly into Lance format by using the -`lance.write_dataset` method. You can write the entire dataset or a particular split. For example: - -```python -import datasets # pip install datasets -import lance - -lance.write_dataset(datasets.load_dataset( - "poloclub/diffusiondb", split="train[:10]", -), "diffusiondb_train.lance") -``` \ No newline at end of file