Skip to content

[Question]: It occurs an error when searching with knowledge graph after updating the ragflow version to v0.17.1 #6030

Closed
@lxf44944

Description

@lxf44944

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (Language Policy).
  • Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Describe your problem

2025-03-13 08:08:06,527 INFO 18015 POST http://localhost:1200/ragflow_2bd6eb7efe6c11ef9ec1fa16a9bb5fcf/_search [status:200 duration:0.037s]
2025-03-13 08:08:06,591 ERROR 18015 Object of type coroutine is not JSON serializable
Traceback (most recent call last):
File "/home/oppoer/ragflow_new/ragflow/graphrag/search.py", line 158, in retrieval
ty_kwds, ents = self.query_rewrite(llm, qst, [index_name(tid) for tid in tenant_ids], kb_ids)
File "/home/oppoer/ragflow_new/ragflow/graphrag/search.py", line 46, in query_rewrite
TYPE_POOL=json.dumps(ty2ents, ensure_ascii=False, indent=2))
File "/opt/conda/envs/ragflow/lib/python3.10/json/init.py", line 238, in dumps
**kw).encode(obj)
File "/opt/conda/envs/ragflow/lib/python3.10/json/encoder.py", line 201, in encode
chunks = list(chunks)
File "/opt/conda/envs/ragflow/lib/python3.10/json/encoder.py", line 438, in _iterencode
o = _default(o)
File "/home/oppoer/ragflow_new/ragflow/api/utils/init.py", line 148, in default
return json.JSONEncoder.default(self, obj)
File "/opt/conda/envs/ragflow/lib/python3.10/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.class.name} '
TypeError: Object of type coroutine is not JSON serializable
2025-03-13 08:08:06,602 WARNING 18015 /home/oppoer/ragflow_new/ragflow/.venv/lib/python3.10/site-packages/torch/nn/parameter.py:12: RuntimeWarning: coroutine 'get_entity_type2sampels' was never awaited
if isinstance(instance, torch.Tensor) and getattr(

2025-03-13 08:08:06,632 ERROR 18015 LLMBundle.encode_queries can't update token usage for 2bd6eb7efe6c11ef9ec1fa16a9bb5fcf/EMBEDDING used_tokens: 19

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions