@equationalapplications/schema-org-llm-wiki 5.5.0 → 5.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -18,6 +18,41 @@ accuracy. This manifest selects the high-value warm-agent subset (~2 KB serializ
|
|
|
18
18
|
9-way classification) while keeping every type and property standard, so stored
|
|
19
19
|
facts and edges map 1:1 onto schema.org for future JSON-LD export.
|
|
20
20
|
|
|
21
|
+
## Why this is the GraphRAG ontology
|
|
22
|
+
|
|
23
|
+
This manifest is designed as the canonical taxonomy bundle for warm-agent GraphRAG: the 9 node types and 28 polymorphic edges cover the people, places, organizations, projects, events, and creative works that dominate personal and professional knowledge graphs. Pair it with `core-llm-wiki`'s `traverseGraph()` and you get a SQL-only GraphRAG stack with no Neo4j.
|
|
24
|
+
|
|
25
|
+
### Why a curated ontology prevents hallucination in edge extraction
|
|
26
|
+
|
|
27
|
+
The librarian and ingest LLM passes that write `llm_wiki_edges` only see this manifest's node types and edge properties in their prompt context. Without that constraint, an unconstrained LLM will invent edge types and node types on every call — producing a noisy graph where `WITH RECURSIVE` walks return orphaned nodes and arbitrary relationships.
|
|
28
|
+
|
|
29
|
+
With the manifest:
|
|
30
|
+
- **Every edge has a valid `(type, source_type, target_type)` triple** — the manifest validates edge structure and reduces invalid relationships.
|
|
31
|
+
- **Polymorphic edges** (`location`, `organizer`, `about`, `itemReviewed`) cover the cases where a single property name applies to many source/target type combinations.
|
|
32
|
+
- **Token budget stays small** — ~2 KB serialized, vs ~50 KB for the full schema.org catalog. Edge classification accuracy stays high.
|
|
33
|
+
|
|
34
|
+
### Use it with `core-llm-wiki` for GraphRAG
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
import { createWiki } from '@equationalapplications/core-llm-wiki';
|
|
38
|
+
import { schemaOrgWarmAgentManifest } from '@equationalapplications/schema-org-llm-wiki';
|
|
39
|
+
|
|
40
|
+
const wiki = createWiki(db, {
|
|
41
|
+
llmProvider,
|
|
42
|
+
config: {
|
|
43
|
+
ontology: {
|
|
44
|
+
mode: 'strict',
|
|
45
|
+
seedManifests: {
|
|
46
|
+
[entityId]: { mode: 'strict', manifest: schemaOrgWarmAgentManifest },
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
// After ingestDocument / runLibrarian populate edges:
|
|
53
|
+
const graph = await wiki.traverseGraph(entityId, { sourceId, maxDepth: 2 });
|
|
54
|
+
```
|
|
55
|
+
|
|
21
56
|
## Requirements
|
|
22
57
|
|
|
23
58
|
Requires `@equationalapplications/core-llm-wiki` at the same release or newer —
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equationalapplications/schema-org-llm-wiki",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.1",
|
|
4
4
|
"description": "Curated schema.org warm-agent ontology manifest for LLM Wiki Memory: 9 node types, 28 edges, fully schema.org-standard. Data-only.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"registry": "https://registry.npmjs.org"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@equationalapplications/core-llm-wiki": "5.5.
|
|
44
|
+
"@equationalapplications/core-llm-wiki": "5.5.1"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=20"
|