Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 3 new columns ({'id', 'description', 'name'}) and 3 missing columns ({'weight', 'target', 'source'}).
This happened while the csv dataset builder was generating data using
hf://datasets/AdvaithMagic/P-KG/flat_graph/nodes.csv (at revision 62a982f21affc999f2aa4b815d0a6a446eb8ef4f), ['hf://datasets/AdvaithMagic/P-KG@62a982f21affc999f2aa4b815d0a6a446eb8ef4f/flat_graph/edges.csv', 'hf://datasets/AdvaithMagic/P-KG@62a982f21affc999f2aa4b815d0a6a446eb8ef4f/flat_graph/nodes.csv', 'hf://datasets/AdvaithMagic/P-KG@62a982f21affc999f2aa4b815d0a6a446eb8ef4f/hypergraph/hyperedge_members.csv', 'hf://datasets/AdvaithMagic/P-KG@62a982f21affc999f2aa4b815d0a6a446eb8ef4f/hypergraph/hyperedges.csv', 'hf://datasets/AdvaithMagic/P-KG@62a982f21affc999f2aa4b815d0a6a446eb8ef4f/hypergraph/nodes.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1848, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
pa_table = table_cast(pa_table, self._schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
id: string
name: string
type: string
description: string
attributes: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 841
to
{'source': Value('string'), 'target': Value('string'), 'type': Value('string'), 'weight': Value('float64'), 'attributes': Value('float64')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1850, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
...<4 lines>...
)
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 3 new columns ({'id', 'description', 'name'}) and 3 missing columns ({'weight', 'target', 'source'}).
This happened while the csv dataset builder was generating data using
hf://datasets/AdvaithMagic/P-KG/flat_graph/nodes.csv (at revision 62a982f21affc999f2aa4b815d0a6a446eb8ef4f), ['hf://datasets/AdvaithMagic/P-KG@62a982f21affc999f2aa4b815d0a6a446eb8ef4f/flat_graph/edges.csv', 'hf://datasets/AdvaithMagic/P-KG@62a982f21affc999f2aa4b815d0a6a446eb8ef4f/flat_graph/nodes.csv', 'hf://datasets/AdvaithMagic/P-KG@62a982f21affc999f2aa4b815d0a6a446eb8ef4f/hypergraph/hyperedge_members.csv', 'hf://datasets/AdvaithMagic/P-KG@62a982f21affc999f2aa4b815d0a6a446eb8ef4f/hypergraph/hyperedges.csv', 'hf://datasets/AdvaithMagic/P-KG@62a982f21affc999f2aa4b815d0a6a446eb8ef4f/hypergraph/nodes.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
source string | target string | type string | weight float64 | attributes null |
|---|---|---|---|---|
auto-cot | cot | extends | 1 | null |
self-consistency | cot | extends | 1 | null |
logicot | cot | extends | 1 | null |
cos | cot | extends | 1 | null |
tot | cot | extends | 1 | null |
thot | cot | extends | 1 | null |
chain-of-table | cot | extends | 1 | null |
echo | auto-cot | extends | 1 | null |
logic-of-thought | cot | extends | 1 | null |
cd-cot | cot | extends | 1 | null |
r-cot | cot | extends | 1 | null |
cod | cot | extends | 1 | null |
complex-cot | cot | extends | 1 | null |
ccot | cot | extends | 1 | null |
contrastive-sc | self-consistency | extends | 1 | null |
faithful-cot | cot | extends | 1 | null |
pot | cot | extends | 1 | null |
pal | cot | extends | 1 | null |
coc | cot | extends | 1 | null |
scot | cot | extends | 1 | null |
code-prompting | cot | extends | 1 | null |
least-to-most | cot | extends | 1 | null |
plan-and-solve | cot | extends | 1 | null |
mathprompter | cot | extends | 1 | null |
active-prompt | cot | extends | 1 | null |
iap | cot | extends | 1 | null |
analogical-reasoning | cot | extends | 1 | null |
synthetic-prompting | cot | extends | 1 | null |
maieutic | cot | extends | 1 | null |
metacognitive | cot | extends | 1 | null |
cove | cot | extends | 1 | null |
thor | cot | extends | 1 | null |
coe | cot | extends | 1 | null |
decomp | cot | extends | 1 | null |
ensemble-refinement | cot | extends | 1 | null |
ensemble-refinement | self-consistency | extends | 1 | null |
verify-and-edit | cot | extends | 1 | null |
verify-and-edit | self-consistency | extends | 1 | null |
fed-sp-dp | cot | extends | 1 | null |
fed-sp-dp | self-consistency | extends | 1 | null |
decomp | least-to-most | extends | 1 | null |
metacognitive | plan-and-solve | extends | 1 | null |
active-prompt | self-consistency | extends | 1 | null |
contrastive-sc | ccot | extends | 1 | null |
complex-cot | self-consistency | extends | 1 | null |
got | tot | extends | 1 | null |
bot | tot | extends | 1 | null |
xot | tot | extends | 1 | null |
con | rag | extends | 1 | null |
cok | rag | extends | 1 | null |
implicit-rag | rag | extends | 1 | null |
graph-rag | rag | extends | 1 | null |
gnn-rag | rag | extends | 1 | null |
agentic-rag | rag | extends | 1 | null |
hyde | rag | extends | 1 | null |
query2doc | rag | extends | 1 | null |
selfmem | rag | extends | 1 | null |
meta-rag | rag | extends | 1 | null |
cok | cot | extends | 1 | null |
cove | rag | extends | 1 | null |
art | cot | extends | 1 | null |
react | cot | extends | 1 | null |
dater | binder | extends | 1 | null |
chain-of-table | dater | extends | 1 | null |
coc | pot | extends | 1 | null |
multibot | pot | extends | 1 | null |
faithful-cot | pal | extends | 1 | null |
s2a | instructed-prompting | extends | 1 | null |
few-shot | zero-shot | extends | 1 | null |
reflexion | react | extends | 1 | null |
self-discover | cot | extends | 1 | null |
skeleton-of-thought | cot | extends | 1 | null |
cumulative-reasoning | tot | extends | 1 | null |
multi-agent-debate | self-consistency | extends | 1 | null |
ama | few-shot | extends | 1 | null |
take-step-back | cot | extends | 1 | null |
self-refine | cot | extends | 1 | null |
self-consistency | alg-majority-voting | uses_algorithm | 1 | null |
cd-cot | alg-majority-voting | uses_algorithm | 1 | null |
complex-cot | alg-majority-voting | uses_algorithm | 1 | null |
contrastive-sc | alg-majority-voting | uses_algorithm | 1 | null |
ensemble-refinement | alg-majority-voting | uses_algorithm | 1 | null |
fed-sp-dp | alg-majority-voting | uses_algorithm | 1 | null |
diverse | alg-majority-voting | uses_algorithm | 1 | null |
multibot | alg-majority-voting | uses_algorithm | 1 | null |
tot | alg-tree-search | uses_algorithm | 1 | null |
maieutic | alg-tree-search | uses_algorithm | 1 | null |
tot | alg-backtracking | uses_algorithm | 1 | null |
got | alg-backtracking | uses_algorithm | 1 | null |
pot | alg-code-execution | uses_algorithm | 1 | null |
pal | alg-code-execution | uses_algorithm | 1 | null |
coc | alg-code-execution | uses_algorithm | 1 | null |
mathprompter | alg-code-execution | uses_algorithm | 1 | null |
scratchpad | alg-code-execution | uses_algorithm | 1 | null |
binder | alg-code-execution | uses_algorithm | 1 | null |
dater | alg-code-execution | uses_algorithm | 1 | null |
faithful-cot | alg-code-execution | uses_algorithm | 1 | null |
multibot | alg-code-execution | uses_algorithm | 1 | null |
rag | alg-retrieval | uses_algorithm | 1 | null |
con | alg-retrieval | uses_algorithm | 1 | null |
End of preview.
P-KG - From "The Missing Link: Knowledge Graph-Guided Discovery of Novel Prompt Compositions (A.S. Kumar et al., 2026)"
This repository contains the knowledge graph and hypergraph utilised in the work "The Missing Link: Knowledge Graph-Guided Discovery of Novel Prompt Compositions (A.S. Kumar et al., 2026)".
Licensing
This data is released under the Creative Commons Attribution 4.0 International (CC-BY-4.0) license. You are free to share, copy, and adapt this dataset for any purpose, including commercially, provided you give appropriate credit.
Data Schema & Ontologies
The dataset uses a shared vocabulary defined in ontology.ttl. The core classes include:
Technique: Prompt engineering techniques (e.g., Chain-of-Thought, ReAct).AlgorithmicComponent: Components containing execution, search, or retrieval logic.PromptComponent: Components defining prompt structures (examples, constraints).DataFlow: Components handling loop, feedback, or decomposition flows.Task: Evaluation datasets and tasks (e.g., GSM8K, HumanEval).CognitiveCapability: Intermediate capability nodes mapping Techniques to Tasks.BenchmarkResult: Specific model outputs on benchmarks.
Directory Structure
/
βββ README.md # This documentation file
βββ metadata.json # Dataset metadata, versioning, and summary statistics
βββ ontology.ttl # Shared OWL ontology defining classes and properties
βββ flat_graph/ # Flat graph representation (binary relations)
β βββ nodes.csv # Flat graph node table
β βββ edges.csv # Flat graph edge table
β βββ graph.json # Unified hierarchical JSON graph
β βββ graph.ttl # RDF Turtle triples representation
β βββ node_features.npy # NumPy embedding matrix [num_nodes, 384] for nodes
βββ hypergraph/ # Hypergraph representation (set-based techniques)
βββ nodes.csv # Hypergraph node table (excludes Techniques)
βββ hyperedges.csv # Hyperedges (Techniques) table
βββ hyperedge_members.csv # Join table linking hyperedges to member nodes
βββ hypergraph.json # Unified hierarchical JSON hypergraph
βββ hypergraph.ttl # RDF Turtle reified hypergraph representation
βββ node_features.npy # NumPy embedding matrix [num_nodes, 384] for nodes
Dataset Statistics
Flat Graph
- Nodes: 242
- Edges: 779
- Node Embeddings:
flat_graph/node_features.npyhas shape[242, 384](384-dimensional SentenceTransformer embeddings generated using theall-MiniLM-L6-v2model).
Hypergraph
- Nodes (non-Technique members): 151
- Hyperedges (Technique entities): 91
- Node Embeddings:
hypergraph/node_features.npyhas shape[151, 384].
- Downloads last month
- 1