MCPcopy Create free account
hub / github.com/YiTangMJ/GraphRAG-Example / parseExtractionResult

Function parseExtractionResult

src/services/llmExtractor.js:37–91  ·  view source on GitHub ↗

* Parse the LLM response into { nodes, edges }. * Handles: raw JSON, markdown code blocks, Chinese punctuation, * trailing commas, and various formatting quirks.

(raw)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

extractWithLLMFunction · 0.85

Calls 3

sanitizeJsonFunction · 0.85
tryParseJsonFunction · 0.85
extractJsonObjectFunction · 0.85

Tested by

no test coverage detected