rust-kgdb 0.8.17 → 0.8.19
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/CHANGELOG.md +26 -0
- package/README.md +72 -46
- package/package.json +1 -8
- package/HYPERMIND_BENCHMARK_REPORT.md +0 -652
- package/IMPLEMENTATION_GUIDE.md +0 -404
- package/benchmark-frameworks.py +0 -568
- package/examples/DEMO_OUTPUT.md +0 -244
- package/examples/HYPERMIND_AGENT_OUTPUT.md +0 -673
- package/examples/boston-realestate-agent.js +0 -332
- package/examples/business-assertions.test.ts +0 -1196
- package/examples/core-concepts-demo.ts +0 -517
- package/examples/datalog-example.ts +0 -385
- package/examples/embeddings-example.ts +0 -376
- package/examples/euroleague-analytics-agent.js +0 -331
- package/examples/federation-demo.js +0 -166
- package/examples/fraud-detection-agent.js +0 -1669
- package/examples/fraud-memory-hypergraph.js +0 -658
- package/examples/fraud-underwriting-reallife-demo.js +0 -926
- package/examples/graphframes-example.ts +0 -367
- package/examples/hyperfederate-dprod-demo.js +0 -794
- package/examples/hyperfederate-hypermind-demo.js +0 -472
- package/examples/hypermind-agent-architecture.js +0 -1709
- package/examples/hypermind-complete-demo.js +0 -926
- package/examples/hypermind-deductive-demo.ts +0 -253
- package/examples/hypermind-e2e-demo.js +0 -447
- package/examples/hypermind-fraud-underwriter.ts +0 -672
- package/examples/legal-case-agent.js +0 -348
- package/examples/logs/boston-realestate-agent.log +0 -90
- package/examples/logs/euroleague-analytics-agent.log +0 -98
- package/examples/logs/fraud-detection-agent-llm-test.log +0 -426
- package/examples/logs/fraud-detection-agent.log +0 -426
- package/examples/logs/hypermind-e2e-demo-llm-fixed.log +0 -122
- package/examples/logs/hypermind-e2e-demo.log +0 -122
- package/examples/logs/legal-case-agent.log +0 -101
- package/examples/logs/underwriting-agent.log +0 -477
- package/examples/outputs/boston-realestate-output.txt +0 -92
- package/examples/outputs/euroleague-output.txt +0 -99
- package/examples/outputs/fraud-detection-output.txt +0 -428
- package/examples/outputs/hypermind-e2e-output.txt +0 -122
- package/examples/outputs/legal-case-output.txt +0 -102
- package/examples/outputs/underwriting-output.txt +0 -477
- package/examples/pregel-example.ts +0 -399
- package/examples/quadstore-capabilities-demo.js +0 -407
- package/examples/rpc-catalog-dprod-demo.js +0 -339
- package/examples/rpc-federation-sql-demo.js +0 -273
- package/examples/rpc-virtual-tables-demo.js +0 -268
- package/examples/underwriting-agent.js +0 -1713
- package/secure-agent-sandbox-demo.js +0 -469
- package/vanilla-vs-hypermind-benchmark.js +0 -641
- package/verified_benchmark_results.json +0 -307
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to the rust-kgdb TypeScript SDK will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.8.18] - 2025-12-24
|
|
6
|
+
|
|
7
|
+
### Documentation: Examples Now in Dedicated Repository
|
|
8
|
+
|
|
9
|
+
All examples now live in [hypermind-examples](https://github.com/gonnect-uk/hypermind-examples) - a dedicated repository with video demos, working code, and 100% pass rates.
|
|
10
|
+
|
|
11
|
+
#### Changes
|
|
12
|
+
|
|
13
|
+
- **README**: All example commands now point to hypermind-examples repo (not node_modules)
|
|
14
|
+
- **Package Size**: Reduced by removing bundled examples (users clone repo instead)
|
|
15
|
+
- **Clarity**: Single source of truth for all working demos
|
|
16
|
+
|
|
17
|
+
#### How to Run Examples
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
git clone https://github.com/gonnect-uk/hypermind-examples.git
|
|
21
|
+
cd hypermind-examples && npm install
|
|
22
|
+
npm run self-driving-car # 3D explainable AI demo
|
|
23
|
+
npm run brain # BRAIN fraud + underwriting
|
|
24
|
+
npm run euroleague # Basketball analytics
|
|
25
|
+
npm run boston # Real estate analysis
|
|
26
|
+
npm run legal # Legal case reasoning
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
5
31
|
## [0.8.17] - 2025-12-24
|
|
6
32
|
|
|
7
33
|
### Explainable AI for Autonomous Vehicles + Complete Demo Suite
|
package/README.md
CHANGED
|
@@ -31,27 +31,46 @@ Traditional LLM: BRAIN HyperMind Agent:
|
|
|
31
31
|
|
|
32
32
|
**Try it now:**
|
|
33
33
|
```bash
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
git clone https://github.com/gonnect-uk/hypermind-examples.git
|
|
35
|
+
cd hypermind-examples && npm install
|
|
36
|
+
npm run brain # BRAIN Fraud & Underwriting demo
|
|
36
37
|
```
|
|
37
38
|
|
|
38
39
|
---
|
|
39
40
|
|
|
40
|
-
## What's New in v0.8.
|
|
41
|
+
## What's New in v0.8.19
|
|
42
|
+
|
|
43
|
+
**All examples now in [hypermind-examples](https://github.com/gonnect-uk/hypermind-examples) repository**
|
|
44
|
+
|
|
45
|
+
### Real-World Demos That Actually Work
|
|
46
|
+
|
|
47
|
+
Most AI demos are impressive until you look under the hood. Ours are different—every answer is grounded in a knowledge graph, every recommendation has a reason, every conclusion has a proof.
|
|
41
48
|
|
|
42
|
-
|
|
49
|
+
| Demo | What It Proves | Why It Matters |
|
|
50
|
+
|------|----------------|----------------|
|
|
51
|
+
| **Digital Twin** | IoT + OWL reasoning for smart buildings | Decisions with SHA-256 proof trails |
|
|
52
|
+
| **Music Recommendation** | Graph similarity, not vibes | "Slayer for Metallica" because thrash metal lineage, not random |
|
|
53
|
+
| **Self-Driving Car** | Explainable perception decisions | Every brake/accelerate is SPARQL-derived |
|
|
54
|
+
| **BRAIN Fraud Detection** | Cross-database federation | KGDB + Snowflake + BigQuery in one query |
|
|
55
|
+
| **Euroleague Analytics** | Sports stats with deductive reasoning | 111 observations → 222 derived facts |
|
|
43
56
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
57
|
+
**The difference?** When we say "Megadeth is similar to Metallica," we can show you the graph path: same genre (thrash metal), shared influence (Black Sabbath), 1-hop distance. Not a probability. A derivation.
|
|
58
|
+
|
|
59
|
+
### Try It Now
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
git clone https://github.com/gonnect-uk/hypermind-examples.git
|
|
63
|
+
cd hypermind-examples && npm install
|
|
64
|
+
|
|
65
|
+
npm run digital-twin # IoT + Datalog rules
|
|
66
|
+
npm run music # Graph-based recommendations
|
|
67
|
+
npm run brain # Fraud + Underwriting
|
|
68
|
+
npm run self-driving-car # Explainable AV decisions
|
|
69
|
+
```
|
|
51
70
|
|
|
52
71
|
### Complete Working Examples
|
|
53
72
|
|
|
54
|
-
**All demos
|
|
73
|
+
**All demos verified:** [hypermind-examples](https://github.com/gonnect-uk/hypermind-examples)
|
|
55
74
|
|
|
56
75
|
```bash
|
|
57
76
|
git clone https://github.com/gonnect-uk/hypermind-examples.git
|
|
@@ -90,22 +109,23 @@ That's **real SPARQL**, **real results**, **real proofs**. No mocking. No hardco
|
|
|
90
109
|
|
|
91
110
|
### Demo Validation Results (2025-12-24)
|
|
92
111
|
|
|
93
|
-
All demos verified
|
|
112
|
+
All demos verified from local execution. See [hypermind-examples](https://github.com/gonnect-uk/hypermind-examples).
|
|
94
113
|
|
|
95
|
-
| Demo |
|
|
96
|
-
|
|
97
|
-
| **
|
|
98
|
-
| **
|
|
99
|
-
| **
|
|
100
|
-
| **
|
|
101
|
-
| **
|
|
114
|
+
| Demo | Tests | Pass Rate | What You'll See |
|
|
115
|
+
|------|-------|-----------|-----------------|
|
|
116
|
+
| **Digital Twin** | 13 | 100% | IoT sensors → Datalog rules → HVAC decisions with proofs |
|
|
117
|
+
| **Music Recommendation** | 14 | 93.3% | KG-grounded: "Slayer, Megadeth for Metallica" with graph paths |
|
|
118
|
+
| **Self-Driving Car** | 3 | 100% | Explainable AV: "Brake because pedestrian in crosswalk" |
|
|
119
|
+
| **BRAIN Fraud** | 5 | 100% | Cross-database: KGDB + Snowflake + BigQuery |
|
|
120
|
+
| **Euroleague Analytics** | 18 | 100% | ThinkingReasoner: 111 obs → 222 derived facts |
|
|
121
|
+
| **Boston Real Estate** | 19 | 100% | OWL SymmetricProperty: adjacentTo auto-inferred |
|
|
122
|
+
| **US Legal Case** | 20 | 100% | Legal research with precedent chains |
|
|
102
123
|
|
|
103
|
-
**
|
|
104
|
-
-
|
|
105
|
-
-
|
|
106
|
-
-
|
|
107
|
-
-
|
|
108
|
-
- Episodic memory for pattern matching
|
|
124
|
+
**What makes these different from typical demos:**
|
|
125
|
+
- No mocking. Real SPARQL, real data, real results.
|
|
126
|
+
- Every recommendation explains WHY (not just WHAT)
|
|
127
|
+
- Proofs are SHA-256 hashes over canonical derivation chains
|
|
128
|
+
- LLM is optional—core reasoning is deterministic
|
|
109
129
|
|
|
110
130
|
---
|
|
111
131
|
|
|
@@ -2729,9 +2749,12 @@ main().catch(console.error)
|
|
|
2729
2749
|
|
|
2730
2750
|
## HyperMind Architecture Deep Dive
|
|
2731
2751
|
|
|
2732
|
-
For
|
|
2752
|
+
For complete working examples, see [hypermind-examples](https://github.com/gonnect-uk/hypermind-examples):
|
|
2733
2753
|
```bash
|
|
2734
|
-
|
|
2754
|
+
git clone https://github.com/gonnect-uk/hypermind-examples.git
|
|
2755
|
+
cd hypermind-examples && npm install
|
|
2756
|
+
npm run euroleague # Euroleague analytics demo
|
|
2757
|
+
npm run brain # BRAIN Fraud & Underwriting
|
|
2735
2758
|
```
|
|
2736
2759
|
|
|
2737
2760
|
### Full System Architecture
|
|
@@ -2980,7 +3003,7 @@ Result: ✅ 15 results returned in 2.3ms
|
|
|
2980
3003
|
|
|
2981
3004
|
## HyperMind in Action: Complete Agent Conversation
|
|
2982
3005
|
|
|
2983
|
-
This is what a real HyperMind agent interaction looks like.
|
|
3006
|
+
This is what a real HyperMind agent interaction looks like. See [hypermind-examples](https://github.com/gonnect-uk/hypermind-examples) for working demos.
|
|
2984
3007
|
|
|
2985
3008
|
```
|
|
2986
3009
|
================================================================================
|
|
@@ -3097,11 +3120,13 @@ This is what a real HyperMind agent interaction looks like. Run `node examples/h
|
|
|
3097
3120
|
- **Vanilla LLM**: "Some claims may be suspicious" (no data access, no proof)
|
|
3098
3121
|
- **HyperMind**: Specific findings + rule derivations + cryptographic audit trail
|
|
3099
3122
|
|
|
3100
|
-
**Try it yourself:**
|
|
3123
|
+
**Try it yourself:** [hypermind-examples](https://github.com/gonnect-uk/hypermind-examples)
|
|
3101
3124
|
```bash
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3125
|
+
git clone https://github.com/gonnect-uk/hypermind-examples.git
|
|
3126
|
+
cd hypermind-examples && npm install
|
|
3127
|
+
npm run brain # BRAIN Fraud & Underwriting pipeline
|
|
3128
|
+
npm run euroleague # Euroleague analytics demo
|
|
3129
|
+
npm run legal # US Legal Case reasoning
|
|
3105
3130
|
```
|
|
3106
3131
|
|
|
3107
3132
|
---
|
|
@@ -3403,9 +3428,10 @@ async function runFraudDetection() {
|
|
|
3403
3428
|
runFraudDetection()
|
|
3404
3429
|
```
|
|
3405
3430
|
|
|
3406
|
-
**Run it yourself:**
|
|
3431
|
+
**Run it yourself:** [hypermind-examples](https://github.com/gonnect-uk/hypermind-examples)
|
|
3407
3432
|
```bash
|
|
3408
|
-
|
|
3433
|
+
git clone https://github.com/gonnect-uk/hypermind-examples.git
|
|
3434
|
+
cd hypermind-examples && npm install && npm run brain
|
|
3409
3435
|
```
|
|
3410
3436
|
|
|
3411
3437
|
**Actual Output:**
|
|
@@ -3496,9 +3522,10 @@ console.log('Auto-approve:', decisions.autoApprove) // [["BUS002"]]
|
|
|
3496
3522
|
console.log('Refer to UW:', decisions.referToUW) // [["BUS003"]]
|
|
3497
3523
|
```
|
|
3498
3524
|
|
|
3499
|
-
**Run it yourself:**
|
|
3525
|
+
**Run it yourself:** [hypermind-examples](https://github.com/gonnect-uk/hypermind-examples)
|
|
3500
3526
|
```bash
|
|
3501
|
-
|
|
3527
|
+
git clone https://github.com/gonnect-uk/hypermind-examples.git
|
|
3528
|
+
cd hypermind-examples && npm install && npm run brain
|
|
3502
3529
|
```
|
|
3503
3530
|
|
|
3504
3531
|
**Actual Output:**
|
|
@@ -3985,18 +4012,17 @@ async function runFraudDetectionAgent() {
|
|
|
3985
4012
|
|
|
3986
4013
|
### Run the Complete Examples
|
|
3987
4014
|
|
|
3988
|
-
|
|
3989
|
-
# Fraud Detection Agent (full pipeline)
|
|
3990
|
-
node examples/fraud-detection-agent.js
|
|
4015
|
+
See [hypermind-examples](https://github.com/gonnect-uk/hypermind-examples) for all working demos:
|
|
3991
4016
|
|
|
3992
|
-
|
|
3993
|
-
|
|
4017
|
+
```bash
|
|
4018
|
+
git clone https://github.com/gonnect-uk/hypermind-examples.git
|
|
4019
|
+
cd hypermind-examples && npm install
|
|
3994
4020
|
|
|
3995
|
-
#
|
|
3996
|
-
|
|
4021
|
+
# BRAIN Fraud & Underwriting (full pipeline)
|
|
4022
|
+
npm run brain
|
|
3997
4023
|
|
|
3998
|
-
# With real LLM (
|
|
3999
|
-
OPENAI_API_KEY=sk-proj-...
|
|
4024
|
+
# With real LLM (set API key)
|
|
4025
|
+
OPENAI_API_KEY=sk-proj-... npm run brain
|
|
4000
4026
|
```
|
|
4001
4027
|
|
|
4002
4028
|
### The Complete Picture
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rust-kgdb",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.19",
|
|
4
4
|
"description": "High-performance RDF/SPARQL database with AI agent framework and cross-database federation. GraphDB (449ns lookups, 5-11x faster than RDFox), HyperFederate (KGDB + Snowflake + BigQuery), GraphFrames analytics, Datalog reasoning, HNSW vector embeddings. HyperMindAgent for schema-aware query generation with audit trails. W3C SPARQL 1.1 compliant. Native performance via Rust + NAPI-RS.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -77,17 +77,10 @@
|
|
|
77
77
|
"index.js",
|
|
78
78
|
"index.d.ts",
|
|
79
79
|
"hypermind-agent.js",
|
|
80
|
-
"secure-agent-sandbox-demo.js",
|
|
81
|
-
"vanilla-vs-hypermind-benchmark.js",
|
|
82
|
-
"benchmark-frameworks.py",
|
|
83
|
-
"verified_benchmark_results.json",
|
|
84
|
-
"examples/",
|
|
85
80
|
"ontology/",
|
|
86
81
|
"README.md",
|
|
87
82
|
"CLAUDE.md",
|
|
88
83
|
"DESIGN.md",
|
|
89
|
-
"IMPLEMENTATION_GUIDE.md",
|
|
90
|
-
"HYPERMIND_BENCHMARK_REPORT.md",
|
|
91
84
|
"CHANGELOG.md",
|
|
92
85
|
"*.node"
|
|
93
86
|
]
|