Mo7art commited on
Commit
cf18b5b
·
verified ·
1 Parent(s): 42af4ac

Add files using upload-large-folder tool

Browse files
README.md CHANGED
@@ -12,104 +12,126 @@ size_categories:
12
  - 1M<n<10M
13
  ---
14
 
15
- # Abap StackOverflow Vector Dataset Datasheet
16
 
17
- ## 1. What This Dataset Is
18
 
19
- This dataset is the Abap-specific vector shard of the Stack2Graph StackOverflow retrieval corpus.
20
- Each Hugging Face dataset repository contains exactly one language dataset.
21
 
22
- It is optimized for dense+sparse retrieval, Qdrant restoration, and embedding-based RAG experiments.
23
 
24
- It is used in the Stack2Graph project as the vector counterpart to the language-scoped RDF knowledge graph shards.
25
-
26
- See the Stack2Graph repository for more details:
27
  [https://github.com/tha-atlas/Stack2Graph](https://github.com/tha-atlas/Stack2Graph)
28
 
29
- ## 2. Repository Layout
30
 
31
  ```text
 
32
  dataset_manifest.json
33
- question_metadata_*.parquet
34
- chunk_records_*.parquet
35
- question_records_*.parquet
 
 
 
 
 
 
 
 
36
  ```
37
 
38
- - `dataset_manifest.json`: language-scoped manifest for this dataset shard.
39
- - `question_metadata_*.parquet`: per-question metadata and retrieval bookkeeping.
40
- - `chunk_records_*.parquet`: chunk-level vector rows when parent-child indexing is enabled.
41
- - `question_records_*.parquet`: question-level vector rows when chunking is disabled or exported alongside chunk data.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
- ## 3. Data Model And Coverage
44
 
45
- The dataset is derived from Stack Overflow questions selected for the Abap programming language.
46
- It contains the structured records needed to rebuild the Stack2Graph Qdrant collection for that language.
47
 
48
- Coverage scope:
49
 
50
- - records are retained when they match the Stack2Graph supported language-tag set
51
- - this repository contains only the Abap shard
52
- - the archive may contain both metadata-only and retrieval-ready vector rows depending on the export mode
53
 
54
- ## 4. Recommended Preprocessing
55
 
56
- 1. Read `dataset_manifest.json` first and use it as the source of truth for included Parquet files.
57
- 2. Load all Parquet shards for this repository into your vector indexing pipeline.
58
- 3. Rebuild or restore the Qdrant collection `stackoverflow_abap_vector`.
59
- 4. Preserve attribution and license metadata during downstream export.
60
 
61
- ## 5. Automatic Download And Vector DB Setup
 
 
 
 
 
 
62
 
63
- You do not need to regenerate embeddings from GraphDB to use this dataset.
64
 
65
- In the Stack2Graph repository, you can use the automation script
66
- `python -m experiment.load_hf_datasets_into_services --skip-kg` to download dataset artifacts
67
- and prepare the vector database service state automatically.
68
 
69
  Typical workflow:
70
 
71
- 1. Clone and configure Stack2Graph (`.env` with HF token and service paths).
72
- 1. Clone and configure Stack2Graph (`.env` with HF token and service paths).
73
- 1. Start required local services:
74
 
75
  ```bash
76
  docker compose up -d
77
  ```
78
 
79
- 1. Run the loader script:
80
 
81
  ```bash
82
- python -m experiment.load_hf_datasets_into_services --skip-kg
83
  ```
84
 
85
- For manual usage without automation, directly ingest the listed Parquet files into your vector database.
86
 
87
- ## 6. Quality Notes And Caveats
88
 
89
- - A Stack Overflow question may belong to multiple language shards when tagged with multiple languages.
90
- - Embeddings and sparse representations depend on the configured export pipeline and model versions.
91
- - As with community-generated data, content may include noise, bias, and temporal drift.
92
 
93
- ## 7. Intended Use
 
94
 
95
- - semantic retrieval and reranking
96
- - RAG and hybrid retriever experiments
97
- - vector database benchmarking and diagnostics
98
- - language-scoped developer tooling research
 
99
 
100
- ## 8. Limitations
101
 
102
- - Not a complete mirror of all Stack Overflow content.
103
- - Not all export modes include the same row types or chunk layouts.
104
- - Best used together with the Stack2Graph retrieval pipeline and Qdrant-compatible tooling.
 
105
 
106
- ## 9. Licensing And Attribution
107
 
108
- This dataset inherits Stack Overflow source licensing and attribution requirements.
109
- Ensure compliant attribution and redistribution practices in all derived artifacts.
110
 
111
- ## 10. Suggested Citation
112
 
113
- If you use this dataset, cite the Stack2Graph work:
114
 
115
  - Stack2Graph: A Structured Knowledge Representation of Stack Overflow Data for Retrieval-based Question Answering
 
12
  - 1M<n<10M
13
  ---
14
 
15
+ # Abap StackOverflow Vector Dataset
16
 
17
+ ## Summary
18
 
19
+ This repository contains the Abap shard of the Stack2Graph vector retrieval dataset.
20
+ Each Hugging Face dataset repository contains one programming-language shard and is intended to restore or rebuild the Qdrant collection `stackoverflow_abap_vector`.
21
 
22
+ The dataset is the vector counterpart to the Stack2Graph RDF knowledge graph. It is designed for hybrid retrieval, graph entry-point finding, and retrieval-augmented generation experiments over Stack Overflow content.
23
 
24
+ Stack2Graph source:
 
 
25
  [https://github.com/tha-atlas/Stack2Graph](https://github.com/tha-atlas/Stack2Graph)
26
 
27
+ ## Repository Layout
28
 
29
  ```text
30
+ README.md
31
  dataset_manifest.json
32
+ qdrant_snapshots/
33
+ collections_manifest.json
34
+ stackoverflow_abap_vector.tar.xz
35
+ stackoverflow_abap_vector.snapshot.xz.part_000
36
+ ...
37
+ question_metadata/
38
+ r0_00000.parquet
39
+ chunk_records/
40
+ r0_00000.parquet
41
+ question_records/
42
+ r0_00000.parquet
43
  ```
44
 
45
+ - `dataset_manifest.json`: language-scoped manifest listing the files in this shard.
46
+ - `qdrant_snapshots/collections_manifest.json`: language-scoped Qdrant snapshot manifest.
47
+ - `qdrant_snapshots/stackoverflow_abap_vector.*`: optional Qdrant restore artifact files for `stackoverflow_abap_vector`.
48
+ - `question_metadata/*.parquet`: question-level metadata used by parent-child chunk retrieval.
49
+ - `chunk_records/*.parquet`: chunk-level vector rows when parent-child indexing is enabled.
50
+ - `question_records/*.parquet`: question-level vector rows when non-chunked export is used.
51
+
52
+ The Hugging Face upload is one repository per language. During upload, the local leading language directory is removed, so local files such as `abap/chunk_records/r0_00000.parquet` appear in this repository as `chunk_records/r0_00000.parquet`.
53
+
54
+ ## Data Model
55
+
56
+ Rows are derived from Stack Overflow questions tagged for Abap.
57
+
58
+ The current Stack2Graph vector pipeline uses:
59
+
60
+ - dense vectors from `Qwen/Qwen3-Embedding-8B`
61
+ - 4096-dimensional dense embeddings with last-token pooling
62
+ - instruction-aware query embedding for retrieval
63
+ - sparse lexical vectors from `BAAI/bge-m3`
64
+ - unified question text containing title, tags, cleaned problem text, and code
65
+ - optional parent-child indexing where chunk hits collapse back to parent question IDs
66
 
67
+ When Qdrant snapshots are included, they are the fastest restore path. The Parquet files remain the portable fallback for rebuilding the collection.
68
 
69
+ ## Coverage
 
70
 
71
+ This repository contains only the Abap shard. A Stack Overflow question can appear in more than one language shard when it has multiple programming-language tags.
72
 
73
+ The dataset is not a complete Stack Overflow mirror. Full question and answer graph context lives in the corresponding Stack2Graph knowledge graph artifacts; the vector dataset stores retrieval rows, vectors, sparse weights, and routing metadata.
 
 
74
 
75
+ ## Recommended Use
76
 
77
+ Use this dataset for:
 
 
 
78
 
79
+ - semantic and hybrid retrieval
80
+ - Qdrant restore or ingestion tests
81
+ - Stack2Graph RAG experiments
82
+ - graph entry-point retrieval before QLever graph expansion
83
+ - vector database benchmarking and diagnostics
84
+
85
+ This dataset is not intended as a standalone supervised training dataset.
86
 
87
+ ## Restore With Stack2Graph
88
 
89
+ You do not need to regenerate embeddings to use this dataset.
 
 
90
 
91
  Typical workflow:
92
 
93
+ 1. Clone Stack2Graph and configure `.env` with service paths and HF token.
94
+ 2. Start local services:
 
95
 
96
  ```bash
97
  docker compose up -d
98
  ```
99
 
100
+ 3. Download and restore vector artifacts:
101
 
102
  ```bash
103
+ python -m experiment.sources.hf --skip-kg
104
  ```
105
 
106
+ The loader restores Qdrant snapshots when present and falls back to Parquet ingestion when snapshots are unavailable.
107
 
108
+ ## Manual Use
109
 
110
+ For manual use, inspect `dataset_manifest.json`, then either:
 
 
111
 
112
+ - restore the Qdrant snapshot artifacts under `qdrant_snapshots/`, or
113
+ - ingest the listed Parquet shards into a compatible vector database.
114
 
115
+ The target Qdrant collection name is:
116
+
117
+ ```text
118
+ stackoverflow_abap_vector
119
+ ```
120
 
121
+ ## Quality Notes
122
 
123
+ - Embedding quality depends on the configured Stack2Graph export pipeline and model versions.
124
+ - Sparse text can be generated from the same unified text as dense embeddings or from a lexical variant, depending on export configuration.
125
+ - Community-generated Stack Overflow content may contain errors, outdated information, bias, or incomplete answers.
126
+ - Rebuilding from Parquet may produce operational differences if Qdrant collection settings differ from the original export.
127
 
128
+ ## License And Attribution
129
 
130
+ This dataset is derived from Stack Overflow content and is distributed under `CC-BY-SA-4.0`.
131
+ Preserve required attribution and license notices when redistributing derived artifacts.
132
 
133
+ ## Citation
134
 
135
+ If you use this dataset, cite the Stack2Graph project and preserve Stack Overflow attribution requirements:
136
 
137
  - Stack2Graph: A Structured Knowledge Representation of Stack Overflow Data for Retrieval-based Question Answering
chunk_records/r0_00000.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3b4a481b3fc79032129bbcb0be2d1c086fe70a3a983c943473aea75bd0610335
3
- size 3524643
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a5352e8fe358598b1ad7d305ae17da5ba49cd568c71e9f76a961b39f6aeb327
3
+ size 3233586
chunk_records/r1_00000.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6f3eec92d2f0b5aee2941b5e1a6ba1c56e1f1bef2d08f56d33a5fe90f85c8229
3
- size 3529702
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38b9bd68d173f924d61ceb15be5669eb5af6548423190013975c12e380c6d827
3
+ size 3236173
chunk_records/r2_00000.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2f0f573aabaaa736a2f3c6611fa9e5865d82ae1cf6e57f114e3b13a9b41ed6a7
3
- size 3532836
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b096d36f4557150ecb58ad5796a76369e4e46738e3fef1b93d8167a1dee820c
3
+ size 3225225
chunk_records/r3_00000.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8bd59dee9abdf7af6e13a5b7698fb9c9593613f56ad6971cccb693db2ed265ab
3
- size 3533285
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e13de53b2fe7460b7c6d140b430847304aa244e44394478892455ac526463304
3
+ size 3218360
chunk_records/r4_00000.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f93b138544265234834545e3da0aaea786652c4d7ff33ad5121956c6cae6e6a5
3
- size 3519305
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59e8da94de148dc71455700c647aaf7a813ee8642a32a9152218d2cdc801a44d
3
+ size 3217009
chunk_records/r5_00000.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e7ed233101c9c8452c45356116ee1cb9e4f657d4fb2a44195d71db9434e43a76
3
- size 3541905
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:410115b1b41265e795b483f89954462b73c59c1196092acac428cb68a342f7af
3
+ size 3216580
chunk_records/r6_00000.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8ef70956713497e6c1611329bffb6f4907f10ebb34e6c787c08b17a160349ae6
3
- size 3538673
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a30279d540556dde87ea18ca1dc370b890da9efc08687ba190424ab96343b47
3
+ size 3219994
chunk_records/r7_00000.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9da8bacf1310dedd454e34f73bf2c28995c10219cb58c5b24a8fafc116899d5f
3
- size 3544124
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ed7edf3ac0bf2c60dfabc01c31fa6d749fc3f3bfb0dbda269b48c72d8b7d916
3
+ size 3226194
dataset_manifest.json CHANGED
@@ -5,49 +5,49 @@
5
  "category": "chunk_records",
6
  "language": "abap",
7
  "relative_path": "chunk_records/r0_00000.parquet",
8
- "rows": 524
9
  },
10
  {
11
  "category": "chunk_records",
12
  "language": "abap",
13
  "relative_path": "chunk_records/r1_00000.parquet",
14
- "rows": 524
15
  },
16
  {
17
  "category": "chunk_records",
18
  "language": "abap",
19
  "relative_path": "chunk_records/r2_00000.parquet",
20
- "rows": 523
21
  },
22
  {
23
  "category": "chunk_records",
24
  "language": "abap",
25
  "relative_path": "chunk_records/r3_00000.parquet",
26
- "rows": 523
27
  },
28
  {
29
  "category": "chunk_records",
30
  "language": "abap",
31
  "relative_path": "chunk_records/r4_00000.parquet",
32
- "rows": 523
33
  },
34
  {
35
  "category": "chunk_records",
36
  "language": "abap",
37
  "relative_path": "chunk_records/r5_00000.parquet",
38
- "rows": 523
39
  },
40
  {
41
  "category": "chunk_records",
42
  "language": "abap",
43
  "relative_path": "chunk_records/r6_00000.parquet",
44
- "rows": 523
45
  },
46
  {
47
  "category": "chunk_records",
48
  "language": "abap",
49
  "relative_path": "chunk_records/r7_00000.parquet",
50
- "rows": 523
51
  },
52
  {
53
  "category": "question_metadata",
@@ -58,5 +58,5 @@
58
  ],
59
  "language": "abap",
60
  "source": "vector_dataset_language_folder",
61
- "total_rows": 7648
62
  }
 
5
  "category": "chunk_records",
6
  "language": "abap",
7
  "relative_path": "chunk_records/r0_00000.parquet",
8
+ "rows": 508
9
  },
10
  {
11
  "category": "chunk_records",
12
  "language": "abap",
13
  "relative_path": "chunk_records/r1_00000.parquet",
14
+ "rows": 508
15
  },
16
  {
17
  "category": "chunk_records",
18
  "language": "abap",
19
  "relative_path": "chunk_records/r2_00000.parquet",
20
+ "rows": 508
21
  },
22
  {
23
  "category": "chunk_records",
24
  "language": "abap",
25
  "relative_path": "chunk_records/r3_00000.parquet",
26
+ "rows": 507
27
  },
28
  {
29
  "category": "chunk_records",
30
  "language": "abap",
31
  "relative_path": "chunk_records/r4_00000.parquet",
32
+ "rows": 507
33
  },
34
  {
35
  "category": "chunk_records",
36
  "language": "abap",
37
  "relative_path": "chunk_records/r5_00000.parquet",
38
+ "rows": 507
39
  },
40
  {
41
  "category": "chunk_records",
42
  "language": "abap",
43
  "relative_path": "chunk_records/r6_00000.parquet",
44
+ "rows": 507
45
  },
46
  {
47
  "category": "chunk_records",
48
  "language": "abap",
49
  "relative_path": "chunk_records/r7_00000.parquet",
50
+ "rows": 507
51
  },
52
  {
53
  "category": "question_metadata",
 
58
  ],
59
  "language": "abap",
60
  "source": "vector_dataset_language_folder",
61
+ "total_rows": 7521
62
  }
question_metadata/r0_00000.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9d5a4455110286ea8d053632e45552e5cff8d458a3c86572005085eefdf7b617
3
- size 4988449
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:728abdf89a17628bc4faa61e008575b5d0e43023a9c67087fb89ab3f413c49a7
3
+ size 125841