dbscan 最大 七天或 10w 数据

This commit is contained in:
2024-10-18 18:10:23 +08:00
parent 8a6db8f8f2
commit 34ad16ff02

View File

@@ -44,9 +44,9 @@ async def run_dbscan() -> DBScanResult:
SELECT id, title, content, embedding
FROM risk_news
WHERE NOT embedding_updated_at IS NULL
AND time > now() - interval '14 day'
AND time > now() - interval '7 day'
ORDER BY time desc
LIMIT 10000
LIMIT 100000
;"""
)
rows = await cur.fetchall()