Dataset Viewer
Auto-converted to Parquet Duplicate
chunk_id
large_string
question_id
large_string
language
large_string
chunk_index
int64
chunk_text
large_string
sparse_text
large_string
dense_vector
list
sparse_indices
list
sparse_values
list
export_source
large_string
52719042_c0
52719042
php
0
Title: Date range slicing Problem title: Date range slicing Tags: mysql, php Problem: Date range slicing Code signals: Date
Date range slicing Date range slicing mysql php Date Date range slicing In MySQL I have a list of date ranges and I need to split it based on overlapping dates using php or mysql. Sample given below Date ranges I need output as shown below:
[ -0.0022125244140625, 0.0155029296875, -0.00299072265625, 0.0205078125, -0.0177001953125, 0.01373291015625, -0.01507568359375, 0.032470703125, -0.002471923828125, 0.02001953125, -0.01068115234375, 0.0234375, -0.0033111572265625, -0.0087890625, -0.0115966796875, 0.0125732421875, -0.017...
[ 25512, 37457, 28756, 21896, 759, 7, 99247, 3958, 360, 157146, 87, 765, 5303, 111, 5622, 3871, 47, 65450, 442, 35509, 98, 645, 143, 26783, 112474, 17368, 707, 947, 33209, 35064, 140992, 127887 ]
[ 0.1314697265625, 0.237548828125, 0.1756591796875, 0.12158203125, 0.121337890625, 0.03802490234375, 0.2037353515625, 0.205810546875, 0.0404052734375, 0.255859375, 0.015045166015625, 0.0170135498046875, 0.1279296875, 0.00189208984375, 0.1397705078125, 0.0858154296875, 0.057830810546875...
embed
8302823_c0
8302823
php
0
Title: yii url manager Problem title: yii url manager Tags: yii, php Problem: yii url manager Code signals: www.example.org
yii url manager yii url manager yii php www.example.org yii url manager I'm trying to match this URL: with these rules: I think it's valid but it does not work.
[ 0.005035400390625, 0.0185546875, 0.01171875, -0.0023040771484375, -0.00087738037109375, 0.01104736328125, 0.0098876953125, 0.016357421875, -0.0145263671875, -0.060546875, -0.020263671875, -0.03173828125, 0.0223388671875, 0.01123046875, 0.024169921875, 0.002166748046875, 0.00823974609...
[ 11180, 14, 25002, 31095, 3958, 3355, 11, 33209, 1478, 31577, 47, 14858, 903, 31862, 678, 6097, 91736, 5351, 442, 7, 35604, 1284, 14602, 959, 4488 ]
[ 0.1787109375, 0.1722412109375, 0.161865234375, 0.231689453125, 0.175537109375, 0.1346435546875, 0.167724609375, 0.189208984375, 0.161865234375, 0.0926513671875, 0.06097412109375, 0.2103271484375, 0.0816650390625, 0.2088623046875, 0.0838623046875, 0.06640625, 0.1741943359375, 0.1015...
embed
21878689_c0
21878689
php
0
Title: query the data day by day Problem title: query the data day by day Tags: php, mysql Problem: query the data day by day
query the data day by day query the data day by day php mysql query the data day by day i have this database table name clicks my quesion is how to count clicks by every day by userID i want output like hope my question is clear
[ 0.0186767578125, -0.0089111328125, -0.01708984375, 0.02978515625, 0.00063323974609375, 0.00714111328125, -0.0118408203125, 0.021240234375, 0.0057373046875, -0.0194091796875, -0.00112152099609375, -0.00408935546875, -0.0196533203125, -0.0050048828125, -0.00616455078125, 0.00860595703125...
[ 41, 1294, 70, 2053, 5155, 390, 6, 3958, 759, 99247, 903, 63399, 23180, 9351, 18158, 7, 6889, 3642, 47, 54529, 11907, 38937, 7146, 3444, 140992, 1884, 15673, 34735 ]
[ 0.14990234375, 0.141845703125, 0.09222412109375, 0.193115234375, 0.205810546875, 0.153076171875, 0.0245208740234375, 0.147216796875, 0.087158203125, 0.1363525390625, 0.034149169921875, 0.1341552734375, 0.14111328125, 0.0135498046875, 0.26220703125, 0.1038818359375, 0.081298828125, ...
embed
33593587_c0
33593587
php
0
"Title: PHP sorting a array\nProblem title: PHP sorting a array\nTags: arrays, php\nProblem: PHP sor(...TRUNCATED)
"PHP sorting a array PHP sorting a array arrays php PHP PHP sorting a array i´ve got this problem: (...TRUNCATED)
[0.01202392578125,0.0177001953125,0.000865936279296875,-0.01446533203125,-0.017822265625,0.001792907(...TRUNCATED)
[47302,12096,214,10,10298,53,4778,6,3958,17,4163,903,2967,2646,107730,29822,5,124326,71,1884,47,1143(...TRUNCATED)
[0.277099609375,0.26318359375,0.1165771484375,0.0743408203125,0.2418212890625,0.2164306640625,0.1192(...TRUNCATED)
embed
7094422_c0
7094422
php
0
"Title: PHP floor function\nProblem title: PHP floor function\nTags: php, floating-point\nProblem: P(...TRUNCATED)
"PHP floor function PHP floor function php floating-point PHP PHP floor function Does anyone know wh(...TRUNCATED)
[0.005126953125,-0.008544921875,0.01251220703125,-0.005828857421875,0.005401611328125,0.012390136718(...TRUNCATED)
[47302,74912,32354,3958,21917,26518,38496,101790,35672,3714,15400,139303,93657,17727,2203,305,418,6,(...TRUNCATED)
[0.261962890625,0.3232421875,0.198974609375,0.21875,0.1597900390625,0.1171875,0.148193359375,0.03001(...TRUNCATED)
embed
20993401_c0
20993401
php
0
"Title: Reorganise PHP array\nProblem title: Reorganise PHP array\nTags: php\nProblem: Reorganise PH(...TRUNCATED)
"Reorganise PHP array Reorganise PHP array php Reorganise PHP Reorganise PHP array I have a function(...TRUNCATED)
[0.0159912109375,0.00897216796875,-0.01055908203125,0.024169921875,-0.00323486328125,0.0022735595703(...TRUNCATED)
[853,125733,184,47302,10298,53,6,3958,87,765,32354,43799,2053,1295,20763,334,11435,183540,7,3934,118(...TRUNCATED)
[0.1392822265625,0.25634765625,0.1048583984375,0.26513671875,0.2137451171875,0.1861572265625,0.00949(...TRUNCATED)
embed
40783436_c0
40783436
php
0
"Title: php round 2e decimal to 0 or 5\nProblem title: php round 2e decimal to 0 or 5\nTags: php\nPr(...TRUNCATED)
"php round 2e decimal to 0 or 5 php round 2e decimal to 0 or 5 php php round 2e decimal to 0 or 5 i (...TRUNCATED)
[-0.0037994384765625,-0.00927734375,-0.0035247802734375,-0.0179443359375,0.009765625,0.0169677734375(...TRUNCATED)
[ 3958, 68807, 116, 13, 32380, 2749, 47, 757, 707, 190, 17, 3444, 3650, 18, 1892 ]
[0.2008056640625,0.1905517578125,0.118408203125,0.16259765625,0.1458740234375,0.13916015625,0.088012(...TRUNCATED)
embed
18552471_c0
18552471
php
0
"Title: How to do this by looping?\nProblem title: How to do this by looping?\nTags: php\nProblem: H(...TRUNCATED)
"How to do this by looping? How to do this by looping? php How How to do this by looping? How to do (...TRUNCATED)
[0.0081787109375,0.004364013671875,-0.0185546875,0.01226806640625,-0.00775146484375,0.00656127929687(...TRUNCATED)
[ 11249, 47, 54, 903, 390, 40956, 214, 32, 3958, 100, 87, 86171, 5423, 77336, 59499, 2363, 116311, 23, 10298, 53, 153 ]
[0.1236572265625,0.0987548828125,0.1236572265625,0.1387939453125,0.149658203125,0.283447265625,0.188(...TRUNCATED)
embed
27653717_c0
27653717
php
0
"Title: Undefined offset 0\nProblem title: Undefined offset 0\nTags: undefined, php\nProblem: Undefi(...TRUNCATED)
"Undefined offset 0 Undefined offset 0 undefined php Undefined Error Undefined offset 0 I have probl(...TRUNCATED)
[0.0162353515625,0.0228271484375,0.0081787109375,0.0076904296875,-0.001312255859375,-0.010498046875,(...TRUNCATED)
[ 79912, 5983, 297, 5773, 3509, 757, 9232, 3958, 212059, 765, 2967, 903, 18499, 26499, 83, 581, 23, 13315, 12 ]
[0.1383056640625,0.2064208984375,0.04833984375,0.228759765625,0.19775390625,0.21435546875,0.09204101(...TRUNCATED)
embed
3478227_c0
3478227
php
0
"Title: Add to an array value (+1)\nProblem title: Add to an array value (+1)\nTags: php\nProblem: A(...TRUNCATED)
"Add to an array value (+1) Add to an array value (+1) php Add Add to an array value (+1) I have an (...TRUNCATED)
[-0.004608154296875,0.009765625,-0.01422119140625,0.01068115234375,-0.0211181640625,-0.0014572143554(...TRUNCATED)
[29117,47,10298,53,34292,22183,17727,142,6,3958,87,765,147306,2053,6746,9513,3117,3444,15190,29458,6(...TRUNCATED)
[0.19189453125,0.1492919921875,0.24365234375,0.1663818359375,0.2470703125,0.2076416015625,0.18225097(...TRUNCATED)
embed
End of preview. Expand in Data Studio

PHP StackOverflow Vector Dataset Datasheet

1. What This Dataset Is

This dataset is the PHP-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 PHP 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 PHP 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_php_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
14