Dataset Viewer
Auto-converted to Parquet Duplicate
id
string
question_id
int64
chunk_index
int32
embedding_text
string
dense_tokens
int32
sparse_tokens
int32
languages
list
tags
list
payload_json
string
dense
list
sparse_indices
list
sparse_values
list
10eca100-228b-5253-9492-d513e66da952
77,434
0
Title: How to access the last value in a vector? Suppose I have a vector that is nested in a dataframe with one or two levels. Is there a quick and dirty way to access the last value, without using the length() function? Something ala PERL's $# special var? So I would like something like: dat$vec1$vec2[$#] inste...
102
109
[ "r" ]
[ "r", "dataframe", "vector" ]
{"accepted_answer_id":null,"answer_count":13,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-09-16T21:40:29.927000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["r"],"last_activity_date":"2024-11-18T22:48:08.850000+00:00","last_edit_date":"2023-01-01T14:54:35.393000+00:00","...
[ 0.00543212890625, 0.00836944580078125, -0.026123046875, -0.031585693359375, 0.01300048828125, -0.01348114013671875, -0.01229095458984375, 0.0126495361328125, -0.0010690689086914062, -0.0203094482421875, -0.00962066650390625, -0.004718780517578125, -0.0008721351623535156, -0.028854370117187...
[ 23, 47, 70, 71, 132, 136, 173, 285, 304, 607, 866, 939, 1632, 1884, 2053, 2806, 3650, 3917, 4568, 4904, 5164, 5361, 5402, 6626, 8168, 8512, 10461, 11249, 15490, 17203, 17368, 18770, 23986, 32354, 34292, 35259, 48962, 63773, 64457, 90926, ...
[ 0.08447265625, 0.1005859375, 0.109375, 0.0966796875, 0.040283203125, 0.032958984375, 0.201171875, 0.1767578125, 0.1240234375, 0.047607421875, 0.1376953125, 0.09326171875, 0.011474609375, 0.10693359375, 0.06201171875, 0.0218505859375, 0.0250244140625, 0.060302734375, 0.25, 0.121...
ed15bb77-9545-5bac-b217-4f00d83ba5d5
79,709
0
Title: Worse sin: side effects or passing massive objects? I have a function inside a loop inside a function. The inner function acquires and stores a large vector of data in memory (as a global variable... I'm using "R" which is like "S-Plus"). The loop loops through a long list of data to be acquired. The outer func...
243
281
[ "r" ]
[ "memory", "r", "function", "global-variables", "side-effects" ]
{"accepted_answer_id":null,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-09-17T03:39:16.913000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["r"],"last_activity_date":"2016-04-28T13:21:33.607000+00:00","last_edit_date":"2016-04-28T13:21:33.607000+00:00","q...
[ 0.007770538330078125, 0.0086669921875, -0.0192413330078125, 0.0174560546875, 0.0252227783203125, -0.0174560546875, -0.0078277587890625, 0.01554107666015625, 0.024261474609375, 0.005859375, -0.024871826171875, 0.0174560546875, -0.018646240234375, -0.024627685546875, -0.0024051666259765625...
[ 7, 56, 100, 110, 157, 173, 184, 206, 214, 237, 294, 388, 452, 497, 880, 903, 1052, 1733, 1810, 1884, 2053, 3082, 3509, 3678, 4034, 4343, 4488, 4677, 5303, 5609, 6051, 6056, 6953, 7964, 8108, 8305, 9433, 10135, 10922, 11522, 11737, 126...
[ 0.030029296875, 0.15625, 0.02099609375, 0.0400390625, 0.08837890625, 0.1640625, 0.0390625, 0.021728515625, 0.004638671875, 0.0269775390625, 0.04833984375, 0.0255126953125, 0.1357421875, 0.023193359375, 0.18359375, 0.006591796875, 0.1171875, 0.046875, 0.1787109375, 0.01733398437...
1e35732b-399d-5cfd-98e2-43501f091221
95,007
0
"Title: Explain the quantile() function in R\n\nI've been mystified by the R quantile function all d(...TRUNCATED)
444
478
[ "r" ]
[ "math", "r", "statistics" ]
"{\"accepted_answer_id\":1463249,\"answer_count\":4,\"chunk_count\":1,\"chunk_index\":0,\"closed_dat(...TRUNCATED)
[0.00818634033203125,0.009613037109375,-0.0215911865234375,-0.01399993896484375,-0.00044131278991699(...TRUNCATED)
[9,10,14,17,19,20,23,39,54,67,70,83,92,100,106,110,132,133,136,144,159,170,248,254,271,347,361,390,4(...TRUNCATED)
[0.021484375,0.0361328125,0.1220703125,0.1220703125,0.0238037109375,0.03125,0.04345703125,0.10058593(...TRUNCATED)
386083f6-3881-5db7-b09c-9d27763aac22
102,056
0
"Title: How to search for \"R\" materials?\n\n\"The Google\" is very helpful... unless your language(...TRUNCATED)
130
146
[ "r" ]
[ "r", "search", "r-faq" ]
"{\"accepted_answer_id\":null,\"answer_count\":21,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\(...TRUNCATED)
[0.007663726806640625,-0.0228729248046875,-0.028411865234375,-0.012969970703125,0.0206298828125,-0.0(...TRUNCATED)
[7,42,47,58,70,83,100,193,238,343,398,442,621,627,765,831,933,1052,1181,1478,1690,1810,1815,2499,363(...TRUNCATED)
[0.040771484375,0.158203125,0.1005859375,0.10693359375,0.06103515625,0.09765625,0.169921875,0.015136(...TRUNCATED)
543b3168-6338-5849-a775-ec3a3e43b8cd
103,312
0
"Title: How to test for the EOF flag in R?\n\nHow can I test for the EOF flag in R? \n \nFor example(...TRUNCATED)
58
62
[ "r" ]
[ "r", "file", "file-io", "eof" ]
"{\"accepted_answer_id\":null,\"answer_count\":2,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\"(...TRUNCATED)
[-0.018035888671875,-0.0159912109375,-0.009979248046875,-0.0112457275390625,0.007335662841796875,-0.(...TRUNCATED)
[10,23,47,73,87,100,241,420,571,627,653,831,1238,3034,4288,4426,7273,11249,11435,11627,12301,12960,1(...TRUNCATED)
[0.047119140625,0.07275390625,0.05810546875,0.125,0.0220947265625,0.09375,0.134765625,0.10205078125,(...TRUNCATED)
c8e0f52d-2dea-532a-a1a3-4359d009b26d
127,137
0
"Title: Sample Code for R?\n\nDoes anyone know a good online resource for example of R code?\n \nThe(...TRUNCATED)
103
106
[ "r" ]
[ "r" ]
"{\"accepted_answer_id\":314391,\"answer_count\":15,\"chunk_count\":1,\"chunk_index\":0,\"closed_dat(...TRUNCATED)
[0.00177001953125,0.0010786056518554688,-0.0330810546875,0.0011234283447265625,0.0209503173828125,-0(...TRUNCATED)
[32,98,100,111,390,627,947,959,1118,1556,1764,2809,3395,3642,3714,4127,6002,6183,7639,8337,10422,118(...TRUNCATED)
[0.012451171875,0.011962890625,0.0830078125,0.042236328125,0.010009765625,0.2294921875,0.111328125,0(...TRUNCATED)
75b0f929-6f28-51e5-8d79-b3595a737d1a
255,697
0
"Title: Is there an R package for learning a Dirichlet prior from counts data\n\nI'm looking for a a(...TRUNCATED)
114
125
[ "r" ]
[ "math", "r", "statistics", "bayesian", "dirichlet" ]
"{\"accepted_answer_id\":255992,\"answer_count\":1,\"chunk_count\":1,\"chunk_index\":0,\"closed_date(...TRUNCATED)
[0.00809478759765625,0.0049591064453125,-0.020660400390625,-0.0302734375,0.050689697265625,0.0173645(...TRUNCATED)
[7,11,47,98,100,142,206,351,627,831,1052,1295,1974,2053,2071,2685,4527,4785,6044,6261,6713,7941,1181(...TRUNCATED)
[0.0172119140625,0.005126953125,0.006591796875,0.028564453125,0.0615234375,0.08447265625,0.15625,0.0(...TRUNCATED)
145d451a-663c-569e-b659-31ce450f1293
359,438
0
"Title: Optimization packages for R\n\nDoes anyone know of any optimization packages out there for R(...TRUNCATED)
29
34
[ "r" ]
[ "r", "mathematical-optimization" ]
"{\"accepted_answer_id\":null,\"answer_count\":9,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\"(...TRUNCATED)
[0.0017843246459960938,-0.01397705078125,-0.010986328125,-0.00513458251953125,0.023162841796875,-0.0(...TRUNCATED)
[7,100,111,159,320,618,627,1363,1810,2499,2685,3714,18057,20880,35672,43938,47691,48962,62318,87235,(...TRUNCATED)
[0.078125,0.076171875,0.0294189453125,0.10400390625,0.0234375,0.19140625,0.2099609375,0.115234375,0.(...TRUNCATED)
560dfc96-b21a-53ec-99be-4c32ca48445e
420,296
0
"Title: What are some good books, web resources, and projects for learning R?\n\nI have a book calle(...TRUNCATED)
165
175
[ "r" ]
[ "r" ]
"{\"accepted_answer_id\":420384,\"answer_count\":11,\"chunk_count\":1,\"chunk_index\":0,\"closed_dat(...TRUNCATED)
[0.0263214111328125,-0.00228118896484375,-0.050079345703125,-0.0017185211181640625,0.018951416015625(...TRUNCATED)
[100,136,627,1467,1672,2773,3395,4034,4127,4527,4677,5165,7986,9626,9836,10975,12319,12877,13648,141(...TRUNCATED)
[0.08203125,0.04345703125,0.2333984375,0.1064453125,0.033203125,0.036865234375,0.012939453125,0.0194(...TRUNCATED)
4df0ed20-4211-5e29-99ff-083d1ca608ca
439,526
0
"Title: Thinking in Vectors with R\n\nI know that R works most efficiently with vectors and looping (...TRUNCATED)
370
344
[ "r" ]
[ "r", "vector" ]
"{\"accepted_answer_id\":440066,\"answer_count\":2,\"chunk_count\":1,\"chunk_index\":0,\"closed_date(...TRUNCATED)
[0.006351470947265625,0.01087188720703125,-0.050811767578125,-0.0007052421569824219,0.02645874023437(...TRUNCATED)
[14,17,23,54,56,98,116,132,136,173,201,209,214,254,271,272,297,304,351,382,418,433,627,678,805,831,8(...TRUNCATED)
[0.0673828125,0.0791015625,0.05224609375,0.0299072265625,0.06591796875,0.005126953125,0.080078125,0.(...TRUNCATED)
End of preview. Expand in Data Studio

Stack2Graph vector database: r

This release contains 633060 text chunks from Stack Overflow with dense and sparse embeddings, selected by the producer's programming-language memberships. Memberships can overlap: a chunk may occur in several language datasets. These labels describe programming languages, not the natural language of the text. extra-languages, when present, contains source rows without a language match. An absent language is never replaced with an empty dataset.

Files and fields

data/vectors-*.parquet contains Zstandard-compressed tables. Each row has a stable id, question_id, chunk_index, embedding_text, model token counts, languages, tags, dense, sparse_indices, sparse_values and payload_json. The last field preserves the complete original Qdrant payload, including source snapshot identity, source dates, scores and answer flags when available. Dense values are float32 representations of the producer's stored float16 values; this does not recover precision discarded during embedding. Sparse weights preserve float32 values and uint32 token indices.

On Hugging Face, load the vectors config with datasets.load_dataset and use streaming for large releases. The dataset viewer uses only the explicitly listed Parquet files. data/dataset.tar.gz is the portable package also used by MDC: extract it to obtain the same Parquet bytes, README and publication.json. The archive is an exchange dataset, not a Qdrant binary snapshot. Import in bounded batches using each row's id, named dense/sparse vectors and decoded payload_json. Recreate collection settings deliberately for your Qdrant version.

Provenance and reproducibility

{
  "after_id": -9223372036854775808,
  "chunk_overlap": 128,
  "chunk_tokens": 1024,
  "collection": "stackoverflow_questions",
  "dense_dimension": 4096,
  "dense_model": "Qwen/Qwen3-Embedding-8B",
  "dense_revision": "1d8ad4ca9b3dd8059ad90a75d4983776a23d44af",
  "question_limit": null,
  "registry_digest": "d2a7357c04e7f47d9bb598189aeeb7db0680d6b35f0d9695d8d2e544121afb8e",
  "snapshot_digest": "56fe643952cec74b17ea13d91edc8ad95181326156177c94cce48d3fed9834b9",
  "snapshot_id": "stackexchange_20260630_sakura",
  "sparse_model": "BAAI/bge-m3",
  "sparse_revision": "5617a9f61b028005a4858fdac845db406aefb181"
}

Export identity: bc9f696c9588560e3be547879c58b96c50c64e3828495471bee43e504392ec7f. Point-ID configuration digest: d16d58c9e7b8007664e3f77b4e9f4a1689a8b8de2c6727b479595621b25e3460. Point IDs use the same snapshot/configuration/question/chunk UUID derivation as the project's Qdrant loader. publication.json lists exact file sizes, SHA-256 hashes, row count, source identity and model/chunking settings. On HF, release.json additionally verifies all managed remote files. Only locally finalized runs with matching stage/report counts are published. The uploader does not re-embed text or query a running database.

Uses and limitations

Intended for dense, sparse and hybrid retrieval, retrieval-augmented generation and reproducible search experiments. Retrieval quality depends on the pinned models and chunking configuration. Overlapping chunks and language memberships are not independent samples; split evaluations by source question to avoid leakage. Source questions can contain personal data, obsolete code, errors and biases. Source-window limits are recorded above. No retrieval benchmark or completeness beyond the recorded source window is claimed.

Attribution and licensing

Derived from Stack Overflow content. Preserve the original post/author attribution and applicable Stack Overflow licensing when redistributing or displaying source content. Question IDs and source snapshot are retained to resolve source posts. This publication declares CC BY-SA 4.0; embedding model licenses and any upstream obligations still apply. Pinned model names and revisions above identify their model cards for review.

Source and procedures: https://github.com/tha-atlas/Stack2Graph. When citing this dataset, include the dataset repository, immutable release revision, source snapshot, export identity, model revisions and the project.

Project citation: Kleybolte, Ventura and Zarcone (2026), Stack2Graph, KG-LLM at LREC26. https://doi.org/10.63317/583q4d3mwbdu.

Downloads last month
40

Collection including Mo7art/Stack2Graph_VD_r