fix: document_chunks also use created_at (no updated_at column)
This commit is contained in:
parent
1a45ca2cb3
commit
a22ea76cb8
@ -181,7 +181,7 @@ else:
|
|||||||
chunk_placeholders.append("${cdid_" + str(i) + "}$")
|
chunk_placeholders.append("${cdid_" + str(i) + "}$")
|
||||||
nsq_c["cdid_" + str(i)] = did
|
nsq_c["cdid_" + str(i)] = did
|
||||||
chunks_sql = ("SELECT id, doc_id, content FROM document_chunks WHERE doc_id IN (" +
|
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)
|
chunk_recs = await sor.sqlExe(chunks_sql, nsq_c)
|
||||||
chunks_by_doc = {}
|
chunks_by_doc = {}
|
||||||
for cr in chunk_recs:
|
for cr in chunk_recs:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user