Dataset Viewer
Auto-converted to Parquet Duplicate
chunk_id
large_stringlengths
7
11
question_id
large_stringlengths
4
8
language
large_stringclasses
1 value
chunk_index
int64
0
5
chunk_text
large_stringlengths
101
2.81k
sparse_text
large_stringlengths
84
3.26k
dense_vector
listlengths
3.58k
3.58k
sparse_indices
listlengths
0
241
sparse_values
listlengths
0
241
export_source
large_stringclasses
1 value
40201647_c2
40201647
matlab
2
5 0.3214 0.3918 0.4682 0.5455 0.6184 0.6834 0.7389 0.7848 0.8221 0.8521 0.8761 0.8954 0.9108 0.9232 0.9332 0.9413 0.9479 0.9533 0.9576 Code signals: Matlab
5 0.3214 0.3918 0.4682 0.5455 0.6184 0.6834 0.7389 0.7848 0.8221 0.8521 0.8761 0.8954 0.9108 0.9232 0.9332 0.9413 0.9479 0.9533 0.9576 Code signals: Matlab
[ 0.007598876953125, 0.0185546875, -0.004241943359375, -0.0147705078125, 0.01483154296875, 0.0011749267578125, 0.0179443359375, 0.0030975341796875, 0.0023651123046875, 0.03955078125, -0.01397705078125, -0.03369140625, -0.0108642578125, -0.008056640625, -0.00885009765625, 0.0068359375, ...
[ 190, 127089, 304, 2592, 1126, 1819, 6, 121254, 192508, 81730, 4633, 758, 757, 5, 11540, 13903, 122887, 187716, 134926, 119861, 195586, 12012, 3117, 12951, 19308, 198467, 617, 143161, 69139, 98989, 123128, 14889, 2681, 165131, 8821, 9185, 11835,...
[ 0.209716796875, 0.1993408203125, 0.1707763671875, 0.223876953125, 0.18310546875, 0.1976318359375, 0.066162109375, 0.1661376953125, 0.214599609375, 0.13134765625, 0.1466064453125, 0.0916748046875, 0.0660400390625, 0.1002197265625, 0.1324462890625, 0.138916015625, 0.1004638671875, 0....
embed
18822412_c0
18822412
matlab
0
Title: Find maximum area (MatLab) Problem title: Find maximum area (MatLab) Tags: area, matlab Problem: Find maximum area (MatLab) Code signals: Find, MatLab
Find maximum area (MatLab) Find maximum area (MatLab) area matlab Find MatLab Find maximum area (MatLab) Consider the code below (MatLab): By running code we have this figure: I want to draw tangent lines on specified part of curve ( red part , w belongs to [0.6342,0.9985] ) : after doing that, my aim is to find maximu...
[ 0.0223388671875, 0.0179443359375, 0.00909423828125, 0.023193359375, -0.0023956298828125, 0.0208740234375, -0.00131988525390625, 0.0152587890625, -0.000102996826171875, 0.0238037109375, -0.007049560546875, -0.01104736328125, -0.0205078125, -0.0086669921875, 0.021484375, -0.0172119140625...
[ 26040, 38132, 16128, 79520, 97381, 2589, 6114, 7656, 18151, 35064, 51042, 26366, 3444, 79442, 25269, 2517, 124519, 58735, 2831, 9709, 272, 4842, 148, 10617, 122887, 116397, 143161, 183642, 464, 7413, 23, 19364, 38496, 23552, 47880, 61924, 13315...
[ 0.1197509765625, 0.222412109375, 0.2183837890625, 0.162353515625, 0.245849609375, 0.1336669921875, 0.1995849609375, 0.1727294921875, 0.12451171875, 0.01019287109375, 0.05572509765625, 0.115478515625, 0.044525146484375, 0.126708984375, 0.1566162109375, 0.12939453125, 0.12646484375, ...
embed
23705028_c0
23705028
matlab
0
Title: create a Correct histogram Problem title: create a Correct histogram Tags: histogram, matlab Problem: create a Correct histogram Code signals: Correct
create a Correct histogram create a Correct histogram histogram matlab Correct create a Correct histogram I have a range of data represented in the vector C and have the data classes represented by the vector R I need to do a histogram and a curve to overlap Standard Normal but the vector z that represents the frequenc...
[ 0.019775390625, 0.00909423828125, -0.00921630859375, 0.00927734375, 0.01385498046875, 0.0159912109375, -0.0126953125, -0.005828857421875, -0.01055908203125, 0.008544921875, 0.00007581710815429688, -0.029541015625, 0.0186767578125, 0.02490234375, 0.006195068359375, -0.00457763671875, ...
[ 28282, 10, 46348, 15390, 1919, 18, 83814, 2589, 6114, 37457, 2053, 33636, 173, 18770, 313, 61112, 627, 3871, 54, 136, 9709, 272, 645, 6324, 20744, 28723, 97, 12478, 944, 27771, 959, 26785, 98, 64152, 141, 221, 42459, 29806, 17368, 6626, ...
[ 0.1416015625, 0.06524658203125, 0.1875, 0.1783447265625, 0.156005859375, 0.09893798828125, 0.259033203125, 0.12451171875, 0.2000732421875, 0.0985107421875, 0.1121826171875, 0.1514892578125, 0.1539306640625, 0.1605224609375, 0.120361328125, 0.162109375, 0.143310546875, 0.05651855468...
embed
37657227_c0
37657227
matlab
0
"Title: Matlab implicit plot\nProblem title: Matlab implicit plot\nTags: plot, matlab-figure, matlab(...TRUNCATED)
"Matlab implicit plot Matlab implicit plot plot matlab-figure matlab waveform Matlab Matlab implicit(...TRUNCATED)
[0.00811767578125,0.0250244140625,-0.003875732421875,0.0123291015625,0.0169677734375,0.0159912109375(...TRUNCATED)
[7656,6114,165164,23577,2589,59994,259,5037,831,87,9709,272,17721,1096,64,866,136,2389,1295,25632,54(...TRUNCATED)
[0.0963134765625,0.20263671875,0.2171630859375,0.2315673828125,0.047882080078125,0.08526611328125,0.(...TRUNCATED)
embed
19798554_c0
19798554
matlab
0
"Title: Error on LU decomposition\nProblem title: Error on LU decomposition\nTags: matlab, linear-al(...TRUNCATED)
"Error on LU decomposition Error on LU decomposition matlab linear-algebra Error LuA n:1 Error on LU(...TRUNCATED)
[0.01263427734375,0.020751953125,0.016845703125,-0.00130462646484375,-0.0021514892578125,0.000196456(...TRUNCATED)
[212059,98,30684,8,277,40322,2589,6114,192617,429,3350,284,653,19721,5368,18244,32562,678,30391,5213(...TRUNCATED)
[0.184814453125,0.121337890625,0.2149658203125,0.1497802734375,0.1380615234375,0.0859375,0.090820312(...TRUNCATED)
embed
37742314_c0
37742314
matlab
0
"Title: expand a polygon region in a matrix\nProblem title: expand a polygon region in a matrix\nTag(...TRUNCATED)
"expand a polygon region in a matrix expand a polygon region in a matrix matlab convex-polygon expan(...TRUNCATED)
[0.01336669921875,0.01055908203125,0.000759124755859375,0.04052734375,0.00118255615234375,0.01184082(...TRUNCATED)
[71062,35874,6126,10776,23,50944,425,2589,6114,158,272,135545,25632,3444,34292,116,390,13267,106,710(...TRUNCATED)
[0.22998046875,0.150146484375,0.1673583984375,0.230224609375,0.07476806640625,0.1546630859375,0.0897(...TRUNCATED)
embed
33531300_c0
33531300
matlab
0
"Title: inequality symbolic toolbox\nProblem title: inequality symbolic toolbox\nTags: function, ine(...TRUNCATED)
"inequality symbolic toolbox inequality symbolic toolbox function inequality matlab PL5 inequality s(...TRUNCATED)
[0.000926971435546875,0.012451171875,0.00958251953125,0.0164794921875,-0.0086669921875,-0.0018844604(...TRUNCATED)
[23,13,161789,128201,55516,11728,32354,2589,6114,33106,758,45767,7413,3917,3642,29479,903,563,7730,4(...TRUNCATED)
[0.0261688232421875,0.0928955078125,0.19384765625,0.1905517578125,0.12408447265625,0.1531982421875,0(...TRUNCATED)
embed
35850542_c0
35850542
matlab
0
"Title: 4 dimensional plot in matlab\nProblem title: 4 dimensional plot in matlab\nTags: plot, matla(...TRUNCATED)
"4 dimensional plot in matlab 4 dimensional plot in matlab plot matlab multidimensional-array contou(...TRUNCATED)
[0.00836181640625,0.0045166015625,-0.006439208984375,0.01123046875,0.00193023681640625,-0.0082397460(...TRUNCATED)
[201,157955,23577,23,2589,6114,6024,19305,53,158,28889,31577,28282,7656,678,2053,33342,1884,169,71,9(...TRUNCATED)
[0.1546630859375,0.1693115234375,0.198486328125,0.0390625,0.09625244140625,0.2138671875,0.0559692382(...TRUNCATED)
embed
13104052_c1
13104052
matlab
1
"150, GO:0016740, GO:0016787, GO:0006810, GO:0006412, GO:0004672, GO:0016192, GO:0005215, GO:0016779(...TRUNCATED)
"150, GO:0016740, GO:0016787, GO:0006810, GO:0006412, GO:0004672, GO:0016192, GO:0005215, GO:0016779(...TRUNCATED)
[0.01361083984375,0.031005859375,-0.00933837890625,-0.007781982421875,0.012939453125,-0.016235351562(...TRUNCATED)
[3252,4,25052,6632,2485,117525,128341,12,9508,16028,963,13307,1530,7709,198493,151525,12231,12744,18(...TRUNCATED)
[0.295654296875,0.0975341796875,0.2113037109375,0.163818359375,0.18798828125,0.2325439453125,0.20983(...TRUNCATED)
embed
20921159_c1
20921159
matlab
1
" 00000000000000000000000000000000 matrix[1, 33:64] = 00000000001111110000000000000000 . . . matrix[(...TRUNCATED)
" 00000000000000000000000000000000 matrix[1, 33:64] = 00000000001111110000000000000000 . . . matrix[(...TRUNCATED)
[0.029296875,-0.005126953125,-0.0238037109375,0.022705078125,0.00506591796875,0.0213623046875,0.0230(...TRUNCATED)
[2445,181155,197094,50944,425,1065,418,4,3912,12,13307,268,2203,6746,159019,191281,6,5,10078,363,151(...TRUNCATED)
[0.201416015625,0.22509765625,0.245849609375,0.267578125,0.2078857421875,0.0228424072265625,0.076049(...TRUNCATED)
embed
End of preview. Expand in Data Studio

Matlab StackOverflow Vector Dataset Datasheet

1. What This Dataset Is

This dataset is the Matlab-specific vector shard of the Stack2Graph StackOverflow retrieval corpus. Each Hugging Face dataset repository contains exactly one language dataset.

It is optimized for dense+sparse retrieval, Qdrant restoration, and embedding-based RAG experiments.

It is used in the Stack2Graph project as the vector counterpart to the language-scoped RDF knowledge graph shards.

See the Stack2Graph repository for more details: https://github.com/tha-atlas/Stack2Graph

2. Repository Layout

dataset_manifest.json
question_metadata_*.parquet
chunk_records_*.parquet
question_records_*.parquet
  • dataset_manifest.json: language-scoped manifest for this dataset shard.
  • question_metadata_*.parquet: per-question metadata and retrieval bookkeeping.
  • chunk_records_*.parquet: chunk-level vector rows when parent-child indexing is enabled.
  • question_records_*.parquet: question-level vector rows when chunking is disabled or exported alongside chunk data.

3. Data Model And Coverage

The dataset is derived from Stack Overflow questions selected for the Matlab programming language. It contains the structured records needed to rebuild the Stack2Graph Qdrant collection for that language.

Coverage scope:

  • records are retained when they match the Stack2Graph supported language-tag set
  • this repository contains only the Matlab shard
  • the archive may contain both metadata-only and retrieval-ready vector rows depending on the export mode

4. Recommended Preprocessing

  1. Read dataset_manifest.json first and use it as the source of truth for included Parquet files.
  2. Load all Parquet shards for this repository into your vector indexing pipeline.
  3. Rebuild or restore the Qdrant collection stackoverflow_matlab_vector.
  4. Preserve attribution and license metadata during downstream export.

5. Automatic Download And Vector DB Setup

You do not need to regenerate embeddings from GraphDB to use this dataset.

In the Stack2Graph repository, you can use the automation script python -m experiment.load_hf_datasets_into_services --skip-kg to download dataset artifacts and prepare the vector database service state automatically.

Typical workflow:

  1. Clone and configure Stack2Graph (.env with HF token and service paths).
  2. Clone and configure Stack2Graph (.env with HF token and service paths).
  3. Start required local services:
docker compose up -d
  1. Run the loader script:
python -m experiment.load_hf_datasets_into_services --skip-kg

For manual usage without automation, directly ingest the listed Parquet files into your vector database.

6. Quality Notes And Caveats

  • A Stack Overflow question may belong to multiple language shards when tagged with multiple languages.
  • Embeddings and sparse representations depend on the configured export pipeline and model versions.
  • As with community-generated data, content may include noise, bias, and temporal drift.

7. Intended Use

  • semantic retrieval and reranking
  • RAG and hybrid retriever experiments
  • vector database benchmarking and diagnostics
  • language-scoped developer tooling research

8. Limitations

  • Not a complete mirror of all Stack Overflow content.
  • Not all export modes include the same row types or chunk layouts.
  • Best used together with the Stack2Graph retrieval pipeline and Qdrant-compatible tooling.

9. Licensing And Attribution

This dataset inherits Stack Overflow source licensing and attribution requirements. Ensure compliant attribution and redistribution practices in all derived artifacts.

10. Suggested Citation

If you use this dataset, cite the Stack2Graph work:

  • Stack2Graph: A Structured Knowledge Representation of Stack Overflow Data for Retrieval-based Question Answering
Downloads last month
18