Merge pull request #1100 from pengjunfeng11/main

Update postgres_impl.py
This commit is contained in:
zrguo 2025-03-17 17:24:29 +08:00 committed by GitHub
commit 15b817c0d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1766,7 +1766,7 @@ SQL_TEMPLATES = {
FROM LIGHTRAG_DOC_CHUNKS
where workspace=$1
AND id IN (SELECT chunk_id FROM relevant_chunks)
)
) as chunk_distances
WHERE distance>$2
ORDER BY distance DESC
LIMIT $3