text stringlengths 150 542k | id stringlengths 47 47 | dump stringclasses 1
value | url stringlengths 15 499 | date stringclasses 0
values | file_path stringlengths 138 138 | language stringclasses 1
value | language_score float64 0.65 1 | token_count int64 39 159k | score float64 2.52 5.03 | int_score int64 3 5 | text_embedding list |
|---|---|---|---|---|---|---|---|---|---|---|---|
No. 24; Updated March 2011
Click here to download and print a PDF version of this document.
Parents are usually the first to recognize that their child has a problem with emotions or behavior. Still, the decision to seek professional help can be difficult and painful for a parent. The first step is to gently try to tal... | <urn:uuid:673b1bf6-2c30-40ae-992b-c387d00a836a> | CC-MAIN-2013-20 | http://aacap.org/page.ww?name=When+to+Seek+Help+for+Your+Child§ion=Facts+for+Families | null | s3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368696381249/warc/CC-MAIN-20130516092621-00000-ip-10-60-113-184.ec2.internal.warc.gz | en | 0.927742 | 755 | 3.375 | 3 | [
0.007982231676578522,
0.01130813267081976,
0.06571049243211746,
-0.009404150769114494,
-0.04765820503234863,
0.05204062536358833,
0.024509329348802567,
0.007675188593566418,
0.0023591206409037113,
-0.06568259745836258,
0.04771804437041283,
0.030147192999720573,
-0.0205108430236578,
0.04389... |
Previous abstract Next abstract
Session 40 - The Interstellar Medium.
Display session, Tuesday, June 09
Gamma Ray Burst (GRB) explosions can make kpc-size shells and holes in the interstellar media (ISM) of spiral galaxies if much of the energy heats the local gas to above 10^7 K. Disk blowout is probably the major cau... | <urn:uuid:e2300ad5-01dd-4e80-92b3-7ec88785cc9d> | CC-MAIN-2013-20 | http://aas.org/archives/BAAS/v30n2/aas192/abs/S040015.html | null | s3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368696381249/warc/CC-MAIN-20130516092621-00000-ip-10-60-113-184.ec2.internal.warc.gz | en | 0.912641 | 208 | 2.765625 | 3 | [
-0.016233019530773163,
-0.01204619463533163,
0.015155084431171417,
0.021150965243577957,
0.04577122628688812,
-0.018238699063658714,
-0.03430274873971939,
-0.016713304445147514,
-0.026997443288564682,
-0.01868748851120472,
0.05433284863829613,
-0.06432674825191498,
-0.009280168451368809,
0... |
Question: How is bipolar disorder different from unipolar depression or 'regular' depression?
Answer: Both bipolar disorder and major depression are typically associated with depressive episodes. So both illnesses are accompanied by depressions. The difference is that in bipolar disorder people also have periods of ele... | <urn:uuid:e6ba92ad-ed0a-4cac-8e5d-204b78cdd250> | CC-MAIN-2013-20 | http://abcnews.go.com/Health/BipolarOverview/story?id=4359993 | null | s3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368696381249/warc/CC-MAIN-20130516092621-00000-ip-10-60-113-184.ec2.internal.warc.gz | en | 0.943297 | 71 | 2.609375 | 3 | [
-0.010143723338842392,
-0.010494929738342762,
0.01837604120373726,
0.04795662686228752,
0.017475711181759834,
0.025429150089621544,
0.06522409617900848,
-0.004106997977942228,
0.03348509222269058,
-0.05366357043385506,
0.10530897229909897,
0.029745500534772873,
0.03167389705777168,
-0.0084... |
Making the Case for Action
This fact sheet(pdf) and slide deck provide essential state-specific information that addresses the economic imperative, the equity imperative, and the expectations imperative of the college- and career-ready agenda. These resources can be used on their own or serve as the foundation for a pe... | <urn:uuid:3b2c1a91-4f52-464d-ad69-49c1cbadaba8> | CC-MAIN-2013-20 | http://achieve.org/Idaho | null | s3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368696381249/warc/CC-MAIN-20130516092621-00000-ip-10-60-113-184.ec2.internal.warc.gz | en | 0.927479 | 341 | 2.6875 | 3 | [
-0.07245899736881256,
-0.0057950797490775585,
0.0326383002102375,
-0.014965509064495564,
0.026103252544999123,
0.06826065480709076,
-0.0300578773021698,
-0.002240231027826667,
-0.0013231671182438731,
0.015592193230986595,
0.03821798041462898,
0.0001428031682735309,
-0.009034686721861362,
-... |
A land whose rich cultural heritage is discovered not only from within the walls of numerous museums, galleries and churches, many of which today, as zero category monuments are included in a part of the UNESCO World Heritage List, but also in that magical place on the Mediterranean, where even the shortest stroll beco... | <urn:uuid:a69aabbc-f529-4d67-843a-a5c3cb4e8fe0> | CC-MAIN-2013-20 | http://adriatictraveller.com/ru/croatia-essential/heritage.html | null | s3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368696381249/warc/CC-MAIN-20130516092621-00000-ip-10-60-113-184.ec2.internal.warc.gz | en | 0.951876 | 1,292 | 2.53125 | 3 | [
0.011833688244223595,
0.07296017557382584,
0.018881581723690033,
-0.03000338189303875,
-0.020546292886137962,
-0.023502057418227196,
0.020929696038365364,
0.09405851364135742,
-0.007767017465084791,
0.01991218514740467,
0.014257209375500679,
-0.0030612468253821135,
-0.001330212107859552,
0... |
adopt many methods to determine whether the unborn baby is a boy or a
girl. The Chinese
pregnancy calendar is an often used
method to know about the
gender of the new life in the mothers womb.
is an ancient way for
predicting the gender of
the unborn baby
It is also known as a Chinese
conception chart, or
the Chinese C... | <urn:uuid:f7082439-68e9-45b6-a427-4600dceaf5e3> | CC-MAIN-2013-20 | http://ainads.com/Pregnancy/Chinese%20Pregnancy%20Calendar%20.php | null | s3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368696381249/warc/CC-MAIN-20130516092621-00000-ip-10-60-113-184.ec2.internal.warc.gz | en | 0.890836 | 940 | 3.125 | 3 | [
-0.02851140685379505,
0.02684147283434868,
-0.009181494824588299,
0.01046957727521658,
0.025583453476428986,
0.03025437891483307,
0.04528655484318733,
0.020512431859970093,
0.000515080988407135,
0.01147760171443224,
0.04672125726938248,
-0.05007125064730644,
0.0050566294230520725,
0.049593... |
Average life span in the wild: 12 years
Size: 21 in (50 cm)
Weight: 14.4 oz (408 g)
Did you know? Chameleons don't change colors to match their surroundings. Each species displays distinct color patterns to indicate specific reactions or emotions.
The Meller's chameleon is the largest of the chameleons not native to Ma... | <urn:uuid:9c71b6db-6728-48b5-96b5-05fbc0b5bb4f> | CC-MAIN-2013-20 | http://amazingpicturesoftheanimals.blogspot.com/2012/05/mellers-chameleon-facts-pictures.html | null | s3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368696381249/warc/CC-MAIN-20130516092621-00000-ip-10-60-113-184.ec2.internal.warc.gz | en | 0.939643 | 359 | 3.40625 | 3 | [
0.019992027431726456,
-0.02333628199994564,
0.01754865236580372,
0.06292632222175598,
0.04641870781779289,
0.01513128262013197,
0.030539412051439285,
-0.0009229184943251312,
-0.0102149723097682,
-0.009364167228341103,
0.01149303000420332,
-0.05485989525914192,
0.054653383791446686,
0.02661... |
Nuclear Energy in France
Nuclear energy is the cornerstone of french energy policy. In the ‘70s France chose to develop nuclear as its base load electricity source as a response to the oil crisis and assure its energy independence.
Nuclear Electricity Production: France currently counts 58 commercial nuclear reactors i... | <urn:uuid:f5c220a7-7276-4cf2-9208-33679d478b1f> | CC-MAIN-2013-20 | http://ambafrance-us.org/spip.php?article949&xtor=AL-13 | null | s3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368696381249/warc/CC-MAIN-20130516092621-00000-ip-10-60-113-184.ec2.internal.warc.gz | en | 0.912335 | 1,305 | 3.125 | 3 | [
0.038507334887981415,
0.047007232904434204,
-0.06825092434883118,
-0.04717756062746048,
0.04879188537597656,
0.003309180261567235,
0.0003972396661993116,
0.023984018713235855,
-0.024690628051757812,
0.0173988938331604,
0.05173175409436226,
-0.06267305463552475,
-0.025371182709932327,
0.014... |
Mexican America - Introduction
"Mexican America" is a sampling of objects from the collections of the National Museum of American History. The stories behind these objects reflect the history of the Mexican presence in the United States. They illustrate a fundamentally American story about the centuries-old encounter b... | <urn:uuid:ff577d1a-83b8-467c-af1c-4c0aa2ead4fb> | CC-MAIN-2013-20 | http://americanhistory.si.edu/collections/object-groups/mexican-america?edan_start=0&edan_fq=date%3A%221840s%22 | null | s3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368696381249/warc/CC-MAIN-20130516092621-00000-ip-10-60-113-184.ec2.internal.warc.gz | en | 0.776227 | 1,938 | 4.0625 | 4 | [
0.05517024174332619,
0.06798803806304932,
0.054750680923461914,
0.053164999932050705,
0.03316882252693176,
0.005986788310110569,
0.0028712614439427853,
0.03537768870592117,
-0.02261321432888508,
-0.05964233726263046,
0.002963456092402339,
0.05308810621500015,
-0.07632363587617874,
-0.01616... |
- Action research (6 posts)
- Artist CPD (11 posts)
- Barriers to participation (2 posts)
- Change management (8 posts)
- Co-construction (3 posts)
- Community cohesion (12 posts)
- Creative curriculum development (13 posts)
- Creative teaching and learning (28 posts)
- Cross-curricular working (21 posts)
- Developing ... | <urn:uuid:69d15397-ebe5-4147-830d-84d945741e63> | CC-MAIN-2013-20 | http://anewdirection.org.uk/knowledge/resources?category=370 | null | s3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368696381249/warc/CC-MAIN-20130516092621-00000-ip-10-60-113-184.ec2.internal.warc.gz | en | 0.888793 | 979 | 2.640625 | 3 | [
-0.018559034913778305,
0.005682497285306454,
0.057197827845811844,
-0.02098996378481388,
-0.016918154433369637,
0.007792282849550247,
-0.053084779530763626,
0.007724584545940161,
-0.011673231609165668,
-0.0009626729297451675,
0.039615873247385025,
-0.002889482071623206,
0.0000216430162254255... |
White-throated Magpie-Jays (Calocitta formosa) are beautiful big jays that travel the North Pacific slopes in small flocks. Their songs and calls are quite varied - this is one of the typical calls, recorded on the road to Monteverde (Costa Rica).
Douglas Von Gausig (recordist; copyright holder), Naturesongs.com
This w... | <urn:uuid:e5ac96fc-a147-40c0-a0ba-bc1fa8515745> | CC-MAIN-2013-20 | http://animaldiversity.ummz.umich.edu/accounts/Bilateria/sounds/collections/contributors/naturesongs/wtmj1/?start=90 | null | s3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368696381249/warc/CC-MAIN-20130516092621-00000-ip-10-60-113-184.ec2.internal.warc.gz | en | 0.852656 | 255 | 2.921875 | 3 | [
0.019882027059793472,
-0.05772402882575989,
0.005550750996917486,
-0.04076767340302467,
0.07042887061834335,
0.00649752514436841,
0.03656211867928505,
0.0224241204559803,
-0.04519909247756004,
-0.0004612875927705318,
0.013743739575147629,
-0.04975559562444687,
0.051938723772764206,
0.00328... |
Octodon degus is generally considered endemic to west central Chile, where it inhabits the lower slopes of the Andes. Although some have argued that its range may extend north into Peru, this is not well supported. It is common in the international pet trade, however, and is often used in laboratory studies outside of ... | <urn:uuid:2653877c-a97a-4524-a9e3-91af93f1f619> | CC-MAIN-2013-20 | http://animaldiversity.ummz.umich.edu/site/accounts/information/Octodon_degus.html | null | s3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368696381249/warc/CC-MAIN-20130516092621-00000-ip-10-60-113-184.ec2.internal.warc.gz | en | 0.928159 | 3,982 | 3.0625 | 3 | [
0.010839826427400112,
-0.053819287568330765,
0.0276806503534317,
0.006857672240585089,
0.06423959881067276,
-0.021485887467861176,
0.01699610985815525,
0.023510191589593887,
-0.034415386617183685,
-0.03360499441623688,
0.06588644534349442,
-0.07283739745616913,
0.008815259672701359,
-0.019... |
Details of Glycemic Index (GI)
The GI Scale
The glycemic index uses a scale from 1 to 100, which indicates the rate at which 50 grams of carbohydrate in a particular food is absorbed into the bloodstream as blood-sugar. The main reference food (rated 100) is glucose.
GI Rating Categories
The glycemic index divides carb... | <urn:uuid:17b26358-fba0-4434-86b5-ce1458abe71f> | CC-MAIN-2013-20 | http://annecollins.com/gi-food-guide.htm | null | s3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368696381249/warc/CC-MAIN-20130516092621-00000-ip-10-60-113-184.ec2.internal.warc.gz | en | 0.909349 | 321 | 3.75 | 4 | [
0.0029333129059523344,
-0.02070361189544201,
0.028172655031085014,
0.03343524411320686,
0.019070366397500038,
-0.043105944991111755,
0.03036944568157196,
-0.009062309749424458,
-0.04520924389362335,
-0.0055146547965705395,
-0.0035723706241697073,
-0.07867913693189621,
-0.01361305732280016,
... |
Discover the cosmos! Each day a different image or photograph of our fascinating universe is featured, along with a brief explanation written by a professional astronomer.
2010 August 12
Explanation: Each August, as planet Earth swings through dust trailing along the orbit of periodic comet Swift-Tuttle, skygazers can ... | <urn:uuid:37377bba-5d22-4f0b-91a9-cd45df72de7c> | CC-MAIN-2013-20 | http://apod.nasa.gov/apod/ap100812.html | null | s3://commoncrawl/crawl-data/CC-MAIN-2013-20/segments/1368696381249/warc/CC-MAIN-20130516092621-00000-ip-10-60-113-184.ec2.internal.warc.gz | en | 0.883452 | 289 | 2.875 | 3 | [
-0.025240445509552956,
-0.002691976958885789,
-0.027717789635062218,
0.030084289610385895,
0.06653476506471634,
0.023286059498786926,
-0.024912375956773758,
0.013055817224085331,
-0.014936007559299469,
-0.0017509250901639462,
0.0018759662052616477,
0.0030613411217927933,
-0.04550989717245102... |
YAML Metadata Warning:The task_categories "lance" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other
FineWeb-Edu (Lance Format)
A Lance-formatted version of FineWeb-Edu — over 1.5 billion educational web passages with cleaned text, source metadata, language detection signals, and 384-dim text embeddings — available directly from the Hub at hf://datasets/lance-format/fineweb-edu/data/train.lance.
Key features
- Cleaned passage text in the
textcolumn with the sourceurlandtitlecarried alongside. - Language detection signals (
language,language_probability) for filtered subsets. - Pre-computed 384-dim text embeddings in
text_embedding, ready for ANN search once an index is built locally. - One columnar dataset — scan metadata cheaply, project just the columns each query needs, defer the heavy
textandtext_embeddingreads to the rows that matter.
No pre-built indices on the Hub copy yet. At 1.5 B+ rows the on-disk indices are too large to ship comfortably alongside the data on the Hub. The Search, Curate, Evolve, and Train sections below describe the same APIs you'd use against a fully indexed dataset, but vector and full-text examples assume a local copy with
IVF_PQandINVERTEDindices built once after download. See the Materialize-a-subset section at the end for a focused-subset workflow that makes indexing tractable.
Splits
train.lance
Schema
| Column | Type | Notes |
|---|---|---|
text |
string |
Cleaned passage body |
title |
string |
Page or article title when available |
url |
string |
Canonical source URL |
language |
string |
Detected language code (e.g., en) |
language_probability |
float32 |
Confidence of the language detector |
text_embedding |
fixed_size_list<float32, 384> |
Passage embedding for retrieval |
| FineWeb-Edu quality metadata | — | Heuristic scores and length statistics carried over from the upstream corpus |
Pre-built indices
None bundled at present. Build the recommended indices on a local copy:
import lancedb
db = lancedb.connect("./fineweb-edu/data")
tbl = db.open_table("train")
tbl.create_index(
metric="cosine",
vector_column_name="text_embedding",
index_type="IVF_PQ",
num_partitions=2048,
num_sub_vectors=96,
)
tbl.create_fts_index("text", replace=True)
Both indices live next to the data, so subsequent queries against the same local path pick them up automatically.
Why Lance?
- 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.
- 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.
- Native Index Support: Lance comes with fast, on-disk, scalable vector and FTS indexes that sit right alongside the dataset on the Hub, so you can share not only your data but also your embeddings and indexes without your users needing to recompute them.
- 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.
- Versatile Querying: Supports combining vector similarity search, full-text search, and SQL-style filtering in a single query, accelerated by on-disk indexes.
- Data Versioning: Every mutation commits a new version; previous versions remain intact on disk. Tags pin a snapshot by name, so retrieval systems and training runs can reproduce against an exact slice of history.
Load with datasets.load_dataset
You can load Lance datasets via the standard HuggingFace datasets interface, suitable when your pipeline already speaks Dataset / IterableDataset or you want a quick streaming sample.
import datasets
hf_ds = datasets.load_dataset("lance-format/fineweb-edu", split="train", streaming=True)
for row in hf_ds.take(3):
print(row["title"] or row["url"])
Load with LanceDB
LanceDB is the embedded retrieval library built on top of the Lance format (docs), and is the interface most users interact with. It wraps the dataset as a queryable table with search and filter builders, and is the entry point used by the Search, Curate, Evolve, Versioning, and Materialize-a-subset sections below.
import lancedb
db = lancedb.connect("hf://datasets/lance-format/fineweb-edu/data")
tbl = db.open_table("train")
print(len(tbl))
Load with Lance
pylance is the Python binding for the Lance format and works directly with the format's lower-level APIs. Reach for it when you want to inspect dataset internals — schema, scanner, fragments, the list of pre-built indices.
import lance
ds = lance.dataset("hf://datasets/lance-format/fineweb-edu/data/train.lance")
print(ds.count_rows(), ds.schema.names)
print(ds.list_indices())
Tip — for production use, download locally first. Streaming from the Hub works for exploration, but at 1.5 B+ rows random access and any kind of search are dramatically faster against a local copy, and ANN / FTS require local indices anyway:
hf download lance-format/fineweb-edu --repo-type dataset --local-dir ./fineweb-eduThen point Lance or LanceDB at
./fineweb-edu/data. For most workflows, the Materialize-a-subset section is a better starting point than downloading the full 1.5 B-row corpus.
Search
Once an IVF_PQ index exists on text_embedding, dense retrieval is a single call. In production you would encode a query string through the same 384-dim text encoder used at ingest and pass the resulting vector to tbl.search(...). The example below uses the embedding from row 42 as a runnable stand-in.
import lancedb
db = lancedb.connect("./fineweb-edu/data") # local copy with the indices from the section above
tbl = db.open_table("train")
seed = (
tbl.search()
.select(["text_embedding", "url"])
.limit(1)
.offset(42)
.to_list()[0]
)
hits = (
tbl.search(seed["text_embedding"])
.metric("cosine")
.where("language = 'en' AND language_probability > 0.9", prefilter=True)
.select(["title", "url", "text"])
.limit(10)
.to_list()
)
for r in hits:
print(f"{r['url']}\n {(r['title'] or '')[:80]}")
The result set carries only the projected columns. The text_embedding vector is never read on the result side, and the text body is fetched only for the ten passages that actually came back, keeping the working set small even though the corpus is enormous.
Because the recommended setup also builds an INVERTED index on text, the same query can be issued as a hybrid search that combines the dense vector with a keyword query. LanceDB merges the two result lists and reranks them in a single call, which is useful when a phrase must literally appear in the passage but the dense side still does most of the ranking.
hybrid_hits = (
tbl.search(query_type="hybrid")
.vector(seed["text_embedding"])
.text("quantum computing")
.where("language = 'en'", prefilter=True)
.select(["title", "url", "text"])
.limit(10)
.to_list()
)
for r in hybrid_hits:
print(f"{r['url']}\n {(r['title'] or '')[:80]}")
Tune metric, nprobes, and refine_factor on the vector side to trade recall against latency.
Curate
A typical curation pass over a web corpus starts with a metadata filter — pick high-confidence English, drop short or low-quality fragments, restrict to a domain — before any text gets read. Stacking predicates inside a single filtered scan keeps the result small and explicit, and the bounded .limit(1000) makes it cheap to inspect.
import lancedb
db = lancedb.connect("hf://datasets/lance-format/fineweb-edu/data")
tbl = db.open_table("train")
candidates = (
tbl.search()
.where(
"language = 'en' "
"AND language_probability > 0.95 "
"AND length(text) >= 1000",
prefilter=True,
)
.select(["url", "title", "language_probability"])
.limit(1000)
.to_list()
)
print(f"{len(candidates)} candidates; first url: {candidates[0]['url']}")
The result is a plain list of dictionaries, ready to inspect, persist as a manifest of URLs, or hand to the Materialize-a-subset section below for export to a writable local copy. Neither the text body nor the text_embedding vector is read by this scan, so a 1000-row curation pass against the Hub moves only kilobytes of metadata even though the underlying table is in the billions.
Evolve
Lance stores each column independently, so a new column can be appended without rewriting the existing data. The lightest form is a SQL expression: derive the new column from columns that already exist, and Lance computes it once and persists it. The example below adds a text_length and a long_passage flag, either of which can then be used directly in where clauses without recomputing the predicate on every query.
Note: Mutations require a local copy of the dataset, since the Hub mount is read-only. See the Materialize-a-subset section at the end of this card for a streaming pattern that downloads only the rows and columns you need, or use
hf downloadto pull a larger slice first.
import lancedb
db = lancedb.connect("./fineweb-edu/data") # local copy required for writes
tbl = db.open_table("train")
tbl.add_columns({
"text_length": "length(text)",
"long_passage": "length(text) >= 1000",
})
If the values you want to attach already live in another table (offline labels, topic classifications, alternate embeddings from a stronger model), merge them in by joining on url:
import pyarrow as pa
labels = pa.table({
"url": pa.array(["https://example.com/a", "https://example.com/b"]),
"topic": pa.array(["math", "history"]),
})
tbl.merge(labels, on="url")
The original columns and indices are untouched, so existing code that does not reference the new columns continues to work unchanged. New columns become visible to every reader as soon as the operation commits. For column values that require a Python computation (e.g., running a different embedding model over the text), Lance provides a batch-UDF API — see the Lance data evolution docs.
Train
Projection lets a training loop read only the columns each step actually needs. LanceDB tables expose this through Permutation.identity(tbl).select_columns([...]), which plugs straight into the standard torch.utils.data.DataLoader so prefetching, shuffling, and batching behave as in any PyTorch pipeline. For language-model pretraining the natural projection is just the text column; for a retrieval probe or a reranker on top of frozen features, project the precomputed embedding instead.
import lancedb
from lancedb.permutation import Permutation
from torch.utils.data import DataLoader
db = lancedb.connect("./fineweb-edu/data")
tbl = db.open_table("train")
train_ds = Permutation.identity(tbl).select_columns(["text"])
loader = DataLoader(train_ds, batch_size=64, shuffle=True, num_workers=8)
for batch in loader:
# batch carries only the projected columns; tokenize, forward, backward...
...
Switching feature sets is a configuration change: passing ["text_embedding"] to select_columns(...) on the next run reads only the 384-d vectors and skips the text body entirely, which is the right shape for training a lightweight retrieval head on cached embeddings. Columns added in Evolve cost nothing per batch until they are explicitly projected.
Versioning
Every mutation to a Lance dataset, whether it adds a column, merges labels, or builds an index, commits a new version. Previous versions remain intact on disk. You can list versions and inspect the history directly from the Hub copy; creating new tags requires a local copy since tags are writes.
import lancedb
db = lancedb.connect("hf://datasets/lance-format/fineweb-edu/data")
tbl = db.open_table("train")
print("Current version:", tbl.version)
print("History:", tbl.list_versions())
print("Tags:", tbl.tags.list())
Once you have a local copy, tag a version for reproducibility:
local_db = lancedb.connect("./fineweb-edu/data")
local_tbl = local_db.open_table("train")
local_tbl.tags.create("english-v1", local_tbl.version)
A tagged version can be opened by name, or any version reopened by its number, against either the Hub copy or a local one:
tbl_v1 = db.open_table("train", version="english-v1")
tbl_v5 = db.open_table("train", version=5)
Pinning supports two workflows. A retrieval system locked to english-v1 keeps returning stable results while the dataset evolves in parallel — newly added embeddings or labels do not change what the tag resolves to. A training experiment pinned to the same tag can be rerun later against the exact same passages, so changes in metrics reflect model changes rather than data drift. Neither workflow needs shadow copies or external manifest tracking.
Materialize a subset
At 1.5 B+ rows, very few workflows want the full corpus on local disk. The practical entry point is to stream a filtered query through .to_batches() into a new local table; only the projected columns and matching row groups cross the wire, and the bytes never fully materialize in Python memory. The result is a writable LanceDB database scoped to the rows that actually matter for the downstream task, sized to index and iterate cheaply.
import lancedb
remote_db = lancedb.connect("hf://datasets/lance-format/fineweb-edu/data")
remote_tbl = remote_db.open_table("train")
batches = (
remote_tbl.search()
.where(
"language = 'en' "
"AND language_probability > 0.95 "
"AND length(text) >= 1000"
)
.select(["url", "title", "text", "language", "language_probability", "text_embedding"])
.to_batches()
)
local_db = lancedb.connect("./fineweb-edu-en")
local_db.create_table("train", batches)
The resulting ./fineweb-edu-en is a first-class LanceDB database. Build the recommended indices on it once (the same create_index / create_fts_index calls shown in the Pre-built indices section, pointed at the local path), and every snippet in the Search, Evolve, Train, and Versioning sections above works against it by swapping hf://datasets/lance-format/fineweb-edu/data for ./fineweb-edu-en.
Source & license
Converted from HuggingFaceFW/fineweb-edu. FineWeb-Edu is distributed under ODC-BY 1.0; individual document content remains subject to the rights of the original publishers. Review the upstream dataset card before downstream use.
Citation
@misc{lozhkov2024finewebedu,
title = {FineWeb-Edu: the Finest Collection of Educational Content the Web Has to Offer},
author = {Lozhkov, Anton and Ben Allal, Loubna and von Werra, Leandro and Wolf, Thomas},
year = {2024},
url = {https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu}
}
- Downloads last month
- 4,537