chunk_id large_stringlengths 6 12 | question_id large_stringlengths 3 8 | language large_stringclasses 1
value | chunk_index int64 0 46 | chunk_text large_stringlengths 112 3.56k | sparse_text large_stringlengths 79 3.89k | dense_vector listlengths 3.58k 3.58k | sparse_indices listlengths 0 269 | sparse_values listlengths 0 269 | export_source large_stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|
3397265_c0 | 3397265 | java | 0 | Title: gwt in netbeans
Problem title: gwt in netbeans
Tags: java
Problem: gwt in netbeans can i install GWT in netbeans? | gwt in netbeans gwt in netbeans java gwt in netbeans can i install GWT in netbeans? | [
-0.0032196044921875,
0.021484375,
0.00518798828125,
-0.005523681640625,
0.004669189453125,
0.00634765625,
0.0296630859375,
-0.00531005859375,
-0.0036163330078125,
-0.01416015625,
0.01336669921875,
-0.00604248046875,
-0.005767822265625,
-0.01025390625,
0.0017547607421875,
-0.00238037109... | [
13303,
18,
23,
2043,
372,
79,
330,
10133,
831,
17,
20600,
527,
156416
] | [
0.1597900390625,
0.1734619140625,
0.1275634765625,
0.1424560546875,
0.22607421875,
0.07940673828125,
0.125,
0.122802734375,
0.1131591796875,
0.0599365234375,
0.2142333984375,
0.1497802734375,
0.2978515625
] | embed |
35697203_c0 | 35697203 | java | 0 | Title: JAVA_HOME on Mac
Problem title: JAVA_HOME on Mac
Tags: macos, java
Problem: JAVA_HOME on Mac
Code signals: JAVA_HOME, Mac | JAVA_HOME on Mac JAVA_HOME on Mac macos java JAVA_HOME Mac JAVA_HOME on Mac echo $JAVA_HOME gives me: But trying to import a project to Intellij with this setting doesn't work. Does my JAVA HOME have to be in if so, how do I make it so with what I currently have? output of "/usr/libexec/java_home -V" /Library/Java/Java... | [
0.0174560546875,
0.0250244140625,
0.00933837890625,
0.033203125,
0.01025390625,
0.0255126953125,
-0.006805419921875,
0.0147705078125,
-0.02197265625,
0.0272216796875,
-0.01068115234375,
0.0033111572265625,
0.0025177001953125,
0.0172119140625,
0.0030517578125,
-0.022705078125,
-0.0100... | [
189950,
454,
841,
91245,
98,
4727,
291,
7840,
79,
330,
6,
3089,
3650,
76199,
163,
4966,
31577,
24927,
13452,
47,
24018,
150,
170,
678,
903,
53550,
22027,
18,
4488,
101790,
759,
70060,
765,
186,
23,
2174,
3249,
221,
82424,
140992,
42,
... | [
0.277587890625,
0.07391357421875,
0.1556396484375,
0.2362060546875,
0.068359375,
0.19189453125,
0.050567626953125,
0.082275390625,
0.1138916015625,
0.1707763671875,
0.000091552734375,
0.1739501953125,
0.1072998046875,
0.013763427734375,
0.0198974609375,
0.009246826171875,
0.065246582... | embed |
36277802_c0 | 36277802 | java | 0 | Title: variable errors in Java
Problem title: variable errors in Java
Tags: java, variables
Problem: variable errors in Java
Code signals: Java | variable errors in Java variable errors in Java java variables Java variable errors in Java When I do my program, I get an error. That's the last part of my programing. The error is error: and labfee, statusfee have same errors. total: there are 7 errors. | [
0.021240234375,
0.0196533203125,
-0.0294189453125,
0.00775146484375,
0.00775146484375,
0.01129150390625,
-0.0220947265625,
0.017578125,
-0.017578125,
0.0205078125,
-0.0113525390625,
-0.017333984375,
0.020263671875,
0.0269775390625,
0.0213623046875,
0.014404296875,
0.00543212890625,
... | [
77336,
18499,
7,
23,
41925,
79,
330,
54,
1528,
87,
2046,
142,
9925,
70,
4568,
2831,
759,
214,
83,
136,
60054,
2242,
13,
10778,
765,
5701,
3622,
2685,
621,
361
] | [
0.271484375,
0.2415771484375,
0.0496826171875,
0.06103515625,
0.2293701171875,
0.08740234375,
0.1510009765625,
0.0289764404296875,
0.1243896484375,
0.0280609130859375,
0.077392578125,
0.03387451171875,
0.023468017578125,
0.039154052734375,
0.1510009765625,
0.08544921875,
0.0318908691... | embed |
8966930_c0 | 8966930 | java | 0 | "Title: Is there a way to half tab?\nProblem title: Is there a way to half tab?\nTags: 2d, java, tab(...TRUNCATED) | "Is there a way to half tab? Is there a way to half tab? 2d java tabs arrays Is there a way to half (...TRUNCATED) | [0.025146484375,-0.01416015625,0.00653076171875,0.0034332275390625,-0.0181884765625,0.00515747070312(...TRUNCATED) | [2071,2685,10,3917,47,23552,20928,116,71,79,330,10298,4778,2448,1916,127664,1363,23180,1810,163,3800(...TRUNCATED) | [0.0062255859375,0.05340576171875,0.0645751953125,0.1351318359375,0.1072998046875,0.2371826171875,0.(...TRUNCATED) | embed |
45284276_c0 | 45284276 | java | 0 | "Title: Split reg expression\nProblem title: Split reg expression\nTags: java\nProblem: Split reg ex(...TRUNCATED) | "Split reg expression Split reg expression java Split COMPLEX str.split Split reg expression I am tr(...TRUNCATED) | [-0.0089111328125,0.007476806640625,0.01287841796875,0.00885009765625,-0.00787353515625,0.0218505859(...TRUNCATED) | [46474,6835,125195,79,330,61898,88233,7704,7008,4353,31577,65450,1632,79315,28960,13538,7077,84751,3(...TRUNCATED) | [0.2176513671875,0.2088623046875,0.180908203125,0.09857177734375,0.0938720703125,0.0628662109375,0.1(...TRUNCATED) | embed |
55353602_c0 | 55353602 | java | 0 | "Title: Could not find libarcore\nProblem title: Could not find libarcore\nTags: android, java\nProb(...TRUNCATED) | "Could not find libarcore Could not find libarcore android java Could Could not find libarcore I am (...TRUNCATED) | [-0.0201416015625,0.00604248046875,0.00457763671875,0.0240478515625,-0.025390625,-0.0108642578125,0.(...TRUNCATED) | [191147,959,7413,400,1299,30854,54527,79,330,31577,29479,13685,13452,1295,582,516,9,50886,13,18499,3(...TRUNCATED) | [0.06707763671875,0.109375,0.16357421875,0.121337890625,0.1982421875,0.27783203125,0.129638671875,0.(...TRUNCATED) | embed |
18653867_c0 | 18653867 | java | 0 | "Title: int equivalent of .charAt() method\nProblem title: int equivalent of .charAt() method\nTags:(...TRUNCATED) | "int equivalent of .charAt() method int equivalent of .charAt() method java int equivalent of .charA(...TRUNCATED) | [0.000568389892578125,0.00592041015625,-0.007171630859375,0.0201416015625,-0.0010528564453125,-0.003(...TRUNCATED) | [
23,
18,
183234,
111,
5,
9254,
28848,
132,
55300,
79,
330,
70,
21441,
981
] | [0.09716796875,0.1566162109375,0.2020263671875,0.03692626953125,0.05572509765625,0.1639404296875,0.2(...TRUNCATED) | embed |
27259162_c3 | 27259162 | java | 3 | "289440758685084551339423045832369032229481658085593321233482747978262041447231687381771809192998812(...TRUNCATED) | "289440758685084551339423045832369032229481658085593321233482747978262041447231687381771809192998812(...TRUNCATED) | [-0.004974365234375,0.02294921875,0.0006103515625,0.01043701171875,0.0033111572265625,0.015197753906(...TRUNCATED) | [1372,203262,8368,189010,109189,13903,145110,131518,13023,107791,86549,163736,160443,123128,206007,1(...TRUNCATED) | [0.1500244140625,0.13671875,0.0455322265625,0.11669921875,0.0523681640625,0.008575439453125,0.063720(...TRUNCATED) | embed |
64196074_c0 | 64196074 | java | 0 | "Title: Java int[] comparator\nProblem title: Java int[] comparator\nTags: java\nProblem: Java int[](...TRUNCATED) | "Java int[] comparator Java int[] comparator java Java Comparator Override Java int[] comparator Try(...TRUNCATED) | [0.0015411376953125,0.0201416015625,0.004638671875,0.00726318359375,-0.01165771484375,-0.00408935546(...TRUNCATED) | [41925,23,18,1065,31898,1290,79,330,113307,4597,9578,416,112,40858,33022,114122,28960,903,83,959,267(...TRUNCATED) | [0.222412109375,0.115966796875,0.1632080078125,0.06121826171875,0.234619140625,0.1546630859375,0.107(...TRUNCATED) | embed |
696113_c0 | 696113 | java | 0 | "Title: splitting arrays\nProblem title: splitting arrays\nTags: java\nProblem: splitting arrays How(...TRUNCATED) | "splitting arrays splitting arrays java splitting arrays How do I partition an array into four sub a(...TRUNCATED) | [-0.021728515625,0.003387451171875,-0.017578125,-0.001007080078125,-0.0166015625,-0.00457763671875,-(...TRUNCATED) | [
65450,
1916,
10298,
4778,
79,
330,
11249,
54,
87,
2878,
1363,
53,
3934,
22759,
1614,
23,
41925,
32
] | [0.17724609375,0.0938720703125,0.1837158203125,0.171630859375,0.12042236328125,0.1619873046875,0.028(...TRUNCATED) | embed |
Java StackOverflow Vector Dataset Datasheet
1. What This Dataset Is
This dataset is the Java-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 Java 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 Java shard
- the archive may contain both metadata-only and retrieval-ready vector rows depending on the export mode
4. Recommended Preprocessing
- Read
dataset_manifest.jsonfirst and use it as the source of truth for included Parquet files. - Load all Parquet shards for this repository into your vector indexing pipeline.
- Rebuild or restore the Qdrant collection
stackoverflow_java_vector. - 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:
- Clone and configure Stack2Graph (
.envwith HF token and service paths). - Clone and configure Stack2Graph (
.envwith HF token and service paths). - Start required local services:
docker compose up -d
- 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
- 17