Merge pull request #1375 from superhuahua/main

PostgreSQL: subquery in FROM must have an alias
This commit is contained in:
Daniel.y
2025-04-16 15:26:51 +08:00
committed by GitHub

View File

@@ -1819,7 +1819,7 @@ SQL_TEMPLATES = {
FROM LIGHTRAG_VDB_ENTITY e
JOIN relevant_chunks c ON c.chunk_id = ANY(e.chunk_ids)
WHERE e.workspace=$1
)
) as chunk_distances
WHERE distance>$2
ORDER BY distance DESC
LIMIT $3