@grackle-ai/knowledge-core 0.75.13 → 0.76.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 +16 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/schema.d.ts +18 -5
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +89 -34
- package/dist/schema.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -393,16 +393,21 @@ The following schema objects are created:
|
|
|
393
393
|
| `INDEX_KIND` | Index on `kind` for efficient filtering by node type |
|
|
394
394
|
| `INDEX_WORKSPACE` | Index on `workspaceId` for scoped queries |
|
|
395
395
|
| `INDEX_SOURCE` | Composite index on `(sourceType, sourceId)` for reference lookups |
|
|
396
|
-
| `VECTOR_INDEX` | Vector index on `embedding` for cosine similarity search (
|
|
396
|
+
| `VECTOR_INDEX` | Vector index on `embedding` for cosine similarity search (dimensions configurable) |
|
|
397
397
|
|
|
398
398
|
```typescript
|
|
399
|
+
const embedder = createLocalEmbedder();
|
|
399
400
|
await openNeo4j();
|
|
400
|
-
await initSchema();
|
|
401
|
+
await initSchema(embedder.dimensions); // creates a 384-dim vector index
|
|
401
402
|
```
|
|
402
403
|
|
|
404
|
+
#### `buildSchemaStatements(dimensions?: number): Record<string, string>`
|
|
405
|
+
|
|
406
|
+
Build the Cypher schema statements with a custom vector index dimensionality. Defaults to `EMBEDDING_DIMENSIONS` (1536) if omitted.
|
|
407
|
+
|
|
403
408
|
#### `SCHEMA_STATEMENTS: Record<string, string>`
|
|
404
409
|
|
|
405
|
-
The raw Cypher statements
|
|
410
|
+
The raw Cypher statements using the default 1536 dimensions. Prefer `buildSchemaStatements(dimensions)` for custom dimensions.
|
|
406
411
|
|
|
407
412
|
### Embedders
|
|
408
413
|
|
|
@@ -457,9 +462,14 @@ const customEmbedder = createLocalEmbedder({
|
|
|
457
462
|
});
|
|
458
463
|
```
|
|
459
464
|
|
|
460
|
-
**
|
|
461
|
-
|
|
462
|
-
|
|
465
|
+
**Dimension matching:** `initSchema()` accepts an optional `dimensions` parameter that controls the vector index size. Pass your embedder's dimensions to ensure they match:
|
|
466
|
+
|
|
467
|
+
```typescript
|
|
468
|
+
const embedder = createLocalEmbedder();
|
|
469
|
+
await initSchema(embedder.dimensions); // creates a 384-dim vector index
|
|
470
|
+
```
|
|
471
|
+
|
|
472
|
+
If omitted, `initSchema()` defaults to `EMBEDDING_DIMENSIONS` (1536). Use `buildSchemaStatements(dimensions)` for custom dimensions when building statements manually.
|
|
463
473
|
|
|
464
474
|
### Chunkers
|
|
465
475
|
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export { openNeo4j, closeNeo4j, healthCheck, getSession, getDriver } from "./client.js";
|
|
11
11
|
export type { Neo4jClientConfig } from "./client.js";
|
|
12
|
-
export { initSchema, SCHEMA_STATEMENTS } from "./schema.js";
|
|
12
|
+
export { initSchema, buildSchemaStatements, SCHEMA_STATEMENTS } from "./schema.js";
|
|
13
13
|
export { logger } from "./logger.js";
|
|
14
14
|
export * from "./types.js";
|
|
15
15
|
export { DEFAULT_NEO4J_URL, DEFAULT_NEO4J_USER, DEFAULT_NEO4J_DATABASE, NEO4J_MAX_POOL_SIZE, NEO4J_CONNECTION_ACQUISITION_TIMEOUT, NODE_LABEL, VECTOR_INDEX_NAME, EMBEDDING_DIMENSIONS, VECTOR_SIMILARITY_FUNCTION, } from "./constants.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxF,YAAY,EAAE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,wBAAwB,EACxB,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,eAAe,EACf,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACzD,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACxD,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
*/
|
|
10
10
|
export { openNeo4j, closeNeo4j, healthCheck, getSession, getDriver } from "./client.js";
|
|
11
|
-
export { initSchema, SCHEMA_STATEMENTS } from "./schema.js";
|
|
11
|
+
export { initSchema, buildSchemaStatements, SCHEMA_STATEMENTS } from "./schema.js";
|
|
12
12
|
export { logger } from "./logger.js";
|
|
13
13
|
export * from "./types.js";
|
|
14
14
|
export { DEFAULT_NEO4J_URL, DEFAULT_NEO4J_USER, DEFAULT_NEO4J_DATABASE, NEO4J_MAX_POOL_SIZE, NEO4J_CONNECTION_ACQUISITION_TIMEOUT, NODE_LABEL, VECTOR_INDEX_NAME, EMBEDDING_DIMENSIONS, VECTOR_SIMILARITY_FUNCTION, } from "./constants.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS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9
9
|
/**
|
|
10
|
-
* Cypher statements for schema initialization.
|
|
10
|
+
* Build the Cypher statements for schema initialization.
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* @param dimensions - Dimensionality of the vector index. Should match the
|
|
13
|
+
* embedder being used (e.g., 384 for the default local embedder). Defaults
|
|
14
|
+
* to {@link EMBEDDING_DIMENSIONS} (1536).
|
|
15
|
+
*/
|
|
16
|
+
export declare function buildSchemaStatements(dimensions?: number): Record<string, string>;
|
|
17
|
+
/**
|
|
18
|
+
* Static statements using the default dimensions (1536).
|
|
19
|
+
*
|
|
20
|
+
* @deprecated Use {@link buildSchemaStatements} with the embedder's actual dimensions.
|
|
13
21
|
*/
|
|
14
22
|
export declare const SCHEMA_STATEMENTS: Record<string, string>;
|
|
15
23
|
/**
|
|
16
24
|
* Initialize the Neo4j schema: constraints, property indexes, and the
|
|
17
25
|
* vector index.
|
|
18
26
|
*
|
|
19
|
-
* All statements are idempotent (`IF NOT EXISTS`).
|
|
20
|
-
*
|
|
27
|
+
* All statements are idempotent (`IF NOT EXISTS`). Transient errors
|
|
28
|
+
* (deadlocks from concurrent initialization) are retried automatically.
|
|
29
|
+
* Call once at startup after {@link openNeo4j}.
|
|
30
|
+
*
|
|
31
|
+
* @param dimensions - Vector index dimensionality. Should match the
|
|
32
|
+
* embedder (e.g., 384 for the default local embedder). Defaults to
|
|
33
|
+
* {@link EMBEDDING_DIMENSIONS} (1536).
|
|
21
34
|
*/
|
|
22
|
-
export declare function initSchema(): Promise<void>;
|
|
35
|
+
export declare function initSchema(dimensions?: number): Promise<void>;
|
|
23
36
|
//# sourceMappingURL=schema.d.ts.map
|
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAeH;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,GAAE,MAA6B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA8BvG;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAA2B,CAAC;AAwDjF;;;;;;;;;;;GAWG;AACH,wBAAsB,UAAU,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAkBnE"}
|
package/dist/schema.js
CHANGED
|
@@ -9,55 +9,110 @@
|
|
|
9
9
|
import { getSession } from "./client.js";
|
|
10
10
|
import { logger } from "./logger.js";
|
|
11
11
|
import { NODE_LABEL, VECTOR_INDEX_NAME, EMBEDDING_DIMENSIONS, VECTOR_SIMILARITY_FUNCTION, } from "./constants.js";
|
|
12
|
+
// ---------------------------------------------------------------------------
|
|
13
|
+
// Schema statement builders
|
|
14
|
+
// ---------------------------------------------------------------------------
|
|
12
15
|
/**
|
|
13
|
-
* Cypher statements for schema initialization.
|
|
16
|
+
* Build the Cypher statements for schema initialization.
|
|
14
17
|
*
|
|
15
|
-
*
|
|
18
|
+
* @param dimensions - Dimensionality of the vector index. Should match the
|
|
19
|
+
* embedder being used (e.g., 384 for the default local embedder). Defaults
|
|
20
|
+
* to {@link EMBEDDING_DIMENSIONS} (1536).
|
|
16
21
|
*/
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
22
|
+
export function buildSchemaStatements(dimensions = EMBEDDING_DIMENSIONS) {
|
|
23
|
+
return {
|
|
24
|
+
/** Uniqueness constraint on node ID. */
|
|
25
|
+
UNIQUE_NODE_ID: `CREATE CONSTRAINT knowledge_node_id_unique IF NOT EXISTS
|
|
20
26
|
FOR (n:${NODE_LABEL}) REQUIRE n.id IS UNIQUE`,
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
/** Index on the kind property for efficient filtering. */
|
|
28
|
+
INDEX_KIND: `CREATE INDEX knowledge_node_kind IF NOT EXISTS
|
|
23
29
|
FOR (n:${NODE_LABEL}) ON (n.kind)`,
|
|
24
|
-
|
|
25
|
-
|
|
30
|
+
/** Index on workspaceId for scoped queries. */
|
|
31
|
+
INDEX_WORKSPACE: `CREATE INDEX knowledge_node_workspace IF NOT EXISTS
|
|
26
32
|
FOR (n:${NODE_LABEL}) ON (n.workspaceId)`,
|
|
27
|
-
|
|
28
|
-
|
|
33
|
+
/** Composite index for reference node lookups by source. */
|
|
34
|
+
INDEX_SOURCE: `CREATE INDEX knowledge_node_source IF NOT EXISTS
|
|
29
35
|
FOR (n:${NODE_LABEL}) ON (n.sourceType, n.sourceId)`,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
};
|
|
36
|
+
/** Vector index for embedding similarity search. */
|
|
37
|
+
VECTOR_INDEX: [
|
|
38
|
+
`CREATE VECTOR INDEX ${VECTOR_INDEX_NAME} IF NOT EXISTS`,
|
|
39
|
+
`FOR (n:${NODE_LABEL}) ON (n.embedding)`,
|
|
40
|
+
`OPTIONS {`,
|
|
41
|
+
` indexConfig: {`,
|
|
42
|
+
` \`vector.dimensions\`: ${dimensions},`,
|
|
43
|
+
` \`vector.similarity_function\`: '${VECTOR_SIMILARITY_FUNCTION}'`,
|
|
44
|
+
` }`,
|
|
45
|
+
`}`,
|
|
46
|
+
].join("\n"),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Static statements using the default dimensions (1536).
|
|
51
|
+
*
|
|
52
|
+
* @deprecated Use {@link buildSchemaStatements} with the embedder's actual dimensions.
|
|
53
|
+
*/
|
|
54
|
+
export const SCHEMA_STATEMENTS = buildSchemaStatements();
|
|
55
|
+
// ---------------------------------------------------------------------------
|
|
56
|
+
// Retry helpers
|
|
57
|
+
// ---------------------------------------------------------------------------
|
|
58
|
+
/** Maximum number of retry attempts for transient Neo4j errors. */
|
|
59
|
+
const SCHEMA_RETRY_LIMIT = 3;
|
|
60
|
+
/** Base delay (ms) between retries — multiplied by attempt number. */
|
|
61
|
+
const SCHEMA_RETRY_DELAY_MS = 500;
|
|
62
|
+
/**
|
|
63
|
+
* Run a single schema statement with retry for transient errors and
|
|
64
|
+
* tolerance for "already exists" collisions.
|
|
65
|
+
*/
|
|
66
|
+
async function runStatementWithRetry(session, name, cypher) {
|
|
67
|
+
for (let attempt = 1; attempt <= SCHEMA_RETRY_LIMIT; attempt++) {
|
|
68
|
+
try {
|
|
69
|
+
await session.run(cypher);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
const code = error.code ?? "";
|
|
74
|
+
// Neo4j CE throws EquivalentSchemaRuleAlreadyExists even with IF NOT EXISTS
|
|
75
|
+
// when an equivalent index exists with a different internal name.
|
|
76
|
+
if (code.includes("EquivalentSchemaRuleAlreadyExists")) {
|
|
77
|
+
logger.debug({ statement: name }, "Schema element already exists, skipping");
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
// Transient errors (deadlocks, lock contention) are retryable
|
|
81
|
+
const retryable = error.retryable === true;
|
|
82
|
+
if (retryable && attempt < SCHEMA_RETRY_LIMIT) {
|
|
83
|
+
logger.warn({ statement: name, attempt }, "Transient schema error, retrying");
|
|
84
|
+
await new Promise((resolve) => setTimeout(resolve, SCHEMA_RETRY_DELAY_MS * attempt));
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
logger.error({ err: error, statement: name }, "Schema statement failed");
|
|
88
|
+
throw new Error(`Schema statement "${name}" failed: ${error instanceof Error ? error.message : String(error)}`, { cause: error });
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
// ---------------------------------------------------------------------------
|
|
93
|
+
// Public API
|
|
94
|
+
// ---------------------------------------------------------------------------
|
|
42
95
|
/**
|
|
43
96
|
* Initialize the Neo4j schema: constraints, property indexes, and the
|
|
44
97
|
* vector index.
|
|
45
98
|
*
|
|
46
|
-
* All statements are idempotent (`IF NOT EXISTS`).
|
|
47
|
-
*
|
|
99
|
+
* All statements are idempotent (`IF NOT EXISTS`). Transient errors
|
|
100
|
+
* (deadlocks from concurrent initialization) are retried automatically.
|
|
101
|
+
* Call once at startup after {@link openNeo4j}.
|
|
102
|
+
*
|
|
103
|
+
* @param dimensions - Vector index dimensionality. Should match the
|
|
104
|
+
* embedder (e.g., 384 for the default local embedder). Defaults to
|
|
105
|
+
* {@link EMBEDDING_DIMENSIONS} (1536).
|
|
48
106
|
*/
|
|
49
|
-
export async function initSchema() {
|
|
107
|
+
export async function initSchema(dimensions) {
|
|
108
|
+
const statements = dimensions !== undefined
|
|
109
|
+
? buildSchemaStatements(dimensions)
|
|
110
|
+
: SCHEMA_STATEMENTS;
|
|
50
111
|
const session = getSession();
|
|
51
112
|
try {
|
|
52
|
-
for (const [name, cypher] of Object.entries(
|
|
113
|
+
for (const [name, cypher] of Object.entries(statements)) {
|
|
53
114
|
logger.debug({ statement: name }, "Running schema statement");
|
|
54
|
-
|
|
55
|
-
await session.run(cypher);
|
|
56
|
-
}
|
|
57
|
-
catch (error) {
|
|
58
|
-
logger.error({ err: error, statement: name }, "Schema statement failed");
|
|
59
|
-
throw new Error(`Schema statement "${name}" failed: ${error instanceof Error ? error.message : String(error)}`, { cause: error });
|
|
60
|
-
}
|
|
115
|
+
await runStatementWithRetry(session, name, cypher);
|
|
61
116
|
}
|
|
62
117
|
logger.info("Knowledge graph schema initialized");
|
|
63
118
|
}
|
package/dist/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,M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