From a22ea76cb8a7c9ca346e64633a0538e1f08f300d Mon Sep 17 00:00:00 2001 From: ymq Date: Mon, 10 Aug 2026 17:02:08 +0800 Subject: [PATCH] fix: document_chunks also use created_at (no updated_at column) --- wwwroot/knowledge_bases_list/search_result.dspy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/knowledge_bases_list/search_result.dspy b/wwwroot/knowledge_bases_list/search_result.dspy index 1025296..ed6f63a 100644 --- a/wwwroot/knowledge_bases_list/search_result.dspy +++ b/wwwroot/knowledge_bases_list/search_result.dspy @@ -181,7 +181,7 @@ else: chunk_placeholders.append("${cdid_" + str(i) + "}$") nsq_c["cdid_" + str(i)] = did chunks_sql = ("SELECT id, doc_id, content FROM document_chunks WHERE doc_id IN (" + - ",".join(chunk_placeholders) + ") ORDER BY updated_at DESC LIMIT " + str(top_k)) + ",".join(chunk_placeholders) + ") ORDER BY created_at DESC LIMIT " + str(top_k)) chunk_recs = await sor.sqlExe(chunks_sql, nsq_c) chunks_by_doc = {} for cr in chunk_recs: