fix: PostgreSQL database, error:subquery in FROM must have an alias
This commit is contained in:
parent
e32c724c05
commit
495f755a1c
1 changed files with 4 additions and 4 deletions
|
|
@ -1819,10 +1819,10 @@ SQL_TEMPLATES = {
|
||||||
FROM LIGHTRAG_VDB_ENTITY e
|
FROM LIGHTRAG_VDB_ENTITY e
|
||||||
JOIN relevant_chunks c ON c.chunk_id = ANY(e.chunk_ids)
|
JOIN relevant_chunks c ON c.chunk_id = ANY(e.chunk_ids)
|
||||||
WHERE e.workspace=$1
|
WHERE e.workspace=$1
|
||||||
)
|
) as chunk_distances
|
||||||
WHERE distance>$2
|
WHERE distance>$2
|
||||||
ORDER BY distance DESC
|
ORDER BY distance DESC
|
||||||
LIMIT $3
|
LIMIT $3
|
||||||
""",
|
""",
|
||||||
"chunks": """
|
"chunks": """
|
||||||
WITH relevant_chunks AS (
|
WITH relevant_chunks AS (
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue