-
Notifications
You must be signed in to change notification settings - Fork 650
Description
Traceback (most recent call last):
File "/mnt/SSD/home/zxy24/KAG/kag/builder/prompt/default/util.py", line 180, in check_data
info = json.loads(
File "/mnt/SSD/home/zxy24/anaconda3/envs/openspg/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/mnt/SSD/home/zxy24/anaconda3/envs/openspg/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/mnt/SSD/home/zxy24/anaconda3/envs/openspg/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 2 (char 1)
2025-10-16 21:34:50 - ERROR - root - Failed to process data {'id': 'Alû', 'name': 'Alû', 'content': 'In Akkadia'}, info:
Traceback (most recent call last):
File "/mnt/SSD/home/zxy24/KAG/kag/builder/runner.py", line 207, in process
result = await self.chain.ainvoke(data)
File "/mnt/SSD/home/zxy24/KAG/kag/interface/builder/builder_chain_abc.py", line 164, in ainvoke
outputs = await asyncio.gather(*tasks)
File "/mnt/SSD/home/zxy24/KAG/kag/interface/builder/builder_chain_abc.py", line 134, in execute_node
results = await asyncio.gather(*tasks)
File "/mnt/SSD/home/zxy24/KAG/kag/interface/builder/builder_chain_abc.py", line 126, in ainvoke_with_semaphore
return await node.ainvoke(item)
File "/mnt/SSD/home/zxy24/KAG/kag/interface/builder/base.py", line 215, in ainvoke
output = await self._ainvoke(input_data, **kwargs)
File "/mnt/SSD/home/zxy24/KAG/kag/builder/component/extractor/knowledge_unit_extractor.py", line 671, in _ainvoke
knowledge_unit_nodes = self.assemble_knowledge_unit(
File "/mnt/SSD/home/zxy24/KAG/kag/builder/component/extractor/knowledge_unit_extractor.py", line 587, in assemble_knowledge_unit
for item in knowledge_value.get("core_entities", "").split(","):
AttributeError: 'dict' object has no attribute 'split'
100%|██████████████████████████████████████████████████| 8/8 [02:57<00:00, 22.23s/it]
Done process 8 records, with 0 found in checkpoint, 0 successfully processed and 8 failures encountered.
The log file is located at ckpt/kag_checkpoint_0_1.ckpt. Please access this file to obtain detailed task statistics.
2025-10-16 21:34:50 - INFO - main -
buildKB successfully for /mnt/SSD/home/zxy24/KAG/kag/examples/HotpotQATest/builder/data/sub_corpus.json