Skip to content

[Question]: Turn on the Reasoning function and an error will be reported during the chat. #5560

Open
@zhouyangit

Description

@zhouyangit

Describe your problem

I used the latest v0.17.0 version. In the assistant, after turning on Reasoning, an error is reported every time during the chat.

2025-03-03 17:52:43,762 INFO     19 [THINK]Query: 0. 帮我介绍一下苹果
Traceback (most recent call last):
  File "/ragflow/api/apps/conversation_app.py", line 231, in stream
    for ans in chat(dia, msg, True, **req):
  File "/ragflow/api/db/services/dialog_service.py", line 193, in chat
    for think in reasoner.thinking(kbinfos, " ".join(questions)):
  File "/ragflow/agentic_reasoning/deep_research.py", line 117, in thinking
    kbinfos = self._kb_retrieve(question=search_query) if self._kb_retrieve else {"chunks": [], "doc_aggs": []}
  File "<@beartype(rag.nlp.search.Dealer.retrieval) at 0x75ce1e9d6200>", line 35, in retrieval
  File "/ragflow/rag/nlp/search.py", line 371, in retrieval
    sim, tsim, vsim = self.rerank(
  File "<@beartype(rag.nlp.search.Dealer.rerank) at 0x75ce1e9d6050>", line 35, in rerank
  File "/ragflow/rag/nlp/search.py", line 301, in rerank
    rank_fea = self._rank_feature_scores(rank_feature, sres)
  File "/ragflow/rag/nlp/search.py", line 261, in _rank_feature_scores
    for t, sc in eval(search_res.field[i].get(TAG_FLD, "{}")).items():
  File "<string>", line 0

If Reasoning is not turned on, there will be no problem. What should I do to solve it?

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