Skip to content

LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。

TypeScript

fix: use retrievalGraph.nodes.get() instead of retrievalGraph.get()

nash_su23241b9ba5ae
diff --git a/src/lib/wiki-graph.ts b/src/lib/wiki-graph.ts
index deb00e56..2ad0cdad 100644
--- a/src/lib/wiki-graph.ts
+++ b/src/lib/wiki-graph.ts
@@ -149,8 +149,8 @@ export async function buildWikiGraph(
const edges: GraphEdge[] = dedupedEdges.map((e) => {
let weight = 1
if (retrievalGraph) {
- const nodeA = retrievalGraph.get(e.source)
- const nodeB = retrievalGraph.get(e.target)
+ const nodeA = retrievalGraph.nodes.get(e.source)
+ const nodeB = retrievalGraph.nodes.get(e.target)
if (nodeA && nodeB) {
weight = calculateRelevance(nodeA, nodeB, retrievalGraph)
}