Update README.md
Browse files
README.md
CHANGED
|
@@ -13,12 +13,28 @@ pretty_name: fineweb-edu-lance
|
|
| 13 |
size_categories:
|
| 14 |
- 1B<n<10B
|
| 15 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
# FineWeb-Edu (Lance Format)
|
| 17 |
|
| 18 |
-
FineWeb-edu dataset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
|
|
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
```python
|
| 24 |
import datasets
|
|
@@ -33,6 +49,8 @@ for row in hf_ds.take(3):
|
|
| 33 |
print(row["title"])
|
| 34 |
```
|
| 35 |
|
|
|
|
|
|
|
| 36 |
Use Lance's native connector when you need ANN search, FTS, or direct access to embeddings while still pointing to the copy hosted on Hugging Face:
|
| 37 |
|
| 38 |
```python
|
|
@@ -41,7 +59,10 @@ import lance
|
|
| 41 |
ds = lance.dataset("hf://datasets/lance-format/fineweb-edu/data/train.lance")print(f"Total passages: {ds.count_rows():,}")
|
| 42 |
```
|
| 43 |
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
```python
|
| 47 |
import lancedb
|
|
|
|
| 13 |
size_categories:
|
| 14 |
- 1B<n<10B
|
| 15 |
---
|
| 16 |
+
|
| 17 |
+
<center>
|
| 18 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/61c141342aac764ce1654e43/wwRnEQydH9qdRtFofIE-A.png" alt="FineWeb-Edu: The finest collection of educational content the web has to offer">
|
| 19 |
+
</center>
|
| 20 |
+
|
| 21 |
# FineWeb-Edu (Lance Format)
|
| 22 |
|
| 23 |
+
FineWeb-edu dataset consists of over 1.5 billion rows of educational web pages filtered from the FineWeb dataset.
|
| 24 |
+
Each passage ships with cleaned text, metadata, and 384-dim text embeddings for retrieval-heavy workloads.
|
| 25 |
+
|
| 26 |
+
## Why Lance?
|
| 27 |
+
|
| 28 |
+
Lance is an open-source format designed for multimodal AI data, offering significant advantages over traditional formats for modern AI workloads.
|
| 29 |
+
|
| 30 |
+
- **Blazing Fast Random Access**: Optimized for fetching scattered rows, making it ideal for random sampling, real-time ML serving, and interactive applications without performance degradation.
|
| 31 |
+
- **Native Multimodal Support**: Store text, embeddings, and other data types together in a single file. Large binary objects are loaded lazily, and vectors are optimized for fast similarity search.
|
| 32 |
+
- **Efficient Data Evolution**: Add new columns and backfill data without rewriting the entire dataset. This is perfect for evolving ML features, adding new embeddings, or introducing moderation tags over time.
|
| 33 |
+
- **Versatile Querying**: Supports combining vector similarity search, full-text search, and SQL-style filtering in a single query, accelerated by on-disk indexes.
|
| 34 |
|
| 35 |
+
## Quick Start
|
| 36 |
|
| 37 |
+
### Load with `datasets.load_dataset`
|
| 38 |
|
| 39 |
```python
|
| 40 |
import datasets
|
|
|
|
| 49 |
print(row["title"])
|
| 50 |
```
|
| 51 |
|
| 52 |
+
### Load with Lance
|
| 53 |
+
|
| 54 |
Use Lance's native connector when you need ANN search, FTS, or direct access to embeddings while still pointing to the copy hosted on Hugging Face:
|
| 55 |
|
| 56 |
```python
|
|
|
|
| 59 |
ds = lance.dataset("hf://datasets/lance-format/fineweb-edu/data/train.lance")print(f"Total passages: {ds.count_rows():,}")
|
| 60 |
```
|
| 61 |
|
| 62 |
+
### Load with LanceDB
|
| 63 |
+
|
| 64 |
+
These tables can also be consumed by [LanceDB](https://docs.lancedb.com/), the multimodal lakehouse for AI (built on top of Lance).
|
| 65 |
+
LanceDB provides several convenience APIs for search, index creation and data updates on top of the Lance format.
|
| 66 |
|
| 67 |
```python
|
| 68 |
import lancedb
|