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
60b3095a-adf5-5af5-b46d-41c346fc4985
5,136
0
Title: Creating a shared library in MATLAB A researcher has created a small simulation in MATLAB and we want to make it accessible to others. My plan is to take the simulation, clean up a few things and turn it into a set of functions. Then I plan to compile it into a C library and use SWIG to create a Python wrapper....
120
133
[ "c", "matlab", "python" ]
[ "python", "c", "matlab" ]
{"accepted_answer_id":5302,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T18:47:58.487000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c","matlab","python"],"last_activity_date":"2023-01-23T18:01:53.553000+00:00","last_edit_date":"2022-06-27T20:20:20...
[ 0.01096343994140625, 0.00598907470703125, -0.01096343994140625, 0.019287109375, 0.021087646484375, -0.01503753662109375, 0.00691986083984375, 0.005092620849609375, -0.00826263427734375, -0.00524139404296875, -0.0172576904296875, 0.027191162109375, 0.0119171142578125, -0.00362396240234375, ...
[ 23, 47, 56, 83, 313, 1264, 1294, 1295, 1340, 1363, 1774, 1916, 3095, 3249, 3444, 3934, 4527, 5423, 5608, 5646, 7108, 8966, 9969, 10846, 11782, 13380, 15504, 15673, 19048, 19336, 19713, 25188, 27060, 27803, 28282, 31343, 32354, 35773, 38415,...
[ 0.012451171875, 0.07958984375, 0.054443359375, 0.007080078125, 0.087890625, 0.162109375, 0.150390625, 0.05029296875, 0.099609375, 0.115234375, 0.1611328125, 0.0303955078125, 0.0260009765625, 0.056884765625, 0.053955078125, 0.0634765625, 0.031494140625, 0.0341796875, 0.01586914062...
6b1d01ef-4090-5416-ac00-2845c07dfc02
14,495
0
Title: How can I stop MATLAB from returning until after a command-line script completes? I see in the MATLAB help (matlab -h) that I can use the -r flag to specify an m-file to run. I notice when I do this, MATLAB seems to start the script, but immediately return. The script processes fine, but the main app has alread...
193
210
[ "matlab" ]
[ "command-line", "matlab" ]
{"accepted_answer_id":14773,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-18T12:10:38.450000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["matlab"],"last_activity_date":"2012-11-13T13:53:36.847000+00:00","last_edit_date":"2012-11-13T13:53:36.847000+00:0...
[ -0.0252838134765625, -0.01067352294921875, -0.01018524169921875, 0.0147857666015625, 0.00994110107421875, -0.01331329345703125, 0.0147247314453125, -0.0108642578125, -0.02294921875, 0.005214691162109375, -0.01116943359375, 0.023681640625, 0.0240478515625, -0.006656646728515625, -0.007209...
[ 7, 14, 18, 20, 39, 42, 98, 127, 157, 347, 569, 841, 1284, 1295, 1528, 1830, 1916, 2046, 2227, 2256, 2589, 4027, 4034, 4358, 4527, 4734, 5201, 5885, 6114, 6661, 7103, 7279, 9433, 11435, 11675, 13784, 13817, 18929, 21721, 21771, 22489, ...
[ 0.0234375, 0.058349609375, 0.0230712890625, 0.046875, 0.0791015625, 0.12890625, 0.007080078125, 0.1083984375, 0.034423828125, 0.0634765625, 0.064453125, 0.060546875, 0.0048828125, 0.047119140625, 0.0625, 0.0184326171875, 0.07373046875, 0.041015625, 0.1337890625, 0.1181640625, ...
6b87076e-5ce7-5eec-a17f-f4f8caeaec8a
38,645
0
"Title: What are some efficient ways to combine two structures in MATLAB?\n\nI want to combine two s(...TRUNCATED)
137
147
[ "matlab" ]
[ "matlab", "merge", "structure", "field" ]
"{\"accepted_answer_id\":39678,\"answer_count\":5,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\(...TRUNCATED)
[0.0283203125,-0.002666473388671875,-0.0265960693359375,0.01238250732421875,0.01470947265625,0.01802(...TRUNCATED)
[5,7,11,23,47,62,74,100,106,116,136,214,275,304,313,335,363,418,617,678,765,1286,1884,3060,3444,3501(...TRUNCATED)
[0.01220703125,0.049560546875,0.05712890625,0.062255859375,0.054443359375,0.064453125,0.02197265625,(...TRUNCATED)
a6315177-aef3-5c06-9b14-3561d93c9212
43,211
0
"Title: How do I change Simulink xPC target serial comm speed on the fly\n\nI have an xPC target app(...TRUNCATED)
145
138
[ "matlab" ]
[ "matlab", "simulink", "xpc-target" ]
"{\"accepted_answer_id\":null,\"answer_count\":3,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\"(...TRUNCATED)
[-0.030242919921875,-0.01145172119140625,0.005542755126953125,0.0174713134765625,-0.020843505859375,(...TRUNCATED)
[10,18,39,47,54,70,87,98,99,375,442,483,561,602,645,759,831,903,1022,1733,2967,3917,4034,5117,5609,8(...TRUNCATED)
[0.021728515625,0.00927734375,0.0615234375,0.1201171875,0.0322265625,0.0048828125,0.036865234375,0.0(...TRUNCATED)
bdb586a2-5664-5925-b190-c85b47c486fc
43,223
0
"Title: Running a Simulink xPC block at a faster rate than the continuous rate\n\nI have a Simulink (...TRUNCATED)
253
263
[ "matlab" ]
[ "matlab", "simulink", "xpc-target" ]
"{\"accepted_answer_id\":null,\"answer_count\":3,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\"(...TRUNCATED)
[-0.0165252685546875,-0.0244293212890625,-0.0177001953125,0.0112152099609375,0.0037174224853515625,0(...TRUNCATED)
[23,38,47,56,169,223,525,561,602,645,714,831,836,959,1022,1096,2101,2806,2967,3501,3871,3917,4271,42(...TRUNCATED)
[0.01220703125,0.0247802734375,0.01220703125,0.10595703125,0.0732421875,0.123046875,0.039794921875,0(...TRUNCATED)
37214b7e-5968-5644-90da-0aba7eef8f34
49,307
0
"Title: Can parallel traversals be done in MATLAB just as in Python?\n\nUsing the zip function, Pyth(...TRUNCATED)
76
88
[ "matlab", "python" ]
[ "python", "arrays", "matlab", "for-loop" ]
"{\"accepted_answer_id\":null,\"answer_count\":7,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\"(...TRUNCATED)
[-0.00501251220703125,-0.0108489990234375,-0.01806640625,0.01055145263671875,0.0238037109375,-0.0061(...TRUNCATED)
[13,23,40,53,100,237,345,645,1733,2965,4171,4778,5701,6002,6626,8560,10298,10461,16765,16940,17368,2(...TRUNCATED)
[0.0517578125,0.033447265625,0.0179443359375,0.044189453125,0.08154296875,0.018798828125,0.014038085(...TRUNCATED)
a75454a8-c4ec-590c-8cfd-a6641259c950
49,926
0
"Title: Open source alternative to MATLAB's fmincon function?\n\nIs there an open-source alternative(...TRUNCATED)
77
93
[ "matlab", "python" ]
[ "python", "numpy", "matlab", "numeric", "scientific-computing" ]
"{\"accepted_answer_id\":196806,\"answer_count\":10,\"chunk_count\":1,\"chunk_index\":0,\"closed_dat(...TRUNCATED)
[-0.0029430389404296875,-0.02972412109375,-0.00909423828125,-0.001529693603515625,0.029144287109375,(...TRUNCATED)
[7,9,18,47,53,70,100,142,158,186,456,683,903,1238,1249,1363,1528,2071,2271,2499,2685,2806,4527,4734,(...TRUNCATED)
[0.0269775390625,0.007080078125,0.042724609375,0.09765625,0.1123046875,0.021240234375,0.025146484375(...TRUNCATED)
3a758a9d-7438-529c-83de-4c4cedbc61f3
95,760
0
"Title: How can I generate a list of function dependencies in MATLAB?\n\nIn order to distribute a fu(...TRUNCATED)
130
137
[ "matlab" ]
[ "function", "matlab", "dependencies", "code-analysis" ]
"{\"accepted_answer_id\":97072,\"answer_count\":2,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\(...TRUNCATED)
[-0.00223541259765625,-0.040313720703125,-0.0189666748046875,-0.0171661376953125,0.0240020751953125,(...TRUNCATED)
[7,10,11,23,54,67,70,73,83,87,98,111,272,347,442,831,903,1810,2367,2861,2886,3789,3871,3917,4393,530(...TRUNCATED)
[0.028076171875,0.024169921875,0.041015625,0.03271484375,0.0294189453125,0.08251953125,0.00512695312(...TRUNCATED)
27fa5c2b-7fe9-580b-9f18-ddd58d5149a1
106,086
0
"Title: In MATLAB, can a class method act as a uicontrol callback without being public?\n\nIn MATLAB(...TRUNCATED)
275
300
[ "matlab" ]
[ "user-interface", "matlab", "callback", "oop", "access-control" ]
"{\"accepted_answer_id\":113749,\"answer_count\":1,\"chunk_count\":1,\"chunk_index\":0,\"closed_date(...TRUNCATED)
[-0.0176239013671875,-0.00626373291015625,-0.0006256103515625,-0.00536346435546875,0.010429382324218(...TRUNCATED)
[10,11,14,18,47,54,56,75,83,112,186,237,360,420,441,707,748,759,831,903,959,1096,1264,1745,1884,2021(...TRUNCATED)
[0.0174560546875,0.0966796875,0.1630859375,0.02587890625,0.0152587890625,0.004638671875,0.0520019531(...TRUNCATED)
ed5caf07-0d62-5ff4-91f1-0c82e1fd9cae
132,092
0
"Title: What is your favourite MATLAB/Octave programming trick?\n\nI think everyone would agree that(...TRUNCATED)
85
90
[ "matlab" ]
[ "matlab", "octave" ]
"{\"accepted_answer_id\":null,\"answer_count\":31,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\(...TRUNCATED)
[0.0189056396484375,-0.0186767578125,-0.01178741455078125,0.0063323974609375,0.0268402099609375,-0.0(...TRUNCATED)
[7,47,64,70,83,87,100,117,442,449,450,621,707,765,935,959,1257,1632,2046,2806,4527,4865,4966,5351,74(...TRUNCATED)
[0.087890625,0.01171875,0.031494140625,0.03955078125,0.1142578125,0.021728515625,0.0791015625,0.0520(...TRUNCATED)
End of preview. Expand in Data Studio

Stack2Graph vector database: matlab

This release contains 102773 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
122

Collection including Mo7art/Stack2Graph_VD_matlab