Datasets:
id stringlengths 36 36 | question_id int64 42 12.1M | chunk_index int32 0 24 | embedding_text stringlengths 43 13.3k | dense_tokens int32 10 1.02k | sparse_tokens int32 11 1.02k | languages listlengths 1 5 | tags listlengths 1 6 | payload_json stringlengths 411 569 | dense list | sparse_indices listlengths 8 477 | sparse_values listlengths 8 477 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3d0a2a75-634e-5d56-af2f-f4a1cb0a1eff | 42 | 0 | Title: Best way to allow plugins for a PHP application
I am starting a new web application in PHP and this time around I want to create something that people can extend by using a plugin interface.
How does one go about writing 'hooks' into their code so that plugins can attach to specific events?
| 64 | 66 | [
"php"
] | [
"php",
"plugins",
"architecture",
"hook"
] | {"accepted_answer_id":77,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":"2023-04-03T08:29:18.587000+00:00","creation_date":"2008-08-01T12:50:18.587000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["php"],"last_activity_date":"2023-04-03T08:03:31.597000+00:00","last_edit_date":"2015-12-... | [
0.0086669921875,
-0.0059356689453125,
0.00890350341796875,
-0.00403594970703125,
0.0199432373046875,
-0.0167388916015625,
-0.0219573974609375,
0.00884246826171875,
-0.021484375,
-0.00409698486328125,
-0.0233917236328125,
0.0295562744140625,
0.0298004150390625,
-0.0059967041015625,
-0.006... | [
7,
23,
47,
100,
221,
243,
497,
831,
903,
934,
1467,
1632,
1672,
1733,
3395,
3444,
3525,
3917,
3934,
9844,
10932,
11249,
11345,
17368,
18151,
28282,
29458,
32562,
38415,
43042,
47302,
47353,
48962,
63769,
65042,
69993,
72134,
101758
] | [
0.1640625,
0.058349609375,
0.0625,
0.0849609375,
0.010009765625,
0.12890625,
0.1767578125,
0.0595703125,
0.037353515625,
0.158203125,
0.08984375,
0.00390625,
0.0478515625,
0.060546875,
0.068359375,
0.0810546875,
0.036865234375,
0.1044921875,
0.076171875,
0.0235595703125,
0.05... |
0a9de65d-f492-532f-9641-b757ce6bb985 | 85 | 0 | Title: Flat file databases
What are the best practices around creating flat file database structures in PHP?
A lot of more matured PHP flat file frameworks out there which I attempt to implement SQL-like query syntax which is over the top for my purposes in most cases. (I would just use a database at that point).
... | 87 | 94 | [
"php",
"sql"
] | [
"php",
"sql",
"database",
"flat-file"
] | {"accepted_answer_id":154,"answer_count":11,"chunk_count":1,"chunk_index":0,"closed_date":"2015-10-22T13:43:51.340000+00:00","creation_date":"2008-08-01T14:19:52.510000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["php","sql"],"last_activity_date":"2022-03-07T02:25:38.080000+00:00","last_edit_date":"... | [
0.011260986328125,
-0.03399658203125,
-0.00978851318359375,
0.0033416748046875,
0.0294342041015625,
-0.01213836669921875,
-0.00021898746490478516,
0.007358551025390625,
-0.01389312744140625,
0.005451202392578125,
-0.036590576171875,
0.01641845703125,
0.0145416259765625,
-0.0206451416015625... | [
7,
23,
41,
645,
1286,
1294,
1810,
2663,
2684,
2685,
2806,
2965,
4127,
4527,
5062,
5915,
6002,
6275,
10932,
11435,
18151,
19336,
23718,
27650,
29479,
31251,
41361,
45646,
47302,
48962,
49878,
50218,
60042,
63399,
66139,
80866,
81887,
86531,
... | [
0.027587890625,
0.010498046875,
0.0654296875,
0.045654296875,
0.0244140625,
0.035400390625,
0.013427734375,
0.07177734375,
0.04541015625,
0.00439453125,
0.02001953125,
0.119140625,
0.0263671875,
0.0419921875,
0.09765625,
0.032958984375,
0.06982421875,
0.0281982421875,
0.025512695... |
15b1689c-7149-5487-9c57-2405454d71fd | 126 | 0 | "Title: How would you access Object properties from within an object method?\n\nWhat is the \"purist(...TRUNCATED) | 282 | 311 | [
"java",
"php"
] | [
"java",
"php",
"oop",
"theory"
] | "{\"accepted_answer_id\":127,\"answer_count\":18,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\"(...TRUNCATED) | [-0.01549530029296875,0.01165008544921875,0.0017080307006835938,0.0013599395751953125,0.025665283203(...TRUNCATED) | [4,5,6,7,10,47,54,56,58,64,74,87,100,111,132,136,186,214,237,297,442,450,509,621,720,903,939,959,126(...TRUNCATED) | [0.0029296875,0.029296875,0.0029296875,0.00341796875,0.004150390625,0.0029296875,0.0184326171875,0.1(...TRUNCATED) |
79be4ef1-2593-58a1-af89-d5256e14deda | 146 | 0 | "Title: How do I track file downloads\n\nI have a website that plays mp3s in a flash player. If a us(...TRUNCATED) | 188 | 200 | [
"php"
] | [
"php",
"apache",
"logging",
"download",
"analytics"
] | "{\"accepted_answer_id\":152,\"answer_count\":8,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\":(...TRUNCATED) | [0.0171966552734375,-0.0234375,-0.00989532470703125,-0.0215606689453125,-0.0072174072265625,-0.01166(...TRUNCATED) | [7,47,54,87,363,459,678,1467,1556,1774,1799,2394,2806,2809,3126,3642,3714,3789,3917,4002,4165,4383,5(...TRUNCATED) | [0.0169677734375,0.076171875,0.0147705078125,0.033203125,0.138671875,0.0281982421875,0.0029296875,0.(...TRUNCATED) |
519a8109-e147-5930-8869-7aa85a5e80ca | 227 | 0 | "Title: Create a tag cloud by wrapping array values in h1 through h6 tags based on a mapping array o(...TRUNCATED) | 117 | 132 | [
"php"
] | [
"php",
"arrays",
"mapping",
"tag-cloud"
] | "{\"accepted_answer_id\":2943318,\"answer_count\":9,\"chunk_count\":1,\"chunk_index\":0,\"closed_dat(...TRUNCATED) | [0.0209503173828125,-0.0037059783935546875,0.0136871337890625,0.031890869140625,0.01422882080078125,(...TRUNCATED) | [4,7,10,22,23,53,70,87,106,138,291,418,459,483,538,583,594,618,758,765,910,1096,1286,1419,1436,1681,(...TRUNCATED) | [0.0238037109375,0.09130859375,0.010986328125,0.04541015625,0.0380859375,0.076171875,0.0181884765625(...TRUNCATED) |
e4855fff-96ea-5c5f-9387-e9076f921ced | 328 | 0 | "Title: PHP Session Security\n\nWhat are some guidelines for maintaining responsible session securit(...TRUNCATED) | 39 | 42 | [
"php"
] | [
"security",
"php"
] | "{\"accepted_answer_id\":7488,\"answer_count\":13,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\(...TRUNCATED) | [0.0,-0.0074005126953125,-0.019805908203125,0.0116119384765625,0.01320648193359375,-0.00064849853515(...TRUNCATED) | [23,32,38,100,214,621,645,678,756,1467,1632,1672,1733,3060,3551,3687,4677,4865,47302,48031,48748,489(...TRUNCATED) | [0.0159912109375,0.0220947265625,0.02978515625,0.04443359375,0.05810546875,0.023681640625,0.01696777(...TRUNCATED) |
ceb3f2ca-7f52-5078-b4a8-0811198a0bb1 | 588 | 0 | "Title: Best way to access Exchange using PHP?\n\nI'm writing a CMS application in PHP and one of th(...TRUNCATED) | 273 | 276 | [
"php"
] | [
"php",
"windows",
"exchange-server",
"webdav",
"mapi"
] | "{\"accepted_answer_id\":633,\"answer_count\":9,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\":(...TRUNCATED) | [-0.0197296142578125,-0.0223236083984375,-0.00247955322265625,-0.00909423828125,0.001964569091796875(...TRUNCATED) | [23,54,78,98,138,294,313,375,678,831,1467,1764,1995,3340,3555,3773,3871,3917,4002,4027,4216,4488,451(...TRUNCATED) | [0.010498046875,0.0174560546875,0.0152587890625,0.010498046875,0.068359375,0.1298828125,0.0319824218(...TRUNCATED) |
b1aab724-781b-5fce-9804-4e987f77d135 | 657 | 0 | "Title: Encrypting Passwords\n\nWhat is the fastest, yet secure way to encrypt passwords (in PHP pre(...TRUNCATED) | 86 | 94 | [
"php"
] | [
"php",
"encryption",
"passwords"
] | "{\"accepted_answer_id\":669,\"answer_count\":8,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\":(...TRUNCATED) | [-0.0031375885009765625,-0.0194854736328125,0.01416778564453125,0.0149993896484375,0.04327392578125,(...TRUNCATED) | [7,22,47,67,70,73,83,98,214,357,360,442,525,759,1221,2174,3917,4165,4271,4488,5036,10484,10723,11389(...TRUNCATED) | [0.0849609375,0.09521484375,0.05517578125,0.03271484375,0.0216064453125,0.011962890625,0.0458984375,(...TRUNCATED) |
70c09848-68c5-5b3f-b2e0-2c6aef247cd9 | 696 | 0 | "Title: Connect PHP to IBM i (AS/400)\n\nI've got an upcoming project wherein I will need to connect(...TRUNCATED) | 269 | 290 | [
"php"
] | [
"php",
"database",
"odbc",
"db2",
"ibm-midrange"
] | "{\"accepted_answer_id\":704,\"answer_count\":9,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\":(...TRUNCATED) | [-0.023834228515625,-0.0279083251953125,0.01532745361328125,-0.0560302734375,0.006793975830078125,-0(...TRUNCATED) | [4,7,10,13,17,18,24,39,47,54,64,70,71,87,98,100,110,111,136,186,272,277,297,304,310,352,363,397,442,(...TRUNCATED) | [0.001953125,0.00341796875,0.003662109375,0.00244140625,0.185546875,0.0029296875,0.076171875,0.13085(...TRUNCATED) |
03ffcaa5-0fc4-5455-a256-c3de87f91e7c | 879 | 0 | "Title: Are PHP Variables passed by value or by reference?\n\nAre PHP variables passed by value or b(...TRUNCATED) | 24 | 26 | [
"php"
] | [
"php",
"variables",
"pass-by-reference",
"pass-by-value"
] | "{\"accepted_answer_id\":885,\"answer_count\":16,\"chunk_count\":1,\"chunk_index\":0,\"closed_date\"(...TRUNCATED) | [0.03729248046875,0.0034961700439453125,0.0079498291015625,0.004840850830078125,0.0193634033203125,-(...TRUNCATED) | [
7,
390,
707,
13566,
15901,
34292,
47302,
48962,
77336,
91067,
111477,
115081
] | [0.0284423828125,0.1669921875,0.0927734375,0.1298828125,0.072265625,0.271484375,0.30859375,0.0622558(...TRUNCATED) |
Stack2Graph vector database: php
This release contains 1654913 text chunks from Stack Overflow with dense and
sparse embeddings, selected by the producer's programming-language memberships.
Memberships can overlap: a chunk may occur in several language datasets. These
labels describe programming languages, not the natural language of the text.
extra-languages, when present, contains source rows without a language match.
An absent language is never replaced with an empty dataset.
Files and fields
data/vectors-*.parquet contains Zstandard-compressed tables. Each row has a
stable id, question_id, chunk_index, embedding_text, model token counts,
languages, tags, dense, sparse_indices, sparse_values and payload_json.
The last field preserves the complete original Qdrant payload, including source
snapshot identity, source dates, scores and answer flags when available.
Dense values are float32 representations of the producer's stored float16
values; this does not recover precision discarded during embedding. Sparse
weights preserve float32 values and uint32 token indices.
On Hugging Face, load the vectors config with datasets.load_dataset and use
streaming for large releases. The dataset viewer uses only the explicitly listed
Parquet files. data/dataset.tar.gz is the portable package also used by MDC:
extract it to obtain the same Parquet bytes, README and publication.json.
The archive is an exchange dataset, not a Qdrant binary snapshot. Import in
bounded batches using each row's id, named dense/sparse vectors and decoded
payload_json. Recreate collection settings deliberately for your Qdrant version.
Provenance and reproducibility
{
"after_id": -9223372036854775808,
"chunk_overlap": 128,
"chunk_tokens": 1024,
"collection": "stackoverflow_questions",
"dense_dimension": 4096,
"dense_model": "Qwen/Qwen3-Embedding-8B",
"dense_revision": "1d8ad4ca9b3dd8059ad90a75d4983776a23d44af",
"question_limit": null,
"registry_digest": "d2a7357c04e7f47d9bb598189aeeb7db0680d6b35f0d9695d8d2e544121afb8e",
"snapshot_digest": "56fe643952cec74b17ea13d91edc8ad95181326156177c94cce48d3fed9834b9",
"snapshot_id": "stackexchange_20260630_sakura",
"sparse_model": "BAAI/bge-m3",
"sparse_revision": "5617a9f61b028005a4858fdac845db406aefb181"
}
Export identity: bc9f696c9588560e3be547879c58b96c50c64e3828495471bee43e504392ec7f.
Point-ID configuration digest: d16d58c9e7b8007664e3f77b4e9f4a1689a8b8de2c6727b479595621b25e3460.
Point IDs use the same snapshot/configuration/question/chunk UUID derivation as
the project's Qdrant loader. publication.json lists exact file sizes, SHA-256
hashes, row count, source identity and model/chunking settings. On HF,
release.json additionally verifies all managed remote files.
Only locally finalized runs with matching stage/report counts are published.
The uploader does not re-embed text or query a running database.
Uses and limitations
Intended for dense, sparse and hybrid retrieval, retrieval-augmented generation and reproducible search experiments. Retrieval quality depends on the pinned models and chunking configuration. Overlapping chunks and language memberships are not independent samples; split evaluations by source question to avoid leakage. Source questions can contain personal data, obsolete code, errors and biases. Source-window limits are recorded above. No retrieval benchmark or completeness beyond the recorded source window is claimed.
Attribution and licensing
Derived from Stack Overflow content. Preserve the original post/author attribution and applicable Stack Overflow licensing when redistributing or displaying source content. Question IDs and source snapshot are retained to resolve source posts. This publication declares CC BY-SA 4.0; embedding model licenses and any upstream obligations still apply. Pinned model names and revisions above identify their model cards for review.
Source and procedures: https://github.com/tha-atlas/Stack2Graph. When citing this dataset, include the dataset repository, immutable release revision, source snapshot, export identity, model revisions and the project.
Project citation: Kleybolte, Ventura and Zarcone (2026), Stack2Graph, KG-LLM at LREC26. https://doi.org/10.63317/583q4d3mwbdu.
- Downloads last month
- 104