hebbrix 2.0.0 → 2.0.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 +9 -9
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -554,18 +554,18 @@ await bot.trainOnConversations();
|
|
|
554
554
|
async function buildKnowledgeGraph(client: MemoryClient, collectionId: string) {
|
|
555
555
|
// Add entities and relationships
|
|
556
556
|
await client.temporal.addFact({
|
|
557
|
-
subject: 'GPT-
|
|
557
|
+
subject: 'GPT-5',
|
|
558
558
|
predicate: 'developed_by',
|
|
559
559
|
object: 'OpenAI',
|
|
560
|
-
valid_from: '
|
|
560
|
+
valid_from: '2025-08-01',
|
|
561
561
|
confidence: 1.0,
|
|
562
562
|
});
|
|
563
563
|
|
|
564
564
|
await client.temporal.addFact({
|
|
565
|
-
subject: 'GPT-
|
|
565
|
+
subject: 'GPT-5',
|
|
566
566
|
predicate: 'is_a',
|
|
567
567
|
object: 'Large Language Model',
|
|
568
|
-
valid_from: '
|
|
568
|
+
valid_from: '2025-08-01',
|
|
569
569
|
confidence: 1.0,
|
|
570
570
|
});
|
|
571
571
|
|
|
@@ -579,18 +579,18 @@ async function buildKnowledgeGraph(client: MemoryClient, collectionId: string) {
|
|
|
579
579
|
|
|
580
580
|
// Query relationships
|
|
581
581
|
const facts = await client.temporal.queryFacts({
|
|
582
|
-
subject: 'GPT-
|
|
582
|
+
subject: 'GPT-5',
|
|
583
583
|
});
|
|
584
584
|
|
|
585
|
-
console.log(facts); // All facts about GPT-
|
|
585
|
+
console.log(facts); // All facts about GPT-5
|
|
586
586
|
|
|
587
587
|
// Historical query
|
|
588
588
|
const snapshot = await client.temporal.pointInTime(
|
|
589
|
-
'
|
|
589
|
+
'2025-01-01T00:00:00Z',
|
|
590
590
|
'OpenAI'
|
|
591
591
|
);
|
|
592
592
|
|
|
593
|
-
console.log(snapshot); // OpenAI's state before GPT-
|
|
593
|
+
console.log(snapshot); // OpenAI's state before GPT-5 release
|
|
594
594
|
}
|
|
595
595
|
```
|
|
596
596
|
|
|
@@ -632,7 +632,7 @@ const client = new MemoryClient({
|
|
|
632
632
|
// Required: API key
|
|
633
633
|
apiKey: 'hbx_...',
|
|
634
634
|
|
|
635
|
-
// Optional: Custom base URL (default:
|
|
635
|
+
// Optional: Custom base URL (default: https://api.hebbrix.com)
|
|
636
636
|
baseUrl: 'https://api.yourdomain.com',
|
|
637
637
|
|
|
638
638
|
// Optional: Request timeout in milliseconds (default: 30000)
|
package/dist/index.js
CHANGED
|
@@ -471,7 +471,7 @@ var ServerError = class _ServerError extends HebbrixError {
|
|
|
471
471
|
var MemoryClient = class {
|
|
472
472
|
constructor(config = {}) {
|
|
473
473
|
this.apiKey = config.apiKey;
|
|
474
|
-
this.baseUrl = config.baseUrl || "https://
|
|
474
|
+
this.baseUrl = config.baseUrl || "https://api.hebbrix.com";
|
|
475
475
|
this.timeout = config.timeout || 12e4;
|
|
476
476
|
this.baseUrl = this.baseUrl.replace(/\/$/, "");
|
|
477
477
|
this.auth = new AuthResource(this);
|
package/dist/index.mjs
CHANGED
|
@@ -428,7 +428,7 @@ var ServerError = class _ServerError extends HebbrixError {
|
|
|
428
428
|
var MemoryClient = class {
|
|
429
429
|
constructor(config = {}) {
|
|
430
430
|
this.apiKey = config.apiKey;
|
|
431
|
-
this.baseUrl = config.baseUrl || "https://
|
|
431
|
+
this.baseUrl = config.baseUrl || "https://api.hebbrix.com";
|
|
432
432
|
this.timeout = config.timeout || 12e4;
|
|
433
433
|
this.baseUrl = this.baseUrl.replace(/\/$/, "");
|
|
434
434
|
this.auth = new AuthResource(this);
|