chunk_id large_stringlengths 9 11 ⌀ | question_id large_stringlengths 6 8 | language large_stringclasses 1
value | chunk_index int64 0 4 ⌀ | chunk_text large_stringlengths 115 2.62k ⌀ | sparse_text large_stringlengths 111 4.37k | dense_vector listlengths 3.58k 3.58k ⌀ | sparse_indices listlengths 9 217 ⌀ | sparse_values listlengths 9 217 ⌀ | export_source large_stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|
43395771_c4 | 43395771 | prolog | 4 | 1783, _G1786, _G1789, _G1792, _G1795, _G1798, _G1801, _G1804, _G1807, _G1810, _G1813, _G1816, _G1819, _G1822, _G1825, _G1828, _G1831, _G1834, _G1837, _G1840, _G1843, _G1846, _G1849, _G1852, _G1855, _G1861 | 1783, _G1786, _G1789, _G1792, _G1795, _G1798, _G1801, _G1804, _G1807, _G1810, _G1813, _G1816, _G1819, _G1822, _G1825, _G1828, _G1831, _G1834, _G1837, _G1840, _G1843, _G1846, _G1849, _G1852, _G1855, _G1861 | [
-0.0079345703125,
-0.000782012939453125,
-0.027587890625,
-0.040771484375,
0.00372314453125,
0.021240234375,
-0.014404296875,
0.00148773193359375,
0.01458740234375,
0.0458984375,
-0.0028839111328125,
-0.003082275390625,
-0.015625,
-0.014892578125,
0.004425048828125,
0.0142822265625,
... | [
729,
17168,
4,
101,
724,
2489,
15276,
18949,
12231,
8821,
16665,
1819,
6746,
7709,
8368,
963,
2681,
2485,
2947,
4015,
2588,
3882,
5016,
10289,
10945,
2839,
11548,
9271,
12977,
12744,
11663,
11540
] | [
0.153564453125,
0.299560546875,
0.0867919921875,
0.03466796875,
0.126953125,
0.117431640625,
0.25439453125,
0.2364501953125,
0.23193359375,
0.2451171875,
0.2403564453125,
0.14404296875,
0.209228515625,
0.2135009765625,
0.1798095703125,
0.1451416015625,
0.129638671875,
0.146484375,
... | embed |
48213714_c0 | 48213714 | prolog | 0 | Title: partition a set into n subsets using prolog
Problem title: partition a set into n subsets using prolog
Tags: set, prolog
Problem: partition a set into n subsets using prolog
Code signals: prolog, Res | partition a set into n subsets using prolog partition a set into n subsets using prolog set prolog prolog Res partition a set into n subsets using prolog I'm struggling with the following problem, partition a set into n subsets using prolog. So for example, I give as input to program: X = [1,2,3,4], N=3 and I get or I ... | [
0.01416015625,
-0.00909423828125,
0.01373291015625,
0.01324462890625,
-0.0001850128173828125,
-0.0172119140625,
-0.00421142578125,
-0.003997802734375,
-0.0078125,
-0.010009765625,
0.007354736328125,
0.003387451171875,
-0.004608154296875,
-0.004638671875,
0.009521484375,
0.0037841796875... | [
2878,
1363,
5423,
3934,
653,
1614,
3509,
7,
17368,
502,
4867,
10,
9624,
237875,
25632,
2967,
27781,
8337,
237,
107730,
1528,
1193,
133063,
82449,
541,
76067,
2046,
707,
4,
55257
] | [
0.2322998046875,
0.122314453125,
0.2064208984375,
0.1820068359375,
0.164306640625,
0.201171875,
0.2410888671875,
0.091796875,
0.057586669921875,
0.1607666015625,
0.2418212890625,
0.0333251953125,
0.1395263671875,
0.0850830078125,
0.013153076171875,
0.0687255859375,
0.0152740478515625... | embed |
1943886_c0 | 1943886 | prolog | 0 | Title: prolog syntax problem
Problem title: prolog syntax problem
Tags: operators, prolog
Problem: prolog syntax problem I can't distinguish these symbols: = and =:= \= and =\= [X,Y] and [X|Y] What’s the difference ? | prolog syntax problem prolog syntax problem operators prolog prolog syntax problem I can't distinguish these symbols: = and =:= \= and =\= [X,Y] and [X|Y] What’s the difference ? | [
0.021484375,
-0.00726318359375,
0.01416015625,
-0.00421142578125,
-0.006561279296875,
-0.002227783203125,
-0.01416015625,
0.00677490234375,
0.007568359375,
0.0089111328125,
0.013427734375,
-0.007476806640625,
0.0010833740234375,
-0.01031494140625,
0.01116943359375,
-0.01202392578125,
... | [
502,
4867,
6002,
86531,
2967,
39933,
87,
831,
18,
157167,
1495,
6097,
26582,
2203,
136,
41872,
1542,
4,
1723,
58745,
70,
60212
] | [
0.157958984375,
0.2344970703125,
0.1494140625,
0.1304931640625,
0.168212890625,
0.2060546875,
0.01190185546875,
0.0966796875,
0.09808349609375,
0.1754150390625,
0.11517333984375,
0.074951171875,
0.253662109375,
0.191162109375,
0.236083984375,
0.08575439453125,
0.1470947265625,
0.03... | embed |
4775623_c0 | 4775623 | prolog | 0 | "Title: Test prolog knowledge\nProblem title: Test prolog knowledge\nTags: prolog\nProblem: Test pro(...TRUNCATED) | "Test prolog knowledge Test prolog knowledge prolog Test Test prolog knowledge I'd like to solve som(...TRUNCATED) | [0.02880859375,0.004180908203125,-0.00433349609375,-0.002655029296875,-0.0118408203125,-0.0048522949(...TRUNCATED) | [
8647,
502,
4867,
51359,
87,
1884,
47,
86869,
3060,
1118,
3034,
7,
1957,
3642,
4127,
54,
17,
3714,
51139,
67330,
2499
] | [0.1978759765625,0.16796875,0.232666015625,0.1973876953125,0.01047515869140625,0.06536865234375,0.02(...TRUNCATED) | embed |
15436464_c0 | 15436464 | prolog | 0 | "Title: Split string in items\nProblem title: Split string in items\nTags: prolog, string, swi-prolo(...TRUNCATED) | "Split string in items Split string in items prolog string swi-prolog Split Split string in items I (...TRUNCATED) | [-0.002685546875,-0.01519775390625,-0.003936767578125,0.015380859375,-0.0166015625,0.021728515625,-0(...TRUNCATED) | [
46474,
79315,
23,
55769,
502,
4867,
91,
2452,
3454,
87,
765,
70,
28,
1544,
525,
3917,
47,
65450,
903,
3934
] | [0.237548828125,0.280517578125,0.1351318359375,0.261962890625,0.1260986328125,0.203369140625,0.02781(...TRUNCATED) | embed |
55248433_c0 | 55248433 | prolog | 0 | "Title: to read file and then to convert it to lists in prolog\nProblem title: to read file and then(...TRUNCATED) | "to read file and then to convert it to lists in prolog to read file and then to convert it to lists(...TRUNCATED) | [0.03466796875,-0.00604248046875,-0.01104736328125,0.021484375,-0.01544189453125,0.0174560546875,-0.(...TRUNCATED) | [
47,
12301,
11435,
96760,
5303,
7,
502,
4867,
32036,
363,
63099,
23,
157268,
100,
18151,
124326,
25632
] | [0.07464599609375,0.1627197265625,0.154052734375,0.102783203125,0.2137451171875,0.09356689453125,0.1(...TRUNCATED) | embed |
8109611_c0 | 8109611 | prolog | 0 | "Title: prolog list error\nProblem title: prolog list error\nTags: prolog\nProblem: prolog list erro(...TRUNCATED) | "prolog list error prolog list error prolog ERROR Syntax Operator prolog list error The problem is t(...TRUNCATED) | [0.017578125,0.012451171875,0.0027313232421875,0.00439453125,-0.0120849609375,0.01251220703125,-0.01(...TRUNCATED) | [
502,
4867,
5303,
18499,
151206,
24638,
19010,
86531,
150922,
2967,
7413,
4568,
12830,
23,
82212,
444,
20949,
36917
] | [0.1741943359375,0.261962890625,0.221435546875,0.1910400390625,0.090087890625,0.02947998046875,0.030(...TRUNCATED) | embed |
42952996_c1 | 42952996 | prolog | 1 | "1, 1, 1, 1, 1, 1, 1] ; L = [1, 1, 1, 1, 1, 1, 1, 1, 1] ; L = [1, 1, 1, 1, 1, 1, 1, 1, 1|...] ; L = (...TRUNCATED) | "1, 1, 1, 1, 1, 1, 1] ; L = [1, 1, 1, 1, 1, 1, 1, 1, 1] ; L = [1, 1, 1, 1, 1, 1, 1, 1, 1|...] ; L = (...TRUNCATED) | [0.010986328125,0.01611328125,0.01300048828125,-0.005035400390625,-0.0224609375,0.01031494140625,-0.(...TRUNCATED) | [106,4,268,2819,339,2203,68252,75606,87,35782,47,1957,759,121742,4171,35672,6275,442,1810,163,28864,(...TRUNCATED) | [0.1453857421875,0.052825927734375,0.0186614990234375,0.018218994140625,0.1624755859375,0.1441650390(...TRUNCATED) | embed |
4001148_c0 | 4001148 | prolog | 0 | "Title: lists inside a list\nProblem title: lists inside a list\nTags: prolog\nProblem: lists inside(...TRUNCATED) | "lists inside a list lists inside a list prolog lists inside a list i am writing a predicate in prol(...TRUNCATED) | [0.007171630859375,0.01025390625,-0.003692626953125,0.0167236328125,-0.01513671875,0.016845703125,0.(...TRUNCATED) | [
5303,
46132,
10,
7,
502,
4867,
32562,
1653,
2063,
67,
154109,
34627,
23,
179933,
47,
12765,
2174,
83,
36766,
157666
] | [0.2337646484375,0.2144775390625,0.06103515625,0.0264892578125,0.1390380859375,0.1737060546875,0.022(...TRUNCATED) | embed |
66713396_c2 | 66713396 | prolog | 2 | ", _230034490, toplevel_call, garbage_collected, stop_backtrace, wfs_call, execute_goal2, length:2, (...TRUNCATED) | ", _230034490, toplevel_call, garbage_collected, stop_backtrace, wfs_call, execute_goal2, length:2, (...TRUNCATED) | [0.0263671875,0.0296630859375,-0.01165771484375,-0.0106201171875,-0.0164794921875,0.0018692016601562(...TRUNCATED) | [6,4,101,304,7739,132993,5039,2663,67919,85763,3671,402,429,196352,297,7279,12620,39989,13,148,17447(...TRUNCATED) | [0.035888671875,0.06561279296875,0.056793212890625,0.12353515625,0.1380615234375,0.154296875,0.18994(...TRUNCATED) | embed |
Prolog StackOverflow Vector Dataset Datasheet
1. What This Dataset Is
This dataset is the Prolog-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 Prolog 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 Prolog 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_prolog_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
- 19