@langchain/neo4j 0.1.29 → 0.1.31
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/dist/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/chains/graph_qa/cypher.cjs +1 -2
- package/dist/chains/graph_qa/cypher.d.cts +0 -2
- package/dist/chains/graph_qa/cypher.d.cts.map +1 -1
- package/dist/chains/graph_qa/cypher.d.ts +0 -2
- package/dist/chains/graph_qa/cypher.d.ts.map +1 -1
- package/dist/chains/graph_qa/cypher.js +1 -2
- package/dist/chains/graph_qa/index.cjs +1 -1
- package/dist/chains/graph_qa/index.js +1 -1
- package/dist/chains/graph_qa/prompts.cjs +0 -1
- package/dist/chains/graph_qa/prompts.d.cts +0 -2
- package/dist/chains/graph_qa/prompts.d.cts.map +1 -1
- package/dist/chains/graph_qa/prompts.d.ts +0 -2
- package/dist/chains/graph_qa/prompts.d.ts.map +1 -1
- package/dist/chains/graph_qa/prompts.js +0 -1
- package/dist/graphs/document.cjs +1 -2
- package/dist/graphs/document.d.cts +1 -2
- package/dist/graphs/document.d.cts.map +1 -1
- package/dist/graphs/document.d.ts +1 -2
- package/dist/graphs/document.d.ts.map +1 -1
- package/dist/graphs/document.js +1 -2
- package/dist/graphs/index.d.cts +1 -1
- package/dist/graphs/index.d.ts +1 -1
- package/dist/graphs/memgraph_graph.cjs +1 -2
- package/dist/graphs/memgraph_graph.d.cts +0 -2
- package/dist/graphs/memgraph_graph.d.cts.map +1 -1
- package/dist/graphs/memgraph_graph.d.ts +0 -2
- package/dist/graphs/memgraph_graph.d.ts.map +1 -1
- package/dist/graphs/memgraph_graph.js +1 -2
- package/dist/graphs/neo4j_graph.cjs +1 -2
- package/dist/graphs/neo4j_graph.d.cts +1 -2
- package/dist/graphs/neo4j_graph.d.cts.map +1 -1
- package/dist/graphs/neo4j_graph.d.ts +1 -2
- package/dist/graphs/neo4j_graph.d.ts.map +1 -1
- package/dist/graphs/neo4j_graph.js +1 -2
- package/dist/stores/message/index.js +1 -2
- package/dist/stores/message/neo4j.cjs +1 -2
- package/dist/stores/message/neo4j.d.cts +0 -2
- package/dist/stores/message/neo4j.d.cts.map +1 -1
- package/dist/stores/message/neo4j.d.ts +0 -2
- package/dist/stores/message/neo4j.d.ts.map +1 -1
- package/dist/stores/message/neo4j.js +1 -2
- package/dist/vectorstores/index.js +1 -2
- package/dist/vectorstores/neo4j_vector.cjs +1 -2
- package/dist/vectorstores/neo4j_vector.d.cts +1 -2
- package/dist/vectorstores/neo4j_vector.d.cts.map +1 -1
- package/dist/vectorstores/neo4j_vector.d.ts +1 -2
- package/dist/vectorstores/neo4j_vector.d.ts.map +1 -1
- package/dist/vectorstores/neo4j_vector.js +1 -2
- package/package.json +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -19,5 +19,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
19
19
|
value: mod,
|
|
20
20
|
enumerable: true
|
|
21
21
|
}) : target, mod));
|
|
22
|
-
//#endregion
|
|
23
22
|
exports.__toESM = __toESM;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_prompts = require("./prompts.cjs");
|
|
2
2
|
let _langchain_classic_chains = require("@langchain/classic/chains");
|
|
3
|
-
|
|
3
|
+
// src/chains/graph_qa/cypher.ts
|
|
4
4
|
const INTERMEDIATE_STEPS_KEY = "intermediateSteps";
|
|
5
5
|
/**
|
|
6
6
|
* Chain for question-answering against a graph by generating Cypher statements.
|
|
@@ -110,7 +110,6 @@ var GraphCypherQAChain = class GraphCypherQAChain extends _langchain_classic_cha
|
|
|
110
110
|
return chainResult;
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
|
-
//#endregion
|
|
114
113
|
exports.GraphCypherQAChain = GraphCypherQAChain;
|
|
115
114
|
exports.INTERMEDIATE_STEPS_KEY = INTERMEDIATE_STEPS_KEY;
|
|
116
115
|
|
|
@@ -4,7 +4,6 @@ import { ChainValues } from "@langchain/core/utils/types";
|
|
|
4
4
|
import { BasePromptTemplate } from "@langchain/core/prompts";
|
|
5
5
|
import { CallbackManagerForChainRun } from "@langchain/core/callbacks/manager";
|
|
6
6
|
import { BaseChain, ChainInputs, LLMChain } from "@langchain/classic/chains";
|
|
7
|
-
//#region src/chains/graph_qa/cypher.d.ts
|
|
8
7
|
export declare const INTERMEDIATE_STEPS_KEY = "intermediateSteps";
|
|
9
8
|
export interface GraphCypherQAChainInput extends ChainInputs {
|
|
10
9
|
graph: Neo4jGraph;
|
|
@@ -67,5 +66,4 @@ export declare class GraphCypherQAChain extends BaseChain {
|
|
|
67
66
|
private extractCypher;
|
|
68
67
|
_call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;
|
|
69
68
|
}
|
|
70
|
-
//#endregion
|
|
71
69
|
//# sourceMappingURL=cypher.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cypher.d.cts","names":[],"sources":["../../../src/chains/graph_qa/cypher.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cypher.d.cts","names":[],"sources":["../../../src/chains/graph_qa/cypher.ts"],"mappings":";;;;;;qBAQa;iBAEI,gCAAgC;EAC/C,OAAO;EACP,uBAAuB;EACvB,SAAS;EACT;EACA;EACA;EACA;EACA;;iBAGe;EACf,OAAO;EACP,MAAM;EACN,YAAY;EACZ,QAAQ;EACR,WAAW;EACX,eAAe;EACf;EACA;;;;;;;;;;;;;;;;;;;;;;;;;;qBA2BW,2BAA2B;UAC9B;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;EAER,YAAY,OAAO;EAkCnB;MAII;MAIA;SAIG,QAAQ,OAAO,eAAe;UA+C7B;EAMF,MACJ,QAAQ,aACR,aAAa,6BACZ,QAAQ"}
|
|
@@ -4,7 +4,6 @@ import { BasePromptTemplate } from "@langchain/core/prompts";
|
|
|
4
4
|
import { BaseLanguageModelInterface } from "@langchain/core/language_models/base";
|
|
5
5
|
import { ChainValues } from "@langchain/core/utils/types";
|
|
6
6
|
import { CallbackManagerForChainRun } from "@langchain/core/callbacks/manager";
|
|
7
|
-
//#region src/chains/graph_qa/cypher.d.ts
|
|
8
7
|
export declare const INTERMEDIATE_STEPS_KEY = "intermediateSteps";
|
|
9
8
|
export interface GraphCypherQAChainInput extends ChainInputs {
|
|
10
9
|
graph: Neo4jGraph;
|
|
@@ -67,5 +66,4 @@ export declare class GraphCypherQAChain extends BaseChain {
|
|
|
67
66
|
private extractCypher;
|
|
68
67
|
_call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;
|
|
69
68
|
}
|
|
70
|
-
//#endregion
|
|
71
69
|
//# sourceMappingURL=cypher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cypher.d.ts","names":[],"sources":["../../../src/chains/graph_qa/cypher.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cypher.d.ts","names":[],"sources":["../../../src/chains/graph_qa/cypher.ts"],"mappings":";;;;;;qBAQa;iBAEI,gCAAgC;EAC/C,OAAO;EACP,uBAAuB;EACvB,SAAS;EACT;EACA;EACA;EACA;EACA;;iBAGe;EACf,OAAO;EACP,MAAM;EACN,YAAY;EACZ,QAAQ;EACR,WAAW;EACX,eAAe;EACf;EACA;;;;;;;;;;;;;;;;;;;;;;;;;;qBA2BW,2BAA2B;UAC9B;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;EAER,YAAY,OAAO;EAkCnB;MAII;MAIA;SAIG,QAAQ,OAAO,eAAe;UA+C7B;EAMF,MACJ,QAAQ,aACR,aAAa,6BACZ,QAAQ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CYPHER_GENERATION_PROMPT, CYPHER_QA_PROMPT } from "./prompts.js";
|
|
2
2
|
import { BaseChain, LLMChain } from "@langchain/classic/chains";
|
|
3
|
-
|
|
3
|
+
// src/chains/graph_qa/cypher.ts
|
|
4
4
|
const INTERMEDIATE_STEPS_KEY = "intermediateSteps";
|
|
5
5
|
/**
|
|
6
6
|
* Chain for question-answering against a graph by generating Cypher statements.
|
|
@@ -110,7 +110,6 @@ var GraphCypherQAChain = class GraphCypherQAChain extends BaseChain {
|
|
|
110
110
|
return chainResult;
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
|
-
//#endregion
|
|
114
113
|
export { GraphCypherQAChain, INTERMEDIATE_STEPS_KEY };
|
|
115
114
|
|
|
116
115
|
//# sourceMappingURL=cypher.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_prompts = require("./prompts.cjs");
|
|
2
1
|
const require_cypher = require("./cypher.cjs");
|
|
2
|
+
const require_prompts = require("./prompts.cjs");
|
|
3
3
|
exports.CYPHER_GENERATION_PROMPT = require_prompts.CYPHER_GENERATION_PROMPT;
|
|
4
4
|
exports.CYPHER_QA_PROMPT = require_prompts.CYPHER_QA_PROMPT;
|
|
5
5
|
exports.GraphCypherQAChain = require_cypher.GraphCypherQAChain;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CYPHER_GENERATION_PROMPT, CYPHER_QA_PROMPT } from "./prompts.js";
|
|
2
1
|
import { GraphCypherQAChain, INTERMEDIATE_STEPS_KEY } from "./cypher.js";
|
|
2
|
+
import { CYPHER_GENERATION_PROMPT, CYPHER_QA_PROMPT } from "./prompts.js";
|
|
3
3
|
export { CYPHER_GENERATION_PROMPT, CYPHER_QA_PROMPT, GraphCypherQAChain, INTERMEDIATE_STEPS_KEY };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PromptTemplate } from "@langchain/core/prompts";
|
|
2
|
-
//#region src/chains/graph_qa/prompts.d.ts
|
|
3
2
|
export declare const CYPHER_GENERATION_PROMPT: PromptTemplate<{
|
|
4
3
|
question: any;
|
|
5
4
|
schema: any;
|
|
@@ -8,5 +7,4 @@ export declare const CYPHER_QA_PROMPT: PromptTemplate<{
|
|
|
8
7
|
context: any;
|
|
9
8
|
question: any;
|
|
10
9
|
}, any>;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=prompts.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.cts","names":[],"sources":["../../../src/chains/graph_qa/prompts.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"prompts.d.cts","names":[],"sources":["../../../src/chains/graph_qa/prompts.ts"],"mappings":";qBAca,0BAAwB;;;;qBAsBxB,kBAAgB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PromptTemplate } from "@langchain/core/prompts";
|
|
2
|
-
//#region src/chains/graph_qa/prompts.d.ts
|
|
3
2
|
export declare const CYPHER_GENERATION_PROMPT: PromptTemplate<{
|
|
4
3
|
question: any;
|
|
5
4
|
schema: any;
|
|
@@ -8,5 +7,4 @@ export declare const CYPHER_QA_PROMPT: PromptTemplate<{
|
|
|
8
7
|
context: any;
|
|
9
8
|
question: any;
|
|
10
9
|
}, any>;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=prompts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","names":[],"sources":["../../../src/chains/graph_qa/prompts.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","names":[],"sources":["../../../src/chains/graph_qa/prompts.ts"],"mappings":";qBAca,0BAAwB;;;;qBAsBxB,kBAAgB"}
|
package/dist/graphs/document.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
let _langchain_core_load_serializable = require("@langchain/core/load/serializable");
|
|
2
|
-
|
|
2
|
+
// src/graphs/document.ts
|
|
3
3
|
var Node = class extends _langchain_core_load_serializable.Serializable {
|
|
4
4
|
id;
|
|
5
5
|
type;
|
|
@@ -54,7 +54,6 @@ var GraphDocument = class extends _langchain_core_load_serializable.Serializable
|
|
|
54
54
|
this.source = source;
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
//#endregion
|
|
58
57
|
exports.GraphDocument = GraphDocument;
|
|
59
58
|
exports.Node = Node;
|
|
60
59
|
exports.Relationship = Relationship;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Serializable } from "@langchain/core/load/serializable";
|
|
2
2
|
import { Document } from "@langchain/core/documents";
|
|
3
|
-
//#region src/graphs/document.d.ts
|
|
4
3
|
type Any = any;
|
|
5
4
|
export declare class Node extends Serializable {
|
|
6
5
|
id: string | number;
|
|
@@ -37,5 +36,5 @@ export declare class GraphDocument extends Serializable {
|
|
|
37
36
|
source: Document;
|
|
38
37
|
});
|
|
39
38
|
}
|
|
40
|
-
|
|
39
|
+
export {};
|
|
41
40
|
//# sourceMappingURL=document.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.d.cts","names":[],"sources":["../../src/graphs/document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"document.d.cts","names":[],"sources":["../../src/graphs/document.ts"],"mappings":";;KAIK;qBAEQ,aAAa;EACxB;EAEA;EAEA,YAAY,eAAe;EAE3B;EAEA,cACE,IACA,MACA;IAEA;IACA;IACA,aAAa,eAAe;;;qBASnB,qBAAqB;EAChC,QAAQ;EAER,QAAQ;EAER;EAEA,YAAY,eAAe;EAE3B;EAEA,cACE,QACA,QACA,MACA;IAEA,QAAQ;IACR,QAAQ;IACR;IACA,aAAa,eAAe;;;qBAUnB,sBAAsB;EACjC,OAAO;EAEP,eAAe;EAEf,QAAQ;EAER;EAEA,cACE,OACA,eACA;IAEA,OAAO;IACP,eAAe;IACf,QAAQ"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Serializable } from "@langchain/core/load/serializable";
|
|
2
2
|
import { Document } from "@langchain/core/documents";
|
|
3
|
-
//#region src/graphs/document.d.ts
|
|
4
3
|
type Any = any;
|
|
5
4
|
export declare class Node extends Serializable {
|
|
6
5
|
id: string | number;
|
|
@@ -37,5 +36,5 @@ export declare class GraphDocument extends Serializable {
|
|
|
37
36
|
source: Document;
|
|
38
37
|
});
|
|
39
38
|
}
|
|
40
|
-
|
|
39
|
+
export {};
|
|
41
40
|
//# sourceMappingURL=document.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.d.ts","names":[],"sources":["../../src/graphs/document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"document.d.ts","names":[],"sources":["../../src/graphs/document.ts"],"mappings":";;KAIK;qBAEQ,aAAa;EACxB;EAEA;EAEA,YAAY,eAAe;EAE3B;EAEA,cACE,IACA,MACA;IAEA;IACA;IACA,aAAa,eAAe;;;qBASnB,qBAAqB;EAChC,QAAQ;EAER,QAAQ;EAER;EAEA,YAAY,eAAe;EAE3B;EAEA,cACE,QACA,QACA,MACA;IAEA,QAAQ;IACR,QAAQ;IACR;IACA,aAAa,eAAe;;;qBAUnB,sBAAsB;EACjC,OAAO;EAEP,eAAe;EAEf,QAAQ;EAER;EAEA,cACE,OACA,eACA;IAEA,OAAO;IACP,eAAe;IACf,QAAQ"}
|
package/dist/graphs/document.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Serializable } from "@langchain/core/load/serializable";
|
|
2
|
-
|
|
2
|
+
// src/graphs/document.ts
|
|
3
3
|
var Node = class extends Serializable {
|
|
4
4
|
id;
|
|
5
5
|
type;
|
|
@@ -54,7 +54,6 @@ var GraphDocument = class extends Serializable {
|
|
|
54
54
|
this.source = source;
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
//#endregion
|
|
58
57
|
export { GraphDocument, Node, Relationship };
|
|
59
58
|
|
|
60
59
|
//# sourceMappingURL=document.js.map
|
package/dist/graphs/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphDocument, Node, Relationship } from "./document.cjs";
|
|
2
1
|
import { AddGraphDocumentsConfig, BASE_ENTITY_LABEL, Neo4jGraph, Neo4jGraphConfig, NodeType, PathType, RelType, StructuredSchema, formatSchema } from "./neo4j_graph.cjs";
|
|
3
2
|
import { MemgraphGraph, MemgraphGraphConfig } from "./memgraph_graph.cjs";
|
|
3
|
+
import { GraphDocument, Node, Relationship } from "./document.cjs";
|
|
4
4
|
export { type AddGraphDocumentsConfig, BASE_ENTITY_LABEL, GraphDocument, MemgraphGraph, type MemgraphGraphConfig, Neo4jGraph, type Neo4jGraphConfig, Node, type NodeType, type PathType, type RelType, Relationship, type StructuredSchema, formatSchema };
|
package/dist/graphs/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphDocument, Node, Relationship } from "./document.js";
|
|
2
1
|
import { AddGraphDocumentsConfig, BASE_ENTITY_LABEL, Neo4jGraph, Neo4jGraphConfig, NodeType, PathType, RelType, StructuredSchema, formatSchema } from "./neo4j_graph.js";
|
|
3
2
|
import { MemgraphGraph, MemgraphGraphConfig } from "./memgraph_graph.js";
|
|
3
|
+
import { GraphDocument, Node, Relationship } from "./document.js";
|
|
4
4
|
export { type AddGraphDocumentsConfig, BASE_ENTITY_LABEL, GraphDocument, MemgraphGraph, type MemgraphGraphConfig, Neo4jGraph, type Neo4jGraphConfig, Node, type NodeType, type PathType, type RelType, Relationship, type StructuredSchema, formatSchema };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_neo4j_graph = require("./neo4j_graph.cjs");
|
|
2
|
-
|
|
2
|
+
// src/graphs/memgraph_graph.ts
|
|
3
3
|
const rawSchemaQuery = `
|
|
4
4
|
CALL llm_util.schema("raw")
|
|
5
5
|
YIELD *
|
|
@@ -70,7 +70,6 @@ var MemgraphGraph = class MemgraphGraph extends require_neo4j_graph.Neo4jGraph {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
|
-
//#endregion
|
|
74
73
|
exports.MemgraphGraph = MemgraphGraph;
|
|
75
74
|
|
|
76
75
|
//# sourceMappingURL=memgraph_graph.cjs.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Neo4jGraph } from "./neo4j_graph.cjs";
|
|
2
|
-
//#region src/graphs/memgraph_graph.d.ts
|
|
3
2
|
export interface MemgraphGraphConfig {
|
|
4
3
|
url: string;
|
|
5
4
|
username: string;
|
|
@@ -25,5 +24,4 @@ export declare class MemgraphGraph extends Neo4jGraph {
|
|
|
25
24
|
static initialize(config: MemgraphGraphConfig): Promise<MemgraphGraph>;
|
|
26
25
|
refreshSchema(): Promise<void>;
|
|
27
26
|
}
|
|
28
|
-
//#endregion
|
|
29
27
|
//# sourceMappingURL=memgraph_graph.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memgraph_graph.d.cts","names":[],"sources":["../../src/graphs/memgraph_graph.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"memgraph_graph.d.cts","names":[],"sources":["../../src/graphs/memgraph_graph.ts"],"mappings":";iBAEiB;EACf;EACA;EACA;EACA;;;;;;;;;;;;;;;;qBAuBW,sBAAsB;EACjC,cACE,KACA,UACA,UACA,YACC;SAIU,WAAW,QAAQ,sBAAsB,QAAQ;EAoBxD,iBAAa"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Neo4jGraph } from "./neo4j_graph.js";
|
|
2
|
-
//#region src/graphs/memgraph_graph.d.ts
|
|
3
2
|
export interface MemgraphGraphConfig {
|
|
4
3
|
url: string;
|
|
5
4
|
username: string;
|
|
@@ -25,5 +24,4 @@ export declare class MemgraphGraph extends Neo4jGraph {
|
|
|
25
24
|
static initialize(config: MemgraphGraphConfig): Promise<MemgraphGraph>;
|
|
26
25
|
refreshSchema(): Promise<void>;
|
|
27
26
|
}
|
|
28
|
-
//#endregion
|
|
29
27
|
//# sourceMappingURL=memgraph_graph.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memgraph_graph.d.ts","names":[],"sources":["../../src/graphs/memgraph_graph.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"memgraph_graph.d.ts","names":[],"sources":["../../src/graphs/memgraph_graph.ts"],"mappings":";iBAEiB;EACf;EACA;EACA;EACA;;;;;;;;;;;;;;;;qBAuBW,sBAAsB;EACjC,cACE,KACA,UACA,UACA,YACC;SAIU,WAAW,QAAQ,sBAAsB,QAAQ;EAoBxD,iBAAa"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Neo4jGraph } from "./neo4j_graph.js";
|
|
2
|
-
|
|
2
|
+
// src/graphs/memgraph_graph.ts
|
|
3
3
|
const rawSchemaQuery = `
|
|
4
4
|
CALL llm_util.schema("raw")
|
|
5
5
|
YIELD *
|
|
@@ -70,7 +70,6 @@ var MemgraphGraph = class MemgraphGraph extends Neo4jGraph {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
|
-
//#endregion
|
|
74
73
|
export { MemgraphGraph };
|
|
75
74
|
|
|
76
75
|
//# sourceMappingURL=memgraph_graph.js.map
|
|
@@ -2,7 +2,7 @@ const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
|
2
2
|
let neo4j_driver = require("neo4j-driver");
|
|
3
3
|
neo4j_driver = require_runtime.__toESM(neo4j_driver, 1);
|
|
4
4
|
let _langchain_core_utils_hash = require("@langchain/core/utils/hash");
|
|
5
|
-
|
|
5
|
+
// src/graphs/neo4j_graph.ts
|
|
6
6
|
const BASE_ENTITY_LABEL = "__Entity__";
|
|
7
7
|
const DISTINCT_VALUE_LIMIT = 10;
|
|
8
8
|
const LIST_LIMIT = 128;
|
|
@@ -427,7 +427,6 @@ const extractPathForRows = (path) => {
|
|
|
427
427
|
objIntToString(segment.end)
|
|
428
428
|
].filter((part) => part !== null));
|
|
429
429
|
};
|
|
430
|
-
//#endregion
|
|
431
430
|
exports.BASE_ENTITY_LABEL = BASE_ENTITY_LABEL;
|
|
432
431
|
exports.Neo4jGraph = Neo4jGraph;
|
|
433
432
|
exports.formatSchema = formatSchema;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { GraphDocument } from "./document.cjs";
|
|
2
2
|
import { RoutingControl } from "neo4j-driver";
|
|
3
|
-
//#region src/graphs/neo4j_graph.d.ts
|
|
4
3
|
type Any = any;
|
|
5
4
|
export interface Neo4jGraphConfig {
|
|
6
5
|
url: string;
|
|
@@ -83,5 +82,5 @@ export declare class Neo4jGraph {
|
|
|
83
82
|
addGraphDocuments(graphDocuments: GraphDocument[], config?: AddGraphDocumentsConfig): Promise<void>;
|
|
84
83
|
close(): Promise<void>;
|
|
85
84
|
}
|
|
86
|
-
|
|
85
|
+
export {};
|
|
87
86
|
//# sourceMappingURL=neo4j_graph.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neo4j_graph.d.cts","names":[],"sources":["../../src/graphs/neo4j_graph.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"neo4j_graph.d.cts","names":[],"sources":["../../src/graphs/neo4j_graph.ts"],"mappings":";;KAUK;iBAEY;EACf;EACA;EACA;EACA;EACA;EACA;;iBAGe;EACf;KAAc,KAAK,qBAAqB;;EACxC;KAAa,KAAK,kBAAkB;;EACpC,eAAe;EACf;IACE,YAAY,eAAe;IAC3B,OAAO,eAAe;;;iBAIT;EACf;EACA;;YAGU;EACV;EACA;IAAc;IAAkB;;;YAGtB;EACV;EACA;IAAc;IAAkB;;;YAGtB;EAAa;EAAe;EAAc;;qBAEzC;wBAsDG,aACd,QAAQ,eAAe,MACvB;;;;;;;;;;;;;;;qBAwIW;UACH;UAEA;UAEA;UAEA;YAEE;YAEA,kBAAkB;EAU5B,cACE,KACA,UACA,UACA,UACA,WACA,kBACC;SAaU,WAAW,QAAQ,mBAAmB,QAAQ;EAsB3D;EAIA,uBAAmB;EAIb,MAAM,oBAAoB,eAAe,OAAO,eAAe,MACnE,eACA,SAAQ,eAAe,MACvB,UAAS,iBACR,QAAQ;EASL,sBAAkB;EAIlB,iBAAa;EAkGb,qBACJ,qBACA;IAAc;IAAkB;OAChC,qBACA,2BAAsB;EA6HlB,kBACJ,gBAAgB,iBAChB,SAAQ,0BACP;EA+CG,SAAK"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { GraphDocument } from "./document.js";
|
|
2
2
|
import { RoutingControl } from "neo4j-driver";
|
|
3
|
-
//#region src/graphs/neo4j_graph.d.ts
|
|
4
3
|
type Any = any;
|
|
5
4
|
export interface Neo4jGraphConfig {
|
|
6
5
|
url: string;
|
|
@@ -83,5 +82,5 @@ export declare class Neo4jGraph {
|
|
|
83
82
|
addGraphDocuments(graphDocuments: GraphDocument[], config?: AddGraphDocumentsConfig): Promise<void>;
|
|
84
83
|
close(): Promise<void>;
|
|
85
84
|
}
|
|
86
|
-
|
|
85
|
+
export {};
|
|
87
86
|
//# sourceMappingURL=neo4j_graph.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neo4j_graph.d.ts","names":[],"sources":["../../src/graphs/neo4j_graph.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"neo4j_graph.d.ts","names":[],"sources":["../../src/graphs/neo4j_graph.ts"],"mappings":";;KAUK;iBAEY;EACf;EACA;EACA;EACA;EACA;EACA;;iBAGe;EACf;KAAc,KAAK,qBAAqB;;EACxC;KAAa,KAAK,kBAAkB;;EACpC,eAAe;EACf;IACE,YAAY,eAAe;IAC3B,OAAO,eAAe;;;iBAIT;EACf;EACA;;YAGU;EACV;EACA;IAAc;IAAkB;;;YAGtB;EACV;EACA;IAAc;IAAkB;;;YAGtB;EAAa;EAAe;EAAc;;qBAEzC;wBAsDG,aACd,QAAQ,eAAe,MACvB;;;;;;;;;;;;;;;qBAwIW;UACH;UAEA;UAEA;UAEA;YAEE;YAEA,kBAAkB;EAU5B,cACE,KACA,UACA,UACA,UACA,WACA,kBACC;SAaU,WAAW,QAAQ,mBAAmB,QAAQ;EAsB3D;EAIA,uBAAmB;EAIb,MAAM,oBAAoB,eAAe,OAAO,eAAe,MACnE,eACA,SAAQ,eAAe,MACvB,UAAS,iBACR,QAAQ;EASL,sBAAkB;EAIlB,iBAAa;EAkGb,qBACJ,qBACA;IAAc;IAAkB;OAChC,qBACA,2BAAsB;EA6HlB,kBACJ,gBAAgB,iBAChB,SAAQ,0BACP;EA+CG,SAAK"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import neo4j from "neo4j-driver";
|
|
2
2
|
import { sha256 } from "@langchain/core/utils/hash";
|
|
3
|
-
|
|
3
|
+
// src/graphs/neo4j_graph.ts
|
|
4
4
|
const BASE_ENTITY_LABEL = "__Entity__";
|
|
5
5
|
const DISTINCT_VALUE_LIMIT = 10;
|
|
6
6
|
const LIST_LIMIT = 128;
|
|
@@ -425,7 +425,6 @@ const extractPathForRows = (path) => {
|
|
|
425
425
|
objIntToString(segment.end)
|
|
426
426
|
].filter((part) => part !== null));
|
|
427
427
|
};
|
|
428
|
-
//#endregion
|
|
429
428
|
export { BASE_ENTITY_LABEL, Neo4jGraph, formatSchema };
|
|
430
429
|
|
|
431
430
|
//# sourceMappingURL=neo4j_graph.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Neo4jChatMessageHistory };
|
|
1
|
+
export { Neo4jChatMessageHistory } from "./neo4j.js";
|
|
@@ -4,7 +4,7 @@ neo4j_driver = require_runtime.__toESM(neo4j_driver, 1);
|
|
|
4
4
|
let _langchain_core_utils_uuid = require("@langchain/core/utils/uuid");
|
|
5
5
|
let _langchain_core_chat_history = require("@langchain/core/chat_history");
|
|
6
6
|
let _langchain_core_messages = require("@langchain/core/messages");
|
|
7
|
-
|
|
7
|
+
// src/stores/message/neo4j.ts
|
|
8
8
|
const defaultConfig = {
|
|
9
9
|
sessionNodeLabel: "ChatSession",
|
|
10
10
|
messageNodeLabel: "ChatMessage",
|
|
@@ -104,7 +104,6 @@ var Neo4jChatMessageHistory = class Neo4jChatMessageHistory extends _langchain_c
|
|
|
104
104
|
await this.driver.close();
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
|
-
//#endregion
|
|
108
107
|
exports.Neo4jChatMessageHistory = Neo4jChatMessageHistory;
|
|
109
108
|
|
|
110
109
|
//# sourceMappingURL=neo4j.cjs.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ServerInfo } from "neo4j-driver";
|
|
2
2
|
import { BaseListChatMessageHistory } from "@langchain/core/chat_history";
|
|
3
3
|
import { BaseMessage } from "@langchain/core/messages";
|
|
4
|
-
//#region src/stores/message/neo4j.d.ts
|
|
5
4
|
export type Neo4jChatMessageHistoryConfigInput = {
|
|
6
5
|
sessionId?: string | number;
|
|
7
6
|
sessionNodeLabel?: string;
|
|
@@ -26,5 +25,4 @@ export declare class Neo4jChatMessageHistory extends BaseListChatMessageHistory
|
|
|
26
25
|
clear(): Promise<void>;
|
|
27
26
|
close(): Promise<void>;
|
|
28
27
|
}
|
|
29
|
-
//#endregion
|
|
30
28
|
//# sourceMappingURL=neo4j.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neo4j.d.cts","names":[],"sources":["../../../src/stores/message/neo4j.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"neo4j.d.cts","names":[],"sources":["../../../src/stores/message/neo4j.ts"],"mappings":";;;YAQY;EACV;EACA;EACA;EACA;EACA;EACA;EACA;;qBASW,gCAAgC;EAC3C;EAEA;EAEA;EAEA;EAEA;UAEQ;EAER,cACE,WACA,kBACA,kBACA,KACA,UACA,UACA,cACC;SAsBU,WACX,OAAO,qCACN,QAAQ;EAeL,sBAAsB,QAAQ;EAK9B,eAAe,QAAQ;EA4BvB,WAAW,SAAS,cAAc;EAyBlC,SAAK;EAmBL,SAAK"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ServerInfo } from "neo4j-driver";
|
|
2
2
|
import { BaseListChatMessageHistory } from "@langchain/core/chat_history";
|
|
3
3
|
import { BaseMessage } from "@langchain/core/messages";
|
|
4
|
-
//#region src/stores/message/neo4j.d.ts
|
|
5
4
|
export type Neo4jChatMessageHistoryConfigInput = {
|
|
6
5
|
sessionId?: string | number;
|
|
7
6
|
sessionNodeLabel?: string;
|
|
@@ -26,5 +25,4 @@ export declare class Neo4jChatMessageHistory extends BaseListChatMessageHistory
|
|
|
26
25
|
clear(): Promise<void>;
|
|
27
26
|
close(): Promise<void>;
|
|
28
27
|
}
|
|
29
|
-
//#endregion
|
|
30
28
|
//# sourceMappingURL=neo4j.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neo4j.d.ts","names":[],"sources":["../../../src/stores/message/neo4j.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"neo4j.d.ts","names":[],"sources":["../../../src/stores/message/neo4j.ts"],"mappings":";;;YAQY;EACV;EACA;EACA;EACA;EACA;EACA;EACA;;qBASW,gCAAgC;EAC3C;EAEA;EAEA;EAEA;EAEA;UAEQ;EAER,cACE,WACA,kBACA,kBACA,KACA,UACA,UACA,cACC;SAsBU,WACX,OAAO,qCACN,QAAQ;EAeL,sBAAsB,QAAQ;EAK9B,eAAe,QAAQ;EA4BvB,WAAW,SAAS,cAAc;EAyBlC,SAAK;EAmBL,SAAK"}
|
|
@@ -2,7 +2,7 @@ import neo4j, { auth } from "neo4j-driver";
|
|
|
2
2
|
import { v4 } from "@langchain/core/utils/uuid";
|
|
3
3
|
import { BaseListChatMessageHistory } from "@langchain/core/chat_history";
|
|
4
4
|
import { mapStoredMessagesToChatMessages } from "@langchain/core/messages";
|
|
5
|
-
|
|
5
|
+
// src/stores/message/neo4j.ts
|
|
6
6
|
const defaultConfig = {
|
|
7
7
|
sessionNodeLabel: "ChatSession",
|
|
8
8
|
messageNodeLabel: "ChatMessage",
|
|
@@ -102,7 +102,6 @@ var Neo4jChatMessageHistory = class Neo4jChatMessageHistory extends BaseListChat
|
|
|
102
102
|
await this.driver.close();
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
|
-
//#endregion
|
|
106
105
|
export { Neo4jChatMessageHistory };
|
|
107
106
|
|
|
108
107
|
//# sourceMappingURL=neo4j.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Neo4jVectorStore, constructMetadataFilter, isVersionLessThan, removeLuceneChars };
|
|
1
|
+
export { Neo4jVectorStore, constructMetadataFilter, isVersionLessThan, removeLuceneChars } from "./neo4j_vector.js";
|
|
@@ -5,7 +5,7 @@ let _langchain_core_utils_uuid = require("@langchain/core/utils/uuid");
|
|
|
5
5
|
_langchain_core_utils_uuid = require_runtime.__toESM(_langchain_core_utils_uuid, 1);
|
|
6
6
|
let _langchain_core_vectorstores = require("@langchain/core/vectorstores");
|
|
7
7
|
let _langchain_core_documents = require("@langchain/core/documents");
|
|
8
|
-
|
|
8
|
+
// src/vectorstores/neo4j_vector.ts
|
|
9
9
|
const DEFAULT_SEARCH_TYPE = "vector";
|
|
10
10
|
const DEFAULT_INDEX_TYPE = "NODE";
|
|
11
11
|
const DEFAULT_DISTANCE_STRATEGY = "cosine";
|
|
@@ -615,7 +615,6 @@ function constructMetadataFilter(filter) {
|
|
|
615
615
|
else throw Error("Invalid filter condition. Expected a dictionary but got an empty dictionary");
|
|
616
616
|
} else throw new Error("Filter condition contains no entries.");
|
|
617
617
|
}
|
|
618
|
-
//#endregion
|
|
619
618
|
exports.Neo4jVectorStore = Neo4jVectorStore;
|
|
620
619
|
exports.constructMetadataFilter = constructMetadataFilter;
|
|
621
620
|
exports.isVersionLessThan = isVersionLessThan;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Document } from "@langchain/core/documents";
|
|
2
2
|
import { EmbeddingsInterface } from "@langchain/core/embeddings";
|
|
3
3
|
import { VectorStore } from "@langchain/core/vectorstores";
|
|
4
|
-
//#region src/vectorstores/neo4j_vector.d.ts
|
|
5
4
|
type Any = any;
|
|
6
5
|
export type SearchType = "vector" | "hybrid";
|
|
7
6
|
export type IndexType = "NODE" | "RELATIONSHIP";
|
|
@@ -85,5 +84,5 @@ export declare class Neo4jVectorStore extends VectorStore {
|
|
|
85
84
|
export declare function removeLuceneChars(text: string | null): string | null;
|
|
86
85
|
export declare function isVersionLessThan(v1: number[], v2: number[]): boolean;
|
|
87
86
|
export declare function constructMetadataFilter(filter: Record<string, Any>): [string, Record<string, Any>];
|
|
88
|
-
|
|
87
|
+
export {};
|
|
89
88
|
//# sourceMappingURL=neo4j_vector.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neo4j_vector.d.cts","names":[],"sources":["../../src/vectorstores/neo4j_vector.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"neo4j_vector.d.cts","names":[],"sources":["../../src/vectorstores/neo4j_vector.ts"],"mappings":";;;KAWK;YAEO;YAEA;YAEA;YAEA,WAAW;iBAEN;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,aAAa;EACb,YAAY;EACZ;EACA;EACA;;;;;;;;;;;;;;;;qBAsBW,yBAAyB;UAC5B;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;EAER;EAIA,YAAY,YAAY,qBAAqB,QAAQ;SAIxC,WACX,YAAY,qBACZ,QAAQ,uBAAoB,QAAA;EAoCxB,oBACJ,KACA,UACA,UACA,YACC,uBAAoB;EAWjB,uBAAmB;EAInB,kBAAc;EAiCd,SAAK;EAIL,cAAU;EAgBV,MAAM,eAAe,SAAQ,MAAW,QAAQ;SAMzC,UACX,iBACA,WAAW,KACX,YAAY,qBACZ,QAAQ,uBACP,QAAQ;SAeE,cACX,MAAM,YACN,YAAY,qBACZ,QAAQ,uBACP,QAAQ;SA8CE,kBACX,YAAY,qBACZ,QAAQ,uBAAoB,QAAA;SA+CjB,kBACX,YAAY,qBACZ,QAAQ,uBAAoB,QAAA;EA0GxB,kBAAkB;EAsBlB,yBAAqB;EAuCrB,yBACJ,gCACC;EA2CG,sBACJ,gCACC;EAeH,gBACE,QAAQ;KAAS,cAAc;MAC/B,oBACC;KAAS,cAAc;;EAOpB,WACJ,qBACA,WAAW,YACX,YAAY,eAAe,QAC3B,iBACC;EAmCG,aAAa,WAAW,aAAa;EASrC,iBACJ,eACA,YACA,SAAQ,eAAe,OACtB,QAAQ;EAaL,0BACJ,eACA,YACA,SAAQ,eAAe,OACtB,SAAS;EAKN,gCACJ,kBACA,WACA,eACA,SAAQ,eAAe,OACtB,SAAS;;wBA8ME,kBAAkB;wBAgClB,kBAAkB,cAAc;wBA+LhC,wBACd,QAAQ,eAAe,gBACb,eAAe"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { VectorStore } from "@langchain/core/vectorstores";
|
|
2
2
|
import { Document } from "@langchain/core/documents";
|
|
3
3
|
import { EmbeddingsInterface } from "@langchain/core/embeddings";
|
|
4
|
-
//#region src/vectorstores/neo4j_vector.d.ts
|
|
5
4
|
type Any = any;
|
|
6
5
|
export type SearchType = "vector" | "hybrid";
|
|
7
6
|
export type IndexType = "NODE" | "RELATIONSHIP";
|
|
@@ -85,5 +84,5 @@ export declare class Neo4jVectorStore extends VectorStore {
|
|
|
85
84
|
export declare function removeLuceneChars(text: string | null): string | null;
|
|
86
85
|
export declare function isVersionLessThan(v1: number[], v2: number[]): boolean;
|
|
87
86
|
export declare function constructMetadataFilter(filter: Record<string, Any>): [string, Record<string, Any>];
|
|
88
|
-
|
|
87
|
+
export {};
|
|
89
88
|
//# sourceMappingURL=neo4j_vector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neo4j_vector.d.ts","names":[],"sources":["../../src/vectorstores/neo4j_vector.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"neo4j_vector.d.ts","names":[],"sources":["../../src/vectorstores/neo4j_vector.ts"],"mappings":";;;KAWK;YAEO;YAEA;YAEA;YAEA,WAAW;iBAEN;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,aAAa;EACb,YAAY;EACZ;EACA;EACA;;;;;;;;;;;;;;;;qBAsBW,yBAAyB;UAC5B;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;UAEA;EAER;EAIA,YAAY,YAAY,qBAAqB,QAAQ;SAIxC,WACX,YAAY,qBACZ,QAAQ,uBAAoB,QAAA;EAoCxB,oBACJ,KACA,UACA,UACA,YACC,uBAAoB;EAWjB,uBAAmB;EAInB,kBAAc;EAiCd,SAAK;EAIL,cAAU;EAgBV,MAAM,eAAe,SAAQ,MAAW,QAAQ;SAMzC,UACX,iBACA,WAAW,KACX,YAAY,qBACZ,QAAQ,uBACP,QAAQ;SAeE,cACX,MAAM,YACN,YAAY,qBACZ,QAAQ,uBACP,QAAQ;SA8CE,kBACX,YAAY,qBACZ,QAAQ,uBAAoB,QAAA;SA+CjB,kBACX,YAAY,qBACZ,QAAQ,uBAAoB,QAAA;EA0GxB,kBAAkB;EAsBlB,yBAAqB;EAuCrB,yBACJ,gCACC;EA2CG,sBACJ,gCACC;EAeH,gBACE,QAAQ;KAAS,cAAc;MAC/B,oBACC;KAAS,cAAc;;EAOpB,WACJ,qBACA,WAAW,YACX,YAAY,eAAe,QAC3B,iBACC;EAmCG,aAAa,WAAW,aAAa;EASrC,iBACJ,eACA,YACA,SAAQ,eAAe,OACtB,QAAQ;EAaL,0BACJ,eACA,YACA,SAAQ,eAAe,OACtB,SAAS;EAKN,gCACJ,kBACA,WACA,eACA,SAAQ,eAAe,OACtB,SAAS;;wBA8ME,kBAAkB;wBAgClB,kBAAkB,cAAc;wBA+LhC,wBACd,QAAQ,eAAe,gBACb,eAAe"}
|
|
@@ -2,7 +2,7 @@ import neo4j from "neo4j-driver";
|
|
|
2
2
|
import * as uuid from "@langchain/core/utils/uuid";
|
|
3
3
|
import { VectorStore } from "@langchain/core/vectorstores";
|
|
4
4
|
import { Document } from "@langchain/core/documents";
|
|
5
|
-
|
|
5
|
+
// src/vectorstores/neo4j_vector.ts
|
|
6
6
|
const DEFAULT_SEARCH_TYPE = "vector";
|
|
7
7
|
const DEFAULT_INDEX_TYPE = "NODE";
|
|
8
8
|
const DEFAULT_DISTANCE_STRATEGY = "cosine";
|
|
@@ -612,7 +612,6 @@ function constructMetadataFilter(filter) {
|
|
|
612
612
|
else throw Error("Invalid filter condition. Expected a dictionary but got an empty dictionary");
|
|
613
613
|
} else throw new Error("Filter condition contains no entries.");
|
|
614
614
|
}
|
|
615
|
-
//#endregion
|
|
616
615
|
export { Neo4jVectorStore, constructMetadataFilter, isVersionLessThan, removeLuceneChars };
|
|
617
616
|
|
|
618
617
|
//# sourceMappingURL=neo4j_vector.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/neo4j",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"description": "Neo4j integrations for LangChain.js",
|
|
5
5
|
"author": "LangChain",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
},
|
|
15
15
|
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/providers/langchain-neo4j/",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"neo4j-driver": "^6.
|
|
17
|
+
"neo4j-driver": "^6.3.0"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@langchain/
|
|
21
|
-
"@langchain/
|
|
20
|
+
"@langchain/core": "^1.3.5",
|
|
21
|
+
"@langchain/classic": "1.0.59"
|
|
22
22
|
},
|
|
23
23
|
"peerDependenciesMeta": {
|
|
24
24
|
"@langchain/classic": {
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@tsconfig/recommended": "^1.0.10",
|
|
30
|
-
"@types/node": "^26.6.
|
|
31
|
-
"@vitest/coverage-v8": "^5.0.
|
|
32
|
-
"dotenv": "^
|
|
30
|
+
"@types/node": "^26.6.6",
|
|
31
|
+
"@vitest/coverage-v8": "^5.0.5",
|
|
32
|
+
"dotenv": "^18.0.9",
|
|
33
33
|
"dpdm": "^4.3.0",
|
|
34
34
|
"rimraf": "^6.1.3",
|
|
35
35
|
"typescript": "~7.0.2",
|
|
36
|
-
"vitest": "^5.0.
|
|
37
|
-
"@langchain/classic": "1.0.
|
|
38
|
-
"@langchain/core": "^1.3.1",
|
|
36
|
+
"vitest": "^5.0.5",
|
|
37
|
+
"@langchain/classic": "1.0.59",
|
|
39
38
|
"@langchain/standard-tests": "0.0.23",
|
|
39
|
+
"@langchain/core": "^1.3.5",
|
|
40
40
|
"@langchain/tsconfig": "0.0.1"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|