mindgraph 0.6.0 → 0.6.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/dist/index.d.mts +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +8 -0
- package/dist/index.mjs +8 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -46,6 +46,21 @@ interface LegContribution {
|
|
|
46
46
|
*/
|
|
47
47
|
score: number;
|
|
48
48
|
}
|
|
49
|
+
/** A suspected duplicate pair awaiting human review (pending PossibleDuplicate edge). */
|
|
50
|
+
interface MergeCandidate {
|
|
51
|
+
edge_uid: string;
|
|
52
|
+
node_a_uid: string;
|
|
53
|
+
node_a_label: string;
|
|
54
|
+
node_a_summary: string;
|
|
55
|
+
node_b_uid: string;
|
|
56
|
+
node_b_label: string;
|
|
57
|
+
node_b_summary: string;
|
|
58
|
+
node_type: string;
|
|
59
|
+
/** Similarity score that triggered the candidate (e.g. cosine), if known. */
|
|
60
|
+
similarity: number | null;
|
|
61
|
+
/** How the candidate was found: "exact" | "fuzzy" | "semantic" | "llm". */
|
|
62
|
+
method: string | null;
|
|
63
|
+
}
|
|
49
64
|
/** A `/retrieve` hybrid result: the full node plus the fused RRF score. */
|
|
50
65
|
interface HybridSearchResult {
|
|
51
66
|
node: GraphNode;
|
|
@@ -1144,6 +1159,12 @@ declare class MindGraph {
|
|
|
1144
1159
|
getOpenQuestions(): Promise<GraphNode[]>;
|
|
1145
1160
|
getWeakClaims(): Promise<GraphNode[]>;
|
|
1146
1161
|
getContradictions(): Promise<unknown[]>;
|
|
1162
|
+
/**
|
|
1163
|
+
* Pending merge candidates: suspected duplicate pairs recorded by the dedup
|
|
1164
|
+
* pipeline's ambiguous zone as PossibleDuplicate edges, awaiting a human
|
|
1165
|
+
* merge/dismiss decision (server >= 1.3).
|
|
1166
|
+
*/
|
|
1167
|
+
getMergeCandidates(): Promise<MergeCandidate[]>;
|
|
1147
1168
|
getPendingApprovals(): Promise<GraphNode[]>;
|
|
1148
1169
|
ingestChunk(req: IngestChunkRequest): Promise<IngestChunkResponse>;
|
|
1149
1170
|
ingestDocument(req: IngestDocumentRequest): Promise<IngestDocumentResponse>;
|
package/dist/index.d.ts
CHANGED
|
@@ -46,6 +46,21 @@ interface LegContribution {
|
|
|
46
46
|
*/
|
|
47
47
|
score: number;
|
|
48
48
|
}
|
|
49
|
+
/** A suspected duplicate pair awaiting human review (pending PossibleDuplicate edge). */
|
|
50
|
+
interface MergeCandidate {
|
|
51
|
+
edge_uid: string;
|
|
52
|
+
node_a_uid: string;
|
|
53
|
+
node_a_label: string;
|
|
54
|
+
node_a_summary: string;
|
|
55
|
+
node_b_uid: string;
|
|
56
|
+
node_b_label: string;
|
|
57
|
+
node_b_summary: string;
|
|
58
|
+
node_type: string;
|
|
59
|
+
/** Similarity score that triggered the candidate (e.g. cosine), if known. */
|
|
60
|
+
similarity: number | null;
|
|
61
|
+
/** How the candidate was found: "exact" | "fuzzy" | "semantic" | "llm". */
|
|
62
|
+
method: string | null;
|
|
63
|
+
}
|
|
49
64
|
/** A `/retrieve` hybrid result: the full node plus the fused RRF score. */
|
|
50
65
|
interface HybridSearchResult {
|
|
51
66
|
node: GraphNode;
|
|
@@ -1144,6 +1159,12 @@ declare class MindGraph {
|
|
|
1144
1159
|
getOpenQuestions(): Promise<GraphNode[]>;
|
|
1145
1160
|
getWeakClaims(): Promise<GraphNode[]>;
|
|
1146
1161
|
getContradictions(): Promise<unknown[]>;
|
|
1162
|
+
/**
|
|
1163
|
+
* Pending merge candidates: suspected duplicate pairs recorded by the dedup
|
|
1164
|
+
* pipeline's ambiguous zone as PossibleDuplicate edges, awaiting a human
|
|
1165
|
+
* merge/dismiss decision (server >= 1.3).
|
|
1166
|
+
*/
|
|
1167
|
+
getMergeCandidates(): Promise<MergeCandidate[]>;
|
|
1147
1168
|
getPendingApprovals(): Promise<GraphNode[]>;
|
|
1148
1169
|
ingestChunk(req: IngestChunkRequest): Promise<IngestChunkResponse>;
|
|
1149
1170
|
ingestDocument(req: IngestDocumentRequest): Promise<IngestDocumentResponse>;
|
package/dist/index.js
CHANGED
|
@@ -531,6 +531,14 @@ var MindGraph = class {
|
|
|
531
531
|
async getContradictions() {
|
|
532
532
|
return this.get("/contradictions");
|
|
533
533
|
}
|
|
534
|
+
/**
|
|
535
|
+
* Pending merge candidates: suspected duplicate pairs recorded by the dedup
|
|
536
|
+
* pipeline's ambiguous zone as PossibleDuplicate edges, awaiting a human
|
|
537
|
+
* merge/dismiss decision (server >= 1.3).
|
|
538
|
+
*/
|
|
539
|
+
async getMergeCandidates() {
|
|
540
|
+
return this.post("/retrieve", { action: "merge_candidates" });
|
|
541
|
+
}
|
|
534
542
|
async getPendingApprovals() {
|
|
535
543
|
return this.get("/approvals/pending");
|
|
536
544
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -504,6 +504,14 @@ var MindGraph = class {
|
|
|
504
504
|
async getContradictions() {
|
|
505
505
|
return this.get("/contradictions");
|
|
506
506
|
}
|
|
507
|
+
/**
|
|
508
|
+
* Pending merge candidates: suspected duplicate pairs recorded by the dedup
|
|
509
|
+
* pipeline's ambiguous zone as PossibleDuplicate edges, awaiting a human
|
|
510
|
+
* merge/dismiss decision (server >= 1.3).
|
|
511
|
+
*/
|
|
512
|
+
async getMergeCandidates() {
|
|
513
|
+
return this.post("/retrieve", { action: "merge_candidates" });
|
|
514
|
+
}
|
|
507
515
|
async getPendingApprovals() {
|
|
508
516
|
return this.get("/approvals/pending");
|
|
509
517
|
}
|