mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 19:29:01 +08:00
fix: double brace issue (#3328)
### What problem does this PR solve? #3299 ### Type of change - [x] Performance Improvement
This commit is contained in:
parent
34d1daac67
commit
88072b1e90
@ -80,6 +80,8 @@ class CommunityReportsExtractor:
|
||||
token_count += num_tokens_from_string(text + response)
|
||||
response = re.sub(r"^[^\{]*", "", response)
|
||||
response = re.sub(r"[^\}]*$", "", response)
|
||||
response = re.sub(r"\{\{", "{", response)
|
||||
response = re.sub(r"\}\}", "}", response)
|
||||
print(response)
|
||||
response = json.loads(response)
|
||||
if not dict_has_keys_with_types(response, [
|
||||
|
Loading…
x
Reference in New Issue
Block a user