ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Bug]: Input some specific words in chat, an error is returned

Open yangyonguo opened this issue 9 months ago • 3 comments

Is there an existing issue for the same bug?

  • [x] I have checked the existing issues.

RAGFlow workspace code commit ID

#3696

RAGFlow image version

v0.16.0 slim

Other environment information


Actual behavior

Enter the following words in the chat page input field, An error is reported after sending:

你是
你是谁
怎么

ERROR: (3052, 'Trying to match: on fields: title_tks^10,title_sm_tks^5,important_kwd^30,important_tks^20,question_tks^20,content_ltks^2,content_sm_ltks failed.@src/planner/bound_select_statement.cpp:343')

Expected behavior

Is this problem the same as #3696

Steps to reproduce

Enter the following words in the chat page input field, An error is reported after sending:


你是
你是谁
怎么

Additional information

No response

yangyonguo avatar Feb 21 '25 01:02 yangyonguo

@yangyonguo I can confirm it's a bug of RAGFlow.

yuzhichang avatar Feb 21 '25 07:02 yuzhichang

@yuzhichang Is there a bug fix plan?

yangyonguo avatar Feb 21 '25 09:02 yangyonguo

Hello, has this bug been fixed? In the latest nightly build, the system page displays the version number is v0.17.0-57-g4f950430 slim. When asking "你是谁", an error still occurs. However, when asking "你好,你是谁?", the system responds correctly. Clearing the assistant's KB configuration can make it respond correctly.

Guanxinyi-cookies avatar Mar 07 '25 15:03 Guanxinyi-cookies

This issue still exists in Docker v0.17.2-slim, regardless of whether I'm using the "chat_tab" in ragflow frontend or API

Image

Image

Sos-Zachary avatar Apr 07 '25 07:04 Sos-Zachary

This issue still exists in Docker v0.18.0,when add knowledge

DesmondChh avatar Apr 29 '25 03:04 DesmondChh

This issue still exists in Docker v0.18.0, HTTP API -> Converse with agent

earlBell avatar May 08 '25 02:05 earlBell

我也碰到这个问题了,问“你是谁?” 报错:

ERROR: (3052, 'Trying to match: on fields: title_tks^10,title_sm_tks^5,important_kwd^30,important_tks^20,question_tks^20,content_ltks^2,content_sm_ltks failed.@src/planner/bound_select_statement.cpp:343')

ghj1976 avatar May 08 '25 08:05 ghj1976

Docker v0.18.0 这个还没修复

ghj1976 avatar May 08 '25 08:05 ghj1976

Same here, in 0.18.0, with infinity 0.6.0-dev3, asking "你是谁?"

Traceback (most recent call last):
  File "/var/home/sfc/Projects/ragflow/api/apps/chunk_app.py", line 308, in retrieval_test
    ranks = settings.retrievaler.retrieval(question, embd_mdl, tenant_ids, kb_ids, page, size,
  File "<@beartype(rag.nlp.search.Dealer.retrieval) at 0x7f903c22aef0>", line 35, in retrieval
  File "/var/home/sfc/Projects/ragflow/rag/nlp/search.py", line 367, in retrieval
    sres = self.search(req, [index_name(tid) for tid in tenant_ids],
  File "<@beartype(rag.nlp.search.Dealer.search) at 0x7f903c22ab00>", line 95, in search
  File "/var/home/sfc/Projects/ragflow/rag/nlp/search.py", line 117, in search
    res = self.dataStore.search(src, highlightFields, filters, matchExprs, orderBy, offset, limit,
  File "/var/home/sfc/Projects/ragflow/rag/utils/infinity_conn.py", line 424, in search
    kb_res, extra_result = builder.option({"total_hits_count": True}).to_df()
  File "/var/home/sfc/Projects/ragflow/.venv/lib/python3.10/site-packages/infinity/remote_thrift/table.py", line 433, in to_df
    return self.query_builder.to_df()
  File "/var/home/sfc/Projects/ragflow/.venv/lib/python3.10/site-packages/infinity/remote_thrift/query_builder.py", line 562, in to_df
    data_dict, data_type_dict, extra_result = self.to_result()
  File "/var/home/sfc/Projects/ragflow/.venv/lib/python3.10/site-packages/infinity/remote_thrift/query_builder.py", line 558, in to_result
    return self._table._execute_query(query)
  File "/var/home/sfc/Projects/ragflow/.venv/lib/python3.10/site-packages/infinity/remote_thrift/table.py", line 524, in _execute_query
    raise InfinityException(res.error_code, res.error_msg)
infinity.common.InfinityException: (3052, 'Trying to match:  on fields: title_tks^10,title_sm_tks^5,important_kwd^30,important_tks^20,question_tks^20,content_ltks^2,content_sm_ltks failed.@src/planner/bound_select_statement.cpp:343')

notsyncing avatar May 08 '25 14:05 notsyncing

I can confirm that #7551 has fixed this. Thanks!

notsyncing avatar May 09 '25 12:05 notsyncing