added
This commit is contained in:
1 parent
08c48d268c
commit
d8e8186597
9 files changed
+2132
-204
No files matched your search
@@ -0,0 +1,835 @@
|
||||
# Skill: Semantic QA Materialization
|
||||
|
||||
Human prompt to complete this skill:
|
||||
|
||||
Using the attached skill, referencing the chunks.json and the <file-name> attached, create the qa.json file. For more reference, see the attached README.md file for the overall process and where the qa.json fits, and if needed the cis-guided...skill.md file, which likely you will not need at this point, is added for context. Reference the attached skills and prior outputs for structural consistency.
|
||||
|
||||
## Overview
|
||||
|
||||
This skill generates a structured `qa.json` reasoning layer from semantically structured content.
|
||||
|
||||
The QA layer is not simply a FAQ system.
|
||||
|
||||
It is semantic interaction infrastructure for:
|
||||
|
||||
- AI retrieval;
|
||||
- semantic search;
|
||||
- embeddings;
|
||||
- RAG systems;
|
||||
- graph traversal;
|
||||
- agent interaction;
|
||||
- workflow execution;
|
||||
- ontology enrichment;
|
||||
- semantic routing;
|
||||
- future economic access systems.
|
||||
|
||||
The purpose of this layer is to help AI systems and humans:
|
||||
|
||||
- understand the content;
|
||||
- navigate the corpus;
|
||||
- synthesize ideas across chunks;
|
||||
- execute tasks;
|
||||
- identify workflows;
|
||||
- discover relationships;
|
||||
- interact with knowledge programmatically.
|
||||
|
||||
This skill is designed to work across:
|
||||
|
||||
- static websites;
|
||||
- documentation systems;
|
||||
- white papers;
|
||||
- newsletters;
|
||||
- transcripts;
|
||||
- research libraries;
|
||||
- educational systems;
|
||||
- product knowledgebases;
|
||||
- AI-native publishing systems;
|
||||
- agent-facing knowledge systems;
|
||||
- monetized knowledge systems.
|
||||
|
||||
---
|
||||
|
||||
# Core Architectural Principle
|
||||
|
||||
The QA layer is:
|
||||
|
||||
- a semantic retrieval layer;
|
||||
- a reasoning layer;
|
||||
- a routing layer;
|
||||
- an interaction layer;
|
||||
- an execution support layer.
|
||||
|
||||
It is NOT merely:
|
||||
|
||||
- marketing FAQs;
|
||||
- website support questions;
|
||||
- simplistic summarization.
|
||||
|
||||
Questions and answers should help AI systems understand:
|
||||
|
||||
- meaning;
|
||||
- relationships;
|
||||
- applicability;
|
||||
- workflows;
|
||||
- actions;
|
||||
- conceptual structure;
|
||||
- navigation paths;
|
||||
- operational next steps.
|
||||
|
||||
---
|
||||
|
||||
# Input Requirements
|
||||
|
||||
The source content should already be semantically structured.
|
||||
|
||||
Recommended inputs:
|
||||
|
||||
- Markdown with semantic chunk boundaries;
|
||||
- `chunks.json`;
|
||||
- CIS-informed metadata;
|
||||
- semantic labels;
|
||||
- heading hierarchy.
|
||||
|
||||
The preferred source is:
|
||||
|
||||
`chunks.json`
|
||||
|
||||
because it already contains:
|
||||
|
||||
- semantic structure;
|
||||
- summaries;
|
||||
- tags;
|
||||
- concepts;
|
||||
- entities;
|
||||
- context.
|
||||
|
||||
---
|
||||
|
||||
# QA Generation Principles
|
||||
|
||||
Generate questions that improve:
|
||||
|
||||
- retrieval;
|
||||
- semantic understanding;
|
||||
- synthesis;
|
||||
- navigation;
|
||||
- workflow execution;
|
||||
- ontology discovery;
|
||||
- agent usability.
|
||||
|
||||
Questions should vary across:
|
||||
|
||||
- specificity;
|
||||
- abstraction;
|
||||
- phrasing;
|
||||
- audience;
|
||||
- intent;
|
||||
- reasoning depth.
|
||||
|
||||
The QA layer should represent how humans and AI agents naturally interact with the knowledge.
|
||||
|
||||
---
|
||||
|
||||
# Types Of Questions To Generate
|
||||
|
||||
Generate a mix of:
|
||||
|
||||
## 1. Factual Questions
|
||||
|
||||
Direct retrieval questions.
|
||||
|
||||
Example:
|
||||
|
||||
- What is IndustrySIG?
|
||||
- What does SIG stand for?
|
||||
|
||||
Purpose:
|
||||
|
||||
- fast retrieval;
|
||||
- grounding;
|
||||
- direct lookup.
|
||||
|
||||
---
|
||||
|
||||
## 2. Conceptual Questions
|
||||
|
||||
Meaning and interpretation questions.
|
||||
|
||||
Example:
|
||||
|
||||
- Why does iNDX believe findability matters in the AI era?
|
||||
- How does AI-native indexing differ from traditional search visibility?
|
||||
|
||||
Purpose:
|
||||
|
||||
- reasoning;
|
||||
- conceptual understanding;
|
||||
- semantic synthesis.
|
||||
|
||||
---
|
||||
|
||||
## 3. Comparative Questions
|
||||
|
||||
Compare systems, concepts, or approaches.
|
||||
|
||||
Example:
|
||||
|
||||
- How does NetworkSIG differ from traditional professional networking platforms?
|
||||
- How do IndustrySIG and TerraSIG serve different functions?
|
||||
|
||||
Purpose:
|
||||
|
||||
- differentiation;
|
||||
- semantic mapping;
|
||||
- ontology development.
|
||||
|
||||
---
|
||||
|
||||
## 4. Procedural Questions
|
||||
|
||||
Explain workflows or operational steps.
|
||||
|
||||
Example:
|
||||
|
||||
- How can someone become an Industry Indexer?
|
||||
- How does someone participate in Snap For Science?
|
||||
|
||||
Purpose:
|
||||
|
||||
- task execution;
|
||||
- onboarding;
|
||||
- workflow support.
|
||||
|
||||
---
|
||||
|
||||
## 5. Navigational Questions
|
||||
|
||||
Help AI systems or users locate information.
|
||||
|
||||
Example:
|
||||
|
||||
- Where can I find the white paper about decentralized networking?
|
||||
- Which section explains ecological intelligence?
|
||||
|
||||
Purpose:
|
||||
|
||||
- routing;
|
||||
- corpus navigation;
|
||||
- retrieval optimization.
|
||||
|
||||
---
|
||||
|
||||
## 6. Strategic Questions
|
||||
|
||||
High-level implication or systems-thinking questions.
|
||||
|
||||
Example:
|
||||
|
||||
- Why is decentralized discoverability important for small businesses?
|
||||
- What role does structured discovery play in economic participation?
|
||||
|
||||
Purpose:
|
||||
|
||||
- strategic reasoning;
|
||||
- systems understanding;
|
||||
- long-range synthesis.
|
||||
|
||||
---
|
||||
|
||||
## 7. Synthesis Questions
|
||||
|
||||
Combine multiple chunks or systems into one answer.
|
||||
|
||||
Example:
|
||||
|
||||
- How do the four iNDX systems reinforce one another?
|
||||
- How do IndustrySIG and NetworkSIG work together?
|
||||
|
||||
Purpose:
|
||||
|
||||
- multi-hop reasoning;
|
||||
- graph traversal;
|
||||
- cross-chunk synthesis.
|
||||
|
||||
---
|
||||
|
||||
# Question Quality Rules
|
||||
|
||||
Questions should:
|
||||
|
||||
- sound natural;
|
||||
- reflect realistic user or agent behavior;
|
||||
- vary in phrasing;
|
||||
- vary in specificity;
|
||||
- avoid repetition;
|
||||
- improve retrieval diversity.
|
||||
|
||||
Generate both:
|
||||
|
||||
- broad questions;
|
||||
- narrow questions.
|
||||
|
||||
Include both:
|
||||
|
||||
- human phrasing;
|
||||
- AI-agent-style retrieval phrasing.
|
||||
|
||||
---
|
||||
|
||||
# Answer Rules
|
||||
|
||||
Answers must:
|
||||
|
||||
- remain grounded strictly in source content;
|
||||
- avoid hallucination;
|
||||
- avoid unsupported claims;
|
||||
- avoid speculation;
|
||||
- preserve original meaning.
|
||||
|
||||
Answers should:
|
||||
|
||||
- be concise but complete;
|
||||
- optimize for retrieval clarity;
|
||||
- preserve semantic fidelity;
|
||||
- support downstream embeddings.
|
||||
|
||||
Do NOT:
|
||||
|
||||
- rewrite the original meaning;
|
||||
- add external knowledge;
|
||||
- inject opinions;
|
||||
- infer unsupported relationships.
|
||||
|
||||
---
|
||||
|
||||
# Cross-Chunk Synthesis Rules
|
||||
|
||||
Questions MAY reference multiple chunks.
|
||||
|
||||
Use:
|
||||
|
||||
```json
|
||||
"knowledge_ids": []
|
||||
"chunk_ids": []
|
||||
```
|
||||
|
||||
to support:
|
||||
|
||||
- multi-hop reasoning;
|
||||
- semantic synthesis;
|
||||
- graph traversal;
|
||||
- cross-document retrieval.
|
||||
|
||||
Example:
|
||||
|
||||
```json
|
||||
"knowledge_ids": [
|
||||
"kid-123",
|
||||
"kid-456"
|
||||
]
|
||||
```
|
||||
|
||||
This is strongly encouraged when concepts naturally connect.
|
||||
|
||||
---
|
||||
|
||||
# QA Types
|
||||
|
||||
Each QA entry should include:
|
||||
|
||||
```json
|
||||
"qa_type": ""
|
||||
```
|
||||
|
||||
Recommended values:
|
||||
|
||||
- factual
|
||||
- conceptual
|
||||
- comparative
|
||||
- procedural
|
||||
- navigational
|
||||
- strategic
|
||||
- synthesis
|
||||
- workflow
|
||||
- glossary
|
||||
|
||||
Purpose:
|
||||
|
||||
- semantic routing;
|
||||
- retrieval weighting;
|
||||
- reasoning selection;
|
||||
- agent orchestration.
|
||||
|
||||
---
|
||||
|
||||
# Intent Classification
|
||||
|
||||
Each QA entry should include:
|
||||
|
||||
```json
|
||||
"intent": ""
|
||||
```
|
||||
|
||||
Recommended values:
|
||||
|
||||
- discover
|
||||
- understand
|
||||
- compare
|
||||
- evaluate
|
||||
- execute
|
||||
- navigate
|
||||
- participate
|
||||
- contribute
|
||||
- summarize
|
||||
- learn
|
||||
- research
|
||||
- implement
|
||||
|
||||
Purpose:
|
||||
|
||||
- agent routing;
|
||||
- workflow execution;
|
||||
- future monetization systems;
|
||||
- retrieval prioritization.
|
||||
|
||||
---
|
||||
|
||||
# Actionability Layer
|
||||
|
||||
If the content references:
|
||||
|
||||
- workflows;
|
||||
- templates;
|
||||
- tools;
|
||||
- operational processes;
|
||||
- onboarding flows;
|
||||
- participation systems;
|
||||
- execution steps;
|
||||
|
||||
then include an `actionability` object.
|
||||
|
||||
Example:
|
||||
|
||||
```json
|
||||
"actionability": {
|
||||
"has_workflow": true,
|
||||
"tools": [],
|
||||
"processes": [],
|
||||
"next_steps": []
|
||||
}
|
||||
```
|
||||
|
||||
This helps future systems:
|
||||
|
||||
- execute workflows;
|
||||
- guide users;
|
||||
- support AI agents;
|
||||
- generate next-step recommendations.
|
||||
|
||||
Do NOT invent workflows that are not supported by the source content.
|
||||
|
||||
---
|
||||
|
||||
# Entities And Concepts
|
||||
|
||||
Each QA entry should include lightweight semantic extraction:
|
||||
|
||||
```json
|
||||
"entities": [],
|
||||
"concepts": [],
|
||||
"tags": []
|
||||
```
|
||||
|
||||
Purpose:
|
||||
|
||||
- semantic filtering;
|
||||
- ontology enrichment;
|
||||
- embeddings;
|
||||
- graph construction;
|
||||
- retrieval ranking.
|
||||
|
||||
Avoid excessive tagging.
|
||||
|
||||
Prefer meaningful semantic signals.
|
||||
|
||||
---
|
||||
|
||||
# Audience Classification
|
||||
|
||||
If feasible, include:
|
||||
|
||||
```json
|
||||
"audience": []
|
||||
```
|
||||
|
||||
Examples:
|
||||
|
||||
- business owners
|
||||
- researchers
|
||||
- developers
|
||||
- industry participants
|
||||
- conservation leaders
|
||||
- educators
|
||||
- AI practitioners
|
||||
|
||||
Purpose:
|
||||
|
||||
- routing;
|
||||
- personalization;
|
||||
- retrieval refinement.
|
||||
|
||||
---
|
||||
|
||||
# Source Grounding
|
||||
|
||||
Each QA entry should include:
|
||||
|
||||
```json
|
||||
"source_chunks": []
|
||||
```
|
||||
|
||||
These should reference the literal chunk sources used to generate the answer.
|
||||
|
||||
Example:
|
||||
|
||||
```json
|
||||
"source_chunks": [
|
||||
"chk-abc123"
|
||||
]
|
||||
```
|
||||
|
||||
Purpose:
|
||||
|
||||
- provenance;
|
||||
- trust;
|
||||
- grounding;
|
||||
- future citations;
|
||||
- paywall preview systems.
|
||||
|
||||
---
|
||||
|
||||
# Related Questions
|
||||
|
||||
If useful, include:
|
||||
|
||||
```json
|
||||
"related_questions": []
|
||||
```
|
||||
|
||||
Purpose:
|
||||
|
||||
- graph traversal;
|
||||
- semantic expansion;
|
||||
- recommendation systems;
|
||||
- agent reasoning chains.
|
||||
|
||||
---
|
||||
|
||||
# Materialization Levels
|
||||
|
||||
## Level 1 — Lightweight QA Retrieval
|
||||
|
||||
Use for:
|
||||
|
||||
- simple websites;
|
||||
- blogs;
|
||||
- newsletters;
|
||||
- early prototypes.
|
||||
|
||||
Includes:
|
||||
|
||||
- question;
|
||||
- answer;
|
||||
- qa_type.
|
||||
|
||||
Purpose:
|
||||
|
||||
Simple semantic retrieval.
|
||||
|
||||
---
|
||||
|
||||
## Level 2 — Enhanced Semantic QA
|
||||
|
||||
Use for:
|
||||
|
||||
- structured websites;
|
||||
- knowledgebases;
|
||||
- white papers;
|
||||
- documentation.
|
||||
|
||||
Includes:
|
||||
|
||||
- qa_type;
|
||||
- intent;
|
||||
- tags;
|
||||
- concepts;
|
||||
- entities;
|
||||
- source_chunks.
|
||||
|
||||
Purpose:
|
||||
|
||||
Better retrieval and semantic routing.
|
||||
|
||||
Recommended default for most iNDX website pages.
|
||||
|
||||
---
|
||||
|
||||
## Level 3 — Graph-Aware QA
|
||||
|
||||
Use for:
|
||||
|
||||
- ontology-aware systems;
|
||||
- research libraries;
|
||||
- AI-native publishing systems;
|
||||
- agent-facing systems.
|
||||
|
||||
Includes:
|
||||
|
||||
- knowledge_ids;
|
||||
- chunk_ids;
|
||||
- relationships;
|
||||
- synthesis questions;
|
||||
- audience;
|
||||
- actionability.
|
||||
|
||||
Purpose:
|
||||
|
||||
Support graph traversal and multi-hop reasoning.
|
||||
|
||||
---
|
||||
|
||||
## Level 4 — Agent-Executable QA
|
||||
|
||||
Use for:
|
||||
|
||||
- operational agent systems;
|
||||
- workflow execution systems;
|
||||
- task automation systems.
|
||||
|
||||
Includes:
|
||||
|
||||
- executable workflows;
|
||||
- procedural decomposition;
|
||||
- tool references;
|
||||
- operational constraints;
|
||||
- execution hints.
|
||||
|
||||
Purpose:
|
||||
|
||||
Allow AI systems to execute tasks directly from QA structures.
|
||||
|
||||
---
|
||||
|
||||
## Level 5 — Economic And Policy-Aware QA
|
||||
|
||||
Use for:
|
||||
|
||||
- monetized systems;
|
||||
- regulated systems;
|
||||
- permissioned systems;
|
||||
- agent-to-agent commerce systems.
|
||||
|
||||
Includes:
|
||||
|
||||
- access rights;
|
||||
- economic terms;
|
||||
- permissions;
|
||||
- pricing;
|
||||
- trust metadata;
|
||||
- policy overlays.
|
||||
|
||||
Purpose:
|
||||
|
||||
Support programmable access and AI-native commerce.
|
||||
|
||||
---
|
||||
|
||||
# Recommended Default Schema
|
||||
|
||||
```json
|
||||
{
|
||||
"document": {
|
||||
"title": "",
|
||||
"slug": "",
|
||||
"materialization_level": 2,
|
||||
"generated_at": "",
|
||||
"source_document": ""
|
||||
},
|
||||
|
||||
"qa_pairs": [
|
||||
{
|
||||
"qa_id": "",
|
||||
|
||||
"question": "",
|
||||
"answer": "",
|
||||
|
||||
"qa_type": "",
|
||||
"intent": "",
|
||||
|
||||
"knowledge_ids": [],
|
||||
"chunk_ids": [],
|
||||
|
||||
"source_chunks": [],
|
||||
|
||||
"entities": [],
|
||||
"concepts": [],
|
||||
"tags": [],
|
||||
|
||||
"audience": [],
|
||||
|
||||
"related_questions": [],
|
||||
|
||||
"actionability": {
|
||||
"has_workflow": false,
|
||||
"tools": [],
|
||||
"processes": [],
|
||||
"next_steps": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# Corpus-Specific Guidance
|
||||
|
||||
## Static Websites
|
||||
|
||||
Recommended level:
|
||||
|
||||
Level 2
|
||||
|
||||
Focus on:
|
||||
|
||||
- discoverability;
|
||||
- semantic retrieval;
|
||||
- navigation;
|
||||
- conceptual understanding.
|
||||
|
||||
Avoid excessive metadata complexity.
|
||||
|
||||
---
|
||||
|
||||
## Documentation
|
||||
|
||||
Recommended level:
|
||||
|
||||
Level 2 or 3
|
||||
|
||||
Include:
|
||||
|
||||
- workflows;
|
||||
- prerequisites;
|
||||
- dependencies;
|
||||
- execution steps.
|
||||
|
||||
---
|
||||
|
||||
## White Papers
|
||||
|
||||
Recommended level:
|
||||
|
||||
Level 2 or 3
|
||||
|
||||
Focus on:
|
||||
|
||||
- conceptual synthesis;
|
||||
- strategic implications;
|
||||
- ontology relationships;
|
||||
- research retrieval.
|
||||
|
||||
---
|
||||
|
||||
## Research Libraries
|
||||
|
||||
Recommended level:
|
||||
|
||||
Level 3 or 4
|
||||
|
||||
Focus on:
|
||||
|
||||
- graph traversal;
|
||||
- semantic lineage;
|
||||
- synthesis;
|
||||
- evidence relationships.
|
||||
|
||||
---
|
||||
|
||||
## Monetized Knowledge Systems
|
||||
|
||||
Recommended level:
|
||||
|
||||
Level 4 or 5
|
||||
|
||||
Include:
|
||||
|
||||
- previews;
|
||||
- permissions;
|
||||
- value signaling;
|
||||
- economic routing.
|
||||
|
||||
---
|
||||
|
||||
# Important Architectural Principle
|
||||
|
||||
The QA layer is:
|
||||
|
||||
semantic interaction infrastructure
|
||||
|
||||
—not merely FAQ generation.
|
||||
|
||||
Over time this layer may evolve into:
|
||||
|
||||
- executable workflows;
|
||||
- semantic APIs;
|
||||
- agent interaction contracts;
|
||||
- retrieval orchestration layers;
|
||||
- AI-native execution interfaces.
|
||||
|
||||
Design the QA layer with future graph and agent systems in mind.
|
||||
|
||||
---
|
||||
|
||||
# Final Output Requirement
|
||||
|
||||
Output a COMPLETE valid `qa.json` file.
|
||||
|
||||
Do NOT output:
|
||||
|
||||
- markdown commentary;
|
||||
- explanations;
|
||||
- partial fragments;
|
||||
- pseudo-JSON.
|
||||
|
||||
The final output should be:
|
||||
|
||||
- production-ready;
|
||||
- machine-readable;
|
||||
- semantically grounded;
|
||||
- suitable for direct ingestion into downstream systems.
|
||||
|
||||
# Chunk Coverage Validation
|
||||
|
||||
After QA generation completes:
|
||||
|
||||
1. Compare all chunk_id values in chunks.json
|
||||
2. Compare all referenced chunk_ids in qa.json
|
||||
3. Identify:
|
||||
- orphaned chunks;
|
||||
- over-referenced chunks;
|
||||
- under-referenced chunks.
|
||||
|
||||
Recommended minimum:
|
||||
|
||||
- every meaningful chunk should have at least one QA reference;
|
||||
- strategic chunks should have multiple QA references;
|
||||
- synthesis chunks should connect across multiple chunks.
|
||||
|
||||
Possible exclusions:
|
||||
|
||||
- placeholders;
|
||||
- decorative fragments;
|
||||
- empty UI scaffolding;
|
||||
- forms.
|
||||
|
||||
Reference in new issue
Block a user