KAG icon indicating copy to clipboard operation
KAG copied to clipboard

maxClauseCount is set to 1024

Open 16680183383 opened this issue 8 months ago • 2 comments

每次执行qa.py时都会报错 knext.common.rest.exceptions.ApiException: (400) Reason: HTTP response headers: HTTPHeaderDict({'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'POST, PUT, GET, DELETE', 'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept, client_id, uuid, Authorization, credentials', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Max-Age': '3600', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers', 'Remote': '172.18.0.2', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Date': 'Mon, 31 Mar 2025 07:31:36 GMT', 'Connection': 'close'}) HTTP response body: "Failed to invoke procedure db.index.fulltext.queryNodes: Caused by: org.apache.lucene.search.IndexSearcher$TooManyClauses: maxClauseCount is set to 1024"

Image

是因为知识图谱太大了吗?可以怎么解决报错

16680183383 avatar Apr 21 '25 02:04 16680183383

每次执行qa.py时都会报错 knext.common.rest.exceptions.ApiException: (400) Reason: HTTP response headers: HTTPHeaderDict({'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'POST, PUT, GET, DELETE', 'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept, client_id, uuid, Authorization, credentials', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Max-Age': '3600', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers', 'Remote': '172.18.0.2', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Date': 'Mon, 31 Mar 2025 07:31:36 GMT', 'Connection': 'close'}) HTTP response body: "Failed to invoke procedure db.index.fulltext.queryNodes: Caused by: org.apache.lucene.search.IndexSearcher$TooManyClauses: maxClauseCount is set to 1024"

Image

是因为知识图谱太大了吗?可以怎么解决报错

Could you print the variable text_search_request ?

Image

caszkgui avatar Apr 21 '25 12:04 caszkgui

Image

Image

Image

根据得到的hop已经能得到答案了,但是程序还在搜索,知道报错,在输出maxClauseCount is set to 1024之前会输出正确答案

16680183383 avatar Apr 27 '25 18:04 16680183383