Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
36
36
question_id
int64
123
10.9M
chunk_index
int32
0
18
embedding_text
stringlengths
39
10k
dense_tokens
int32
11
1.02k
sparse_tokens
int32
11
1.02k
languages
listlengths
1
5
tags
listlengths
1
5
payload_json
stringlengths
413
573
dense
list
sparse_indices
listlengths
6
458
sparse_values
listlengths
6
458
1b7a4157-f11a-5277-a934-3b5b800c5e58
123
0
Title: Java lib or app to convert CSV to XML file? Is there an existing application or library in Java which will allow me to convert a CSV data file to XML file? The XML tags would be provided through possibly the first row containing column headings.
54
61
[ "java" ]
[ "java", "xml", "csv", "data-conversion" ]
{"accepted_answer_id":183,"answer_count":16,"chunk_count":1,"chunk_index":0,"closed_date":"2018-11-27T03:15:43.440000+00:00","creation_date":"2008-08-01T16:08:52.353000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["java"],"last_activity_date":"2020-05-25T10:02:32.633000+00:00","last_edit_date":"2015-...
[ -0.005950927734375, -0.003955841064453125, -0.0131072998046875, 0.01087188720703125, -0.00923919677734375, -0.021148681640625, 0.0016088485717773438, 0.006011962890625, 0.007068634033203125, 0.0362548828125, -0.021270751953125, 0.0008988380432128906, 0.0167999267578125, -0.014434814453125,...
[ 23, 47, 142, 163, 313, 316, 707, 1221, 1294, 2053, 2071, 2685, 2806, 3129, 3365, 4027, 5117, 5180, 8305, 10336, 11435, 15555, 25474, 35773, 38415, 41925, 43486, 48962, 62952, 63769, 69141, 70541, 92537, 96760, 144573, 144681 ]
[ 0.1025390625, 0.1220703125, 0.0228271484375, 0.039794921875, 0.130859375, 0.06640625, 0.045166015625, 0.0546875, 0.111328125, 0.123046875, 0.0230712890625, 0.042236328125, 0.029052734375, 0.02490234375, 0.0274658203125, 0.1796875, 0.01171875, 0.00146484375, 0.05517578125, 0.068...
15b1689c-7149-5487-9c57-2405454d71fd
126
0
Title: How would you access Object properties from within an object method? What is the "purist" or "correct" way to access an object's properties from within an object method that is not a getter/setter method? I know that from outside of the object you should use a getter/setter, but from within would you just do:...
282
311
[ "java", "php" ]
[ "java", "php", "oop", "theory" ]
{"accepted_answer_id":127,"answer_count":18,"chunk_count":1,"chunk_index":0,"closed_date":"2012-05-08T18:11:27.270000+00:00","creation_date":"2008-08-01T16:10:30.337000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["java","php"],"last_activity_date":"2024-07-11T22:00:17.193000+00:00","last_edit_date":...
[ -0.01549530029296875, 0.01165008544921875, 0.0017080307006835938, 0.0013599395751953125, 0.025665283203125, -0.0309906005859375, 0.01271820068359375, 0.044219970703125, -0.0289764404296875, -0.0033855438232421875, -0.0418701171875, 0.0024089813232421875, 0.0137786865234375, -0.010467529296...
[ 4, 5, 6, 7, 10, 47, 54, 56, 58, 64, 74, 87, 100, 111, 132, 136, 186, 214, 237, 297, 442, 450, 509, 621, 720, 903, 939, 959, 1264, 1295, 1419, 1660, 2046, 2174, 2203, 2449, 2806, 2940, 3142, 3650, 3714, 3794, 3835, 3871, 3917, ...
[ 0.0029296875, 0.029296875, 0.0029296875, 0.00341796875, 0.004150390625, 0.0029296875, 0.0184326171875, 0.171875, 0.001708984375, 0.038818359375, 0.001708984375, 0.0029296875, 0.002685546875, 0.095703125, 0.00146484375, 0.0673828125, 0.002685546875, 0.06201171875, 0.002197265625, ...
4c22684b-7657-54cd-9f00-72c7b1049975
382
0
"Title: What is the meaning of the type safety warning in certain Java generics casts?\n\nWhat is th(...TRUNCATED)
94
107
[ "java" ]
[ "java", "generics", "warnings", "casting", "type-safety" ]
"{\"accepted_answer_id\":384,\"answer_count\":1,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\":(...TRUNCATED)
[0.0102081298828125,0.013946533203125,-0.0167388916015625,0.0009274482727050781,0.002077102661132812(...TRUNCATED)
[7,12,47,67,70,83,111,592,903,1295,1505,1615,1631,2046,4677,4865,5281,5303,9790,10644,18151,20653,24(...TRUNCATED)
[0.03076171875,0.00830078125,0.0947265625,0.1201171875,0.0595703125,0.053466796875,0.0419921875,0.12(...TRUNCATED)
90f2dd35-8ea7-5954-a689-2d2a01d8d80d
564
0
"Title: What is the difference between an int and an Integer in Java and C#?\n\nI was reading More J(...TRUNCATED)
72
76
[ "c#", "java" ]
[ "c#", "java", "integer", "int" ]
"{\"accepted_answer_id\":566,\"answer_count\":26,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\"(...TRUNCATED)
[0.017425537109375,-0.0127410888671875,-0.00882720947265625,-0.00728607177734375,0.0195465087890625,(...TRUNCATED)
[18,23,64,70,83,98,136,142,313,441,2367,4865,4904,4922,5455,10644,16454,17721,23752,27958,41925,4440(...TRUNCATED)
[0.228515625,0.1767578125,0.07568359375,0.1103515625,0.040771484375,0.031982421875,0.15625,0.0878906(...TRUNCATED)
93f71824-e5a3-5441-bad4-83c94223e790
2,092
0
"Title: How to get started writing a code coverage tool?\n\nLooking for books or other references th(...TRUNCATED)
64
71
[ "java" ]
[ "java", "testing", "coldfusion", "code-coverage" ]
"{\"accepted_answer_id\":null,\"answer_count\":5,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\"(...TRUNCATED)
[0.0009889602661132812,-0.01094818115234375,-0.000885009765625,-0.033538818359375,0.0150527954101562(...TRUNCATED)
[10,23,67,390,1379,2046,2320,3642,11249,13984,18151,20209,20653,26499,26859,31344,32562,33022,41925,(...TRUNCATED)
[0.0458984375,0.048583984375,0.130859375,0.1162109375,0.125,0.0439453125,0.038330078125,0.0634765625(...TRUNCATED)
0f8055f0-8122-553d-bf88-da4c94eb88e1
2,158
0
"Title: Creating a custom JButton in Java\n\nIs there a way to create a JButton with your own button(...TRUNCATED)
50
57
[ "java" ]
[ "java", "swing", "jbutton" ]
"{\"accepted_answer_id\":2245,\"answer_count\":5,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\"(...TRUNCATED)
[0.0180816650390625,0.0335693359375,0.038787841796875,0.0186767578125,0.0106964111328125,-0.00034356(...TRUNCATED)
[23,70,79,136,330,678,821,935,1507,2685,3917,10002,15700,28282,29569,41925,46132,48461,48962,56781,7(...TRUNCATED)
[0.0107421875,0.015625,0.1083984375,0.001953125,0.1689453125,0.05615234375,0.1884765625,0.0251464843(...TRUNCATED)
5d89808f-8ba3-58d3-a6ec-ac5e5703bf35
2,931
0
"Title: Getting started with a custom JXTA PeerGroup\n\nI have been working with JXTA 2.3 for the la(...TRUNCATED)
294
327
[ "java" ]
[ "java", "p2p", "jxta" ]
"{\"accepted_answer_id\":null,\"answer_count\":1,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\"(...TRUNCATED)
[0.0168304443359375,0.023101806640625,0.0155181884765625,-0.005863189697265625,-0.00201416015625,-0.(...TRUNCATED)
[4,5,7,9,10,23,47,56,70,83,87,136,170,186,188,214,276,280,297,397,442,538,645,678,765,821,919,1081,1(...TRUNCATED)
[0.0009765625,0.03173828125,0.00048828125,0.046875,0.000732421875,0.000244140625,0.000732421875,0.14(...TRUNCATED)
b83c86d7-7d7e-559d-a662-70ff1da9bfb8
2,968
0
"Title: What are the different methods to parse strings in Java?\n\nFor parsing player commands, I'v(...TRUNCATED)
63
73
[ "java" ]
[ "java", "string", "parsing" ]
"{\"accepted_answer_id\":2985,\"answer_count\":15,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\(...TRUNCATED)
[-0.003368377685546875,-0.0016613006591796875,-0.004302978515625,-0.0187530517578125,0.0053100585937(...TRUNCATED)
[7,8,23,47,70,111,184,272,366,390,621,1314,2174,2684,3060,4865,6953,10588,11814,12921,26366,27983,41(...TRUNCATED)
[0.03955078125,0.06591796875,0.06591796875,0.03955078125,0.030517578125,0.00341796875,0.123046875,0.(...TRUNCATED)
0154c3d7-c605-5e97-b80b-12d95e6bf1a3
3,049
0
"Title: How do I configure and communicate with a serial port?\n\nI need to send and receive data ov(...TRUNCATED)
114
123
[ "c++", "java" ]
[ "java", "c++", "windows", "unix" ]
"{\"accepted_answer_id\":3054,\"answer_count\":10,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\(...TRUNCATED)
[-0.0235137939453125,0.01910400390625,-0.039154052734375,0.00026488304138183594,-0.03509521484375,-0(...TRUNCATED)
[10,23,54,64,67,87,136,289,313,449,645,678,903,992,1257,1264,2053,2856,3642,3773,3871,4084,5423,5608(...TRUNCATED)
[0.024169921875,0.0078125,0.060546875,0.008544921875,0.09375,0.0859375,0.09130859375,0.0283203125,0.(...TRUNCATED)
22fe7d54-b4a8-51ae-9262-3de2dfdf03ad
3,881
0
"Title: IllegalArgumentException or NullPointerException for a null parameter?\n\nI have a simple se(...TRUNCATED)
90
112
[ "java" ]
[ "java", "exception", "null", "nullpointerexception", "illegalargumentexception" ]
"{\"accepted_answer_id\":3886,\"answer_count\":26,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\(...TRUNCATED)
[0.004726409912109375,0.01239776611328125,-0.0160064697265625,-0.005748748779296875,0.02154541015625(...TRUNCATED)
[56,79,83,100,674,707,891,959,1181,1234,1429,2809,4439,5570,5608,7614,8781,11343,12601,15044,16648,1(...TRUNCATED)
[0.123046875,0.056640625,0.031494140625,0.0107421875,0.0771484375,0.037353515625,0.083984375,0.05932(...TRUNCATED)
End of preview. Expand in Data Studio

Stack2Graph vector database: java

This release contains 2422813 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
124

Collection including Mo7art/Stack2Graph_VD_java