@soulcraft/brainy 0.63.0 → 1.0.0-rc.2
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 +296 -95
- package/bin/brainy.js +1121 -1409
- package/dist/brainyData.d.ts +185 -44
- package/dist/brainyData.js +727 -40
- package/dist/chat/BrainyChat.js +5 -11
- package/dist/cortex/neuralImport.js +1 -3
- package/dist/index.d.ts +3 -4
- package/dist/index.js +5 -6
- package/dist/pipeline.d.ts +15 -271
- package/dist/pipeline.js +25 -586
- package/package.json +3 -1
- package/dist/augmentations/cortexSense.d.ts +0 -196
- package/dist/augmentations/cortexSense.js +0 -747
- package/dist/chat/brainyChat.d.ts +0 -42
- package/dist/chat/brainyChat.js +0 -340
- package/dist/cortex/cliWrapper.d.ts +0 -32
- package/dist/cortex/cliWrapper.js +0 -209
- package/dist/cortex/cortex-legacy.d.ts +0 -269
- package/dist/cortex/cortex-legacy.js +0 -2523
- package/dist/cortex/cortex.d.ts +0 -264
- package/dist/cortex/cortex.js +0 -2463
- package/dist/cortex/serviceIntegration.d.ts +0 -156
- package/dist/cortex/serviceIntegration.js +0 -384
- package/dist/sequentialPipeline.d.ts +0 -113
- package/dist/sequentialPipeline.js +0 -417
- package/dist/utils/modelLoader.d.ts +0 -12
- package/dist/utils/modelLoader.js +0 -88
package/README.md
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|

|
|
4
4
|
|
|
5
5
|
[](https://badge.fury.io/js/%40soulcraft%2Fbrainy)
|
|
6
|
+
[](https://github.com/soulcraftlabs/brainy/releases/tag/v1.0.0-rc.1)
|
|
6
7
|
[](https://opensource.org/licenses/MIT)
|
|
7
|
-
[](https://soulcraft.com)
|
|
9
|
+
[](https://soulcraft.com)
|
|
9
10
|
[](https://nodejs.org/)
|
|
10
11
|
[](https://www.typescriptlang.org/)
|
|
11
12
|
|
|
@@ -19,6 +20,61 @@
|
|
|
19
20
|
|
|
20
21
|
---
|
|
21
22
|
|
|
23
|
+
## 💖 **Support Brainy's Development**
|
|
24
|
+
|
|
25
|
+
<div align="center">
|
|
26
|
+
|
|
27
|
+
**Brainy is 100% open source and free forever!** Help us keep it that way:
|
|
28
|
+
|
|
29
|
+
[](https://github.com/soulcraftlabs/brainy)
|
|
30
|
+
[](https://soulcraft.com)
|
|
31
|
+
[](https://github.com/soulcraftlabs/brainy)
|
|
32
|
+
|
|
33
|
+
**Every sponsorship helps us:** Build more features • Fix bugs faster • Keep Brainy free
|
|
34
|
+
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 🎉 **NEW: Brainy 1.0 - The Unified API**
|
|
40
|
+
|
|
41
|
+
**The Great Cleanup is complete!** Brainy 1.0 introduces the **unified API** - ONE way to do everything with just **9 core methods**:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# Install the latest release candidate
|
|
45
|
+
npm install @soulcraft/brainy@rc
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
```javascript
|
|
49
|
+
import { BrainyData, NounType, VerbType } from '@soulcraft/brainy'
|
|
50
|
+
|
|
51
|
+
const brain = new BrainyData()
|
|
52
|
+
await brain.init()
|
|
53
|
+
|
|
54
|
+
// 🎯 THE 9 UNIFIED METHODS - One way to do everything!
|
|
55
|
+
await brain.add("Smart data") // 1. Smart addition
|
|
56
|
+
await brain.search("query", 10) // 2. Unified search
|
|
57
|
+
await brain.import(["data1", "data2"]) // 3. Bulk import
|
|
58
|
+
await brain.addNoun("John", NounType.Person) // 4. Typed entities
|
|
59
|
+
await brain.addVerb(id1, id2, VerbType.Knows) // 5. Relationships
|
|
60
|
+
await brain.update(id, "new data") // 6. Smart updates
|
|
61
|
+
await brain.delete(id) // 7. Soft delete
|
|
62
|
+
brain.augment(myAugmentation) // 8. Extend capabilities
|
|
63
|
+
await brain.export({ format: 'json' }) // 9. Export data
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### ✨ **What's New in 1.0:**
|
|
67
|
+
- **🔥 40+ methods consolidated** → 9 unified methods
|
|
68
|
+
- **🧠 Smart by default** - `add()` auto-detects and processes intelligently
|
|
69
|
+
- **🔐 Universal encryption** - Built-in encryption for sensitive data
|
|
70
|
+
- **🐳 Container ready** - Model preloading for production deployments
|
|
71
|
+
- **📦 16% smaller package** despite major new features
|
|
72
|
+
- **🔄 Soft delete default** - Better performance, no reindexing needed
|
|
73
|
+
|
|
74
|
+
**Breaking Changes:** See [MIGRATION.md](MIGRATION.md) for complete upgrade guide.
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
22
78
|
## ✅ 100% Free & Open Source
|
|
23
79
|
|
|
24
80
|
**Brainy is completely free. No license keys. No limits. No catch.**
|
|
@@ -35,11 +91,57 @@ Every feature you see here works without any payment or registration:
|
|
|
35
91
|
|
|
36
92
|
---
|
|
37
93
|
|
|
94
|
+
## 💫 Why Brainy? The Problem We Solve
|
|
95
|
+
|
|
96
|
+
### ❌ **The Old Way: Database Frankenstein**
|
|
97
|
+
```
|
|
98
|
+
Pinecone ($750/mo) + Neo4j ($500/mo) + Elasticsearch ($300/mo) +
|
|
99
|
+
Sync nightmares + 3 different APIs + Vendor lock-in = 😱💸
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### ✅ **The Brainy Way: One Brain, All Dimensions**
|
|
103
|
+
```
|
|
104
|
+
Vector + Graph + Search + AI = Brainy (Free & Open Source) = 🧠✨
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**Your data gets superpowers. Your wallet stays happy.**
|
|
108
|
+
|
|
109
|
+
### 🧠 **Why Developers Love Brainy 1.0**
|
|
110
|
+
|
|
111
|
+
#### **⚡ One API to Rule Them All**
|
|
112
|
+
```javascript
|
|
113
|
+
// Before: Learning 10+ different database APIs
|
|
114
|
+
pinecone.upsert(), neo4j.run(), elasticsearch.search()
|
|
115
|
+
supabase.insert(), mongodb.find(), redis.set()
|
|
116
|
+
|
|
117
|
+
// After: 9 methods handle EVERYTHING
|
|
118
|
+
brain.add(), brain.search(), brain.import()
|
|
119
|
+
brain.addNoun(), brain.addVerb(), brain.update()
|
|
120
|
+
brain.delete(), brain.augment(), brain.export()
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
#### **🤯 Mind-Blowing Features Out of the Box**
|
|
124
|
+
- **Smart by Default**: `add()` automatically understands your data
|
|
125
|
+
- **Graph + Vector**: Relationships AND semantic similarity in one query
|
|
126
|
+
- **Zero Config**: Works instantly, optimizes itself
|
|
127
|
+
- **Universal Encryption**: Secure everything with one flag
|
|
128
|
+
- **Perfect Memory**: Nothing ever gets lost or forgotten
|
|
129
|
+
|
|
130
|
+
#### **💰 Cost Comparison**
|
|
131
|
+
| Traditional Stack | Monthly Cost | Brainy 1.0 |
|
|
132
|
+
|------------------|--------------|-------------|
|
|
133
|
+
| Pinecone + Neo4j + Search | $1,500+ | **$0** |
|
|
134
|
+
| 3 different APIs to learn | Weeks | **Minutes** |
|
|
135
|
+
| Sync complexity | High | **None** |
|
|
136
|
+
| Vendor lock-in | Yes | **MIT License** |
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
38
140
|
## 🚀 What Can You Build?
|
|
39
141
|
|
|
40
142
|
### 💬 **AI Chat Apps** - That Actually Remember
|
|
41
143
|
```javascript
|
|
42
|
-
// Your users' conversations persist across sessions
|
|
144
|
+
// Your users' conversations persist across sessions
|
|
43
145
|
const brain = new BrainyData()
|
|
44
146
|
await brain.add("User prefers dark mode")
|
|
45
147
|
await brain.add("User is learning Spanish")
|
|
@@ -51,17 +153,30 @@ const context = await brain.search("user preferences")
|
|
|
51
153
|
|
|
52
154
|
### 🤖 **Smart Assistants** - With Real Knowledge Graphs
|
|
53
155
|
```javascript
|
|
54
|
-
// Build assistants that understand relationships
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
156
|
+
// Build assistants that understand relationships (NEW 1.0 API!)
|
|
157
|
+
import { BrainyData, NounType, VerbType } from '@soulcraft/brainy'
|
|
158
|
+
|
|
159
|
+
const brain = new BrainyData()
|
|
160
|
+
await brain.init()
|
|
161
|
+
|
|
162
|
+
// Create typed entities
|
|
163
|
+
const sarahId = await brain.addNoun("Sarah Thompson", NounType.Person)
|
|
164
|
+
const johnId = await brain.addNoun("John Davis", NounType.Person)
|
|
165
|
+
const projectId = await brain.addNoun("Project Apollo", NounType.Project)
|
|
166
|
+
|
|
167
|
+
// Create relationships with metadata
|
|
168
|
+
await brain.addVerb(sarahId, johnId, VerbType.ReportsTo, {
|
|
169
|
+
role: "Design Manager",
|
|
170
|
+
startDate: "2024-01-15"
|
|
63
171
|
})
|
|
64
|
-
|
|
172
|
+
await brain.addVerb(sarahId, projectId, VerbType.WorksWith, {
|
|
173
|
+
responsibility: "Lead Designer",
|
|
174
|
+
allocation: "75%"
|
|
175
|
+
})
|
|
176
|
+
|
|
177
|
+
// Query complex relationships with graph traversal
|
|
178
|
+
const sarahData = await brain.getNounWithVerbs(sarahId)
|
|
179
|
+
// Returns: complete graph view with all relationships and metadata
|
|
65
180
|
```
|
|
66
181
|
|
|
67
182
|
### 📊 **RAG Applications** - Without the Complexity
|
|
@@ -84,19 +199,77 @@ const results = await brain.search("premium smartphones with metal build")
|
|
|
84
199
|
|
|
85
200
|
### 🎯 **Recommendation Engines** - With Graph Intelligence
|
|
86
201
|
```javascript
|
|
87
|
-
// Netflix-style recommendations with
|
|
88
|
-
|
|
89
|
-
await brain.addVerb("User123", "liked", "Inception")
|
|
90
|
-
await brain.addVerb("Inception", "similar_to", "Interstellar")
|
|
202
|
+
// Netflix-style recommendations with 1.0 unified API
|
|
203
|
+
import { BrainyData, NounType, VerbType } from '@soulcraft/brainy'
|
|
91
204
|
|
|
92
|
-
const
|
|
93
|
-
|
|
205
|
+
const brain = new BrainyData()
|
|
206
|
+
await brain.init()
|
|
207
|
+
|
|
208
|
+
// Create entities and relationships
|
|
209
|
+
const userId = await brain.addNoun("User123", NounType.Person)
|
|
210
|
+
const movieId = await brain.addNoun("Inception", NounType.Content)
|
|
211
|
+
|
|
212
|
+
// Track user behavior with metadata
|
|
213
|
+
await brain.addVerb(userId, movieId, VerbType.InteractedWith, {
|
|
214
|
+
action: "watched",
|
|
215
|
+
rating: 5,
|
|
216
|
+
timestamp: new Date(),
|
|
217
|
+
genre: "sci-fi"
|
|
218
|
+
})
|
|
219
|
+
|
|
220
|
+
// Get intelligent recommendations based on relationships
|
|
221
|
+
const recommendations = await brain.getNounWithVerbs(userId, {
|
|
222
|
+
verbTypes: [VerbType.InteractedWith],
|
|
94
223
|
depth: 2
|
|
95
224
|
})
|
|
96
|
-
// Returns:
|
|
225
|
+
// Returns: Similar movies based on rating patterns and genre preferences
|
|
97
226
|
```
|
|
98
227
|
|
|
99
|
-
|
|
228
|
+
### 🤖 **Multi-Agent AI Systems** - With Shared Memory
|
|
229
|
+
```javascript
|
|
230
|
+
// Multiple AI agents sharing the same brain
|
|
231
|
+
const sharedBrain = new BrainyData({ instance: 'multi-agent-brain' })
|
|
232
|
+
await sharedBrain.init()
|
|
233
|
+
|
|
234
|
+
// Sales Agent adds customer intelligence
|
|
235
|
+
const customerId = await sharedBrain.addNoun("Acme Corp", NounType.Organization)
|
|
236
|
+
await sharedBrain.addVerb(customerId, "enterprise-plan", VerbType.InterestedIn, {
|
|
237
|
+
priority: "high",
|
|
238
|
+
budget: "$50k",
|
|
239
|
+
timeline: "Q2 2025"
|
|
240
|
+
})
|
|
241
|
+
|
|
242
|
+
// Support Agent instantly sees the context
|
|
243
|
+
const customerData = await sharedBrain.getNounWithVerbs(customerId)
|
|
244
|
+
// Support knows: customer interested in enterprise plan with $50k budget
|
|
245
|
+
|
|
246
|
+
// Marketing Agent learns from both
|
|
247
|
+
const insights = await sharedBrain.search("enterprise customers budget 50k", 10)
|
|
248
|
+
// Marketing can create targeted campaigns for similar prospects
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
### 🏥 **Customer Support Bots** - With Perfect Memory
|
|
252
|
+
```javascript
|
|
253
|
+
// Support bot that remembers every interaction
|
|
254
|
+
const customerId = await brain.addNoun("Customer_456", NounType.Person)
|
|
255
|
+
|
|
256
|
+
// Track support history with rich metadata
|
|
257
|
+
await brain.addVerb(customerId, "password-reset", VerbType.RequestedHelp, {
|
|
258
|
+
issue: "Password reset",
|
|
259
|
+
resolved: true,
|
|
260
|
+
date: "2025-01-10",
|
|
261
|
+
satisfaction: 5,
|
|
262
|
+
agent: "Sarah"
|
|
263
|
+
})
|
|
264
|
+
|
|
265
|
+
// Next conversation - bot instantly knows history
|
|
266
|
+
const history = await brain.getNounWithVerbs(customerId)
|
|
267
|
+
// Bot: "I see you had a password issue last week. Everything working smoothly now?"
|
|
268
|
+
|
|
269
|
+
// Proactive insights
|
|
270
|
+
const commonIssues = await brain.search("password reset common issues", 5)
|
|
271
|
+
// Bot offers preventive tips before problems occur
|
|
272
|
+
```
|
|
100
273
|
|
|
101
274
|
### ❌ **The Old Way: Database Frankenstein**
|
|
102
275
|
```
|
|
@@ -111,15 +284,6 @@ Vector + Graph + Search + AI = Brainy (Free & Open Source) = 🧠✨
|
|
|
111
284
|
|
|
112
285
|
**Your data gets superpowers. Your wallet stays happy.**
|
|
113
286
|
|
|
114
|
-
## 🎮 Try It Now - No Install Required!
|
|
115
|
-
|
|
116
|
-
<div align="center">
|
|
117
|
-
|
|
118
|
-
### [**→ Live Demo at soulcraft.com/console ←**](https://soulcraft.com/console)
|
|
119
|
-
|
|
120
|
-
Try Brainy instantly in your browser. No signup. No credit card.
|
|
121
|
-
|
|
122
|
-
</div>
|
|
123
287
|
|
|
124
288
|
## ⚡ Quick Start (60 Seconds)
|
|
125
289
|
|
|
@@ -161,9 +325,9 @@ import { BrainyData, Cortex } from '@soulcraft/brainy'
|
|
|
161
325
|
const brain = new BrainyData()
|
|
162
326
|
const cortex = new Cortex()
|
|
163
327
|
|
|
164
|
-
// Add premium augmentations (requires
|
|
165
|
-
|
|
166
|
-
|
|
328
|
+
// Add premium augmentations (requires Brain Cloud subscription)
|
|
329
|
+
brain.register(new AIMemory())
|
|
330
|
+
brain.register(new AgentCoordinator())
|
|
167
331
|
|
|
168
332
|
// Now your AI remembers everything across all sessions!
|
|
169
333
|
await brain.add("User prefers TypeScript over JavaScript")
|
|
@@ -199,30 +363,49 @@ await neural.neuralImport('data.csv') // Automatically extracts entities & rela
|
|
|
199
363
|
- ✅ **Simple Search** - Text and vector search
|
|
200
364
|
- ✅ **Graph Traversal** - Relationship queries
|
|
201
365
|
|
|
202
|
-
### 🌟 **Community Augmentations** (
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
|
|
366
|
+
### 🌟 **Community Augmentations** (Coming Soon!)
|
|
367
|
+
```javascript
|
|
368
|
+
// 🚧 FUTURE: Community augmentations will be available soon!
|
|
369
|
+
// These are examples of what the community could build:
|
|
370
|
+
|
|
371
|
+
// Example: Sentiment Analysis (not yet available)
|
|
372
|
+
// npm install brainy-sentiment
|
|
373
|
+
// brain.register(new SentimentAnalyzer())
|
|
374
|
+
|
|
375
|
+
// Example: Translation (not yet available)
|
|
376
|
+
// npm install brainy-translate
|
|
377
|
+
// brain.register(new Translator())
|
|
206
378
|
```
|
|
207
379
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
380
|
+
**Ideas for Community Augmentations:**
|
|
381
|
+
*Want to build one of these? We'll help promote it!*
|
|
382
|
+
- 🎭 Sentiment Analysis - Analyze emotional tone
|
|
383
|
+
- 🌍 Translation - Multi-language support
|
|
384
|
+
- 📧 Email Parser - Extract structured data from emails
|
|
385
|
+
- 🔗 URL Extractor - Find and validate URLs
|
|
386
|
+
- 📊 Data Visualizer - Generate charts from data
|
|
387
|
+
- 🎨 Image Understanding - Analyze image content
|
|
388
|
+
|
|
389
|
+
**Be the First!** Create an augmentation and we'll feature it here.
|
|
390
|
+
[See how to build augmentations →](UNIFIED-API.md#creating-your-own-augmentation)
|
|
211
391
|
|
|
212
|
-
|
|
213
|
-
|
|
392
|
+
### ☁️ **Brain Cloud** - Power Up Your Brain! 🚀
|
|
393
|
+
**Try it FREE:** Get persistent memory, team sync, and enterprise connectors!
|
|
394
|
+
|
|
395
|
+
```bash
|
|
396
|
+
# Coming Soon! Brain Cloud is in development
|
|
397
|
+
# Join the waitlist:
|
|
398
|
+
# Visit: soulcraft.com
|
|
214
399
|
```
|
|
215
400
|
|
|
216
|
-
**
|
|
217
|
-
-
|
|
218
|
-
-
|
|
219
|
-
-
|
|
220
|
-
-
|
|
221
|
-
-
|
|
222
|
-
- 🎨 Image Understanding
|
|
401
|
+
**Why Brain Cloud?**
|
|
402
|
+
- 🧠 **AI Memory That Never Forgets** - Conversations persist across sessions
|
|
403
|
+
- 🤝 **Multi-Agent Coordination** - AI agents work together seamlessly
|
|
404
|
+
- 💾 **Automatic Backups** - Never lose your brain's knowledge
|
|
405
|
+
- 🔄 **Team Sync** - Share knowledge across your organization
|
|
406
|
+
- 🔌 **Premium Connectors** - Notion, Slack, Salesforce, and more!
|
|
223
407
|
|
|
224
|
-
|
|
225
|
-
🌟 **Brainy works perfectly without this!** Brain Cloud adds team features:
|
|
408
|
+
**Special Offer:** First 100GB FREE, then just $9/month for individuals, $49/team
|
|
226
409
|
|
|
227
410
|
```javascript
|
|
228
411
|
// Brain Cloud features are in the main package
|
|
@@ -234,7 +417,7 @@ const brain = new BrainyVectorDB({
|
|
|
234
417
|
cloud: { apiKey: process.env.BRAIN_CLOUD_KEY } // Optional
|
|
235
418
|
})
|
|
236
419
|
|
|
237
|
-
|
|
420
|
+
brain.register(aiMemory) // AI remembers everything
|
|
238
421
|
```
|
|
239
422
|
|
|
240
423
|
**AI Memory & Coordination:**
|
|
@@ -250,20 +433,6 @@ cortex.register(aiMemory) // AI remembers everything
|
|
|
250
433
|
- 🔄 **Postgres** - Real-time replication
|
|
251
434
|
- 🏢 **Slack** - Team knowledge base
|
|
252
435
|
|
|
253
|
-
### 🎮 **Try Online** (Free Playground)
|
|
254
|
-
Test Brainy instantly without installing:
|
|
255
|
-
|
|
256
|
-
```javascript
|
|
257
|
-
// Visit soulcraft.com/console
|
|
258
|
-
// No signup required - just start coding!
|
|
259
|
-
// Perfect for:
|
|
260
|
-
// - Testing Brainy before installing
|
|
261
|
-
// - Prototyping ideas quickly
|
|
262
|
-
// - Learning the API
|
|
263
|
-
// - Sharing examples with others
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
**[→ Open Console](https://soulcraft.com/console)** - Your code runs locally, data stays private
|
|
267
436
|
|
|
268
437
|
### ☁️ **Brain Cloud** (Managed Service)
|
|
269
438
|
For teams that want zero-ops:
|
|
@@ -303,27 +472,31 @@ await brain.connect('brain-cloud.soulcraft.com', {
|
|
|
303
472
|
### Build & Share Your Augmentation
|
|
304
473
|
|
|
305
474
|
```typescript
|
|
306
|
-
import {
|
|
475
|
+
import { IAugmentation } from '@soulcraft/brainy'
|
|
307
476
|
|
|
308
|
-
export class MovieRecommender implements
|
|
477
|
+
export class MovieRecommender implements IAugmentation {
|
|
309
478
|
name = 'movie-recommender'
|
|
479
|
+
type = 'cognition' // sense|conduit|cognition|memory
|
|
310
480
|
description = 'AI-powered movie recommendations'
|
|
311
481
|
enabled = true
|
|
312
482
|
|
|
313
|
-
async processRawData(data:
|
|
483
|
+
async processRawData(data: any) {
|
|
314
484
|
// Your recommendation logic
|
|
315
485
|
const movies = await this.analyzePreferences(data)
|
|
316
486
|
|
|
317
487
|
return {
|
|
318
488
|
success: true,
|
|
319
489
|
data: {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
metadata: { genres: movies.map(m => m.genre) }
|
|
490
|
+
recommendations: movies,
|
|
491
|
+
confidence: 0.95
|
|
323
492
|
}
|
|
324
493
|
}
|
|
325
494
|
}
|
|
326
495
|
}
|
|
496
|
+
|
|
497
|
+
// Register with Brainy
|
|
498
|
+
const brain = new BrainyData()
|
|
499
|
+
brain.register(new MovieRecommender())
|
|
327
500
|
```
|
|
328
501
|
|
|
329
502
|
**Share with the community:**
|
|
@@ -380,22 +553,50 @@ const context = await agentBrain.search("customer plan interest")
|
|
|
380
553
|
const insights = await agentBrain.getRelated("enterprise plan")
|
|
381
554
|
```
|
|
382
555
|
|
|
383
|
-
## 🏗️ Architecture
|
|
556
|
+
## 🏗️ Architecture - Unified & Simple
|
|
384
557
|
|
|
385
558
|
```
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
559
|
+
┌─────────────────────────────────────────────┐
|
|
560
|
+
│ 🎯 YOUR APP - One Simple API │
|
|
561
|
+
│ brain.add() brain.search() brain.addVerb() │
|
|
562
|
+
└─────────────────┬───────────────────────────┘
|
|
563
|
+
│
|
|
564
|
+
┌─────────────────▼───────────────────────────┐
|
|
565
|
+
│ 🧠 BRAINY 1.0 - THE UNIFIED BRAIN │
|
|
566
|
+
│ │
|
|
567
|
+
│ ┌─────────────┐ ┌─────────────┐ ┌────────┐ │
|
|
568
|
+
│ │ Vector │ │ Graph │ │ Facets │ │
|
|
569
|
+
│ │ Search │ │Relationships│ │Metadata│ │
|
|
570
|
+
│ └─────────────┘ └─────────────┘ └────────┘ │
|
|
571
|
+
│ │
|
|
572
|
+
│ ┌─────────────┐ ┌─────────────┐ ┌────────┐ │
|
|
573
|
+
│ │ Encryption │ │ Memory │ │ Cache │ │
|
|
574
|
+
│ │ Universal │ │ Management │ │ 3-Tier │ │
|
|
575
|
+
│ └─────────────┘ └─────────────┘ └────────┘ │
|
|
576
|
+
└─────────────────┬───────────────────────────┘
|
|
577
|
+
│
|
|
578
|
+
┌─────────────────▼───────────────────────────┐
|
|
579
|
+
│ 💾 STORAGE - Universal Adapters │
|
|
580
|
+
│ Memory • FileSystem • S3 • OPFS • Custom │
|
|
581
|
+
└─────────────────────────────────────────────┘
|
|
397
582
|
```
|
|
398
583
|
|
|
584
|
+
### **What Makes 1.0 Different:**
|
|
585
|
+
- **🎯 One API**: 9 methods handle everything (was 40+ methods)
|
|
586
|
+
- **🧠 Smart Core**: Automatic data understanding and processing
|
|
587
|
+
- **🔗 Graph Built-in**: Relationships are first-class citizens
|
|
588
|
+
- **🔐 Security Native**: Encryption integrated, not bolted-on
|
|
589
|
+
- **🧩 Extensible**: Augment with custom capabilities
|
|
590
|
+
- **📤 Portable**: Export in any format (json, csv, graph)
|
|
591
|
+
- **⚡ Zero Config**: Works perfectly out of the box
|
|
592
|
+
|
|
593
|
+
### **The Magic:**
|
|
594
|
+
1. **You call** `brain.add("complex data")`
|
|
595
|
+
2. **Brainy understands** → detects type, extracts meaning
|
|
596
|
+
3. **Brainy stores** → vector + graph + metadata simultaneously
|
|
597
|
+
4. **Brainy optimizes** → indexes, caches, tunes performance
|
|
598
|
+
5. **You get superpowers** → semantic search + graph traversal + more
|
|
599
|
+
|
|
399
600
|
## 💡 Core Features
|
|
400
601
|
|
|
401
602
|
### 🔍 Multi-Dimensional Search
|
|
@@ -404,11 +605,12 @@ Augmentations (Capabilities)
|
|
|
404
605
|
- **Faceted**: Metadata filtering (property-based)
|
|
405
606
|
- **Hybrid**: All combined (maximum power)
|
|
406
607
|
|
|
407
|
-
### ⚡ Performance
|
|
408
|
-
- **Speed**: 100,000+ ops/second
|
|
409
|
-
- **Scale**: Millions of
|
|
410
|
-
- **Memory**: ~100MB for 1M vectors
|
|
411
|
-
- **Latency**: <10ms searches
|
|
608
|
+
### ⚡ Performance - Production Ready
|
|
609
|
+
- **Speed**: 100,000+ ops/second (faster with 1.0 optimizations)
|
|
610
|
+
- **Scale**: Millions of entities + relationships
|
|
611
|
+
- **Memory**: ~100MB for 1M vectors (16% smaller than 0.x)
|
|
612
|
+
- **Latency**: <10ms searches with 3-tier caching
|
|
613
|
+
- **Intelligence**: Auto-tuning learns from your usage patterns
|
|
412
614
|
|
|
413
615
|
### 🔒 Production Ready
|
|
414
616
|
- **Encryption**: End-to-end available
|
|
@@ -455,10 +657,9 @@ Augmentations (Capabilities)
|
|
|
455
657
|
- 📢 Spread the word
|
|
456
658
|
|
|
457
659
|
### Get Help & Connect
|
|
458
|
-
- 💬 [Discord Community](https://discord.gg/brainy)
|
|
459
|
-
- 🐦 [Twitter Updates](https://twitter.com/soulcraftlabs)
|
|
460
660
|
- 📧 [Email Support](mailto:support@soulcraft.com)
|
|
461
|
-
-
|
|
661
|
+
- 🐛 [GitHub Issues](https://github.com/soulcraftlabs/brainy/issues)
|
|
662
|
+
- 💬 [GitHub Discussions](https://github.com/soulcraftlabs/brainy/discussions)
|
|
462
663
|
|
|
463
664
|
## 📈 Who's Using Brainy?
|
|
464
665
|
|
|
@@ -480,10 +681,10 @@ Premium augmentations available at [soulcraft.com](https://soulcraft.com)
|
|
|
480
681
|
|
|
481
682
|
### 🧠⚛️ **Give Your Data a Brain Upgrade**
|
|
482
683
|
|
|
483
|
-
**[Get Started](docs/getting-started/quick-start.md)** •
|
|
684
|
+
**[Get Started](docs/getting-started/quick-start-1.0.md)** •
|
|
484
685
|
**[Examples](examples/)** •
|
|
485
|
-
**[API Docs](
|
|
486
|
-
**[
|
|
686
|
+
**[API Docs](UNIFIED-API.md)** •
|
|
687
|
+
**[GitHub](https://github.com/soulcraftlabs/brainy)**
|
|
487
688
|
|
|
488
689
|
⭐ **Star us on GitHub to support open source AI!** ⭐
|
|
489
690
|
|