From 42f7261509b7627e918025a398a909dcc0858245 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Sun, 26 Jan 2025 10:40:02 +0800 Subject: [PATCH] Fix param error. (#4645) ### What problem does this PR solve? #4633 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- graphrag/general/graph_extractor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphrag/general/graph_extractor.py b/graphrag/general/graph_extractor.py index c30ee40f3..b709c3af4 100644 --- a/graphrag/general/graph_extractor.py +++ b/graphrag/general/graph_extractor.py @@ -135,7 +135,7 @@ class GraphExtractor(Extractor): break history.append({"role": "assistant", "content": response}) history.append({"role": "user", "content": LOOP_PROMPT}) - continuation = self._chat("", history, self._loop_args) + continuation = self._chat("", history, {"temperature": 0.8}) token_count += num_tokens_from_string("\n".join([m["content"] for m in history]) + response) if continuation != "YES": break