Kevin Hu
commited on
Commit
·
2475c5c
1
Parent(s):
2c10f14
Fix param error. (#4645)
Browse files### 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
CHANGED
@@ -135,7 +135,7 @@ class GraphExtractor(Extractor):
|
|
135 |
break
|
136 |
history.append({"role": "assistant", "content": response})
|
137 |
history.append({"role": "user", "content": LOOP_PROMPT})
|
138 |
-
continuation = self._chat("", history,
|
139 |
token_count += num_tokens_from_string("\n".join([m["content"] for m in history]) + response)
|
140 |
if continuation != "YES":
|
141 |
break
|
|
|
135 |
break
|
136 |
history.append({"role": "assistant", "content": response})
|
137 |
history.append({"role": "user", "content": LOOP_PROMPT})
|
138 |
+
continuation = self._chat("", history, {"temperature": 0.8})
|
139 |
token_count += num_tokens_from_string("\n".join([m["content"] for m in history]) + response)
|
140 |
if continuation != "YES":
|
141 |
break
|