You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A source the caller turned out not to hold is left out where the pool is built: the pool
1727
1733
* is the page's order now, so a denied source's chunks would otherwise keep their slots.
1734
+
* The row's mirrored source decides it once the fill is complete; until then a row the fill
1735
+
* has not reached carries no source, so its document is asked instead.
1728
1736
*/
1729
1737
constexcludedOnRow=excludedSources.length
1730
-
? sql`(${embeddingSearch.connectorId} IS NULL OR NOT (${embeddingSearch.connectorId} = ANY(${textArrayLiteral([...excludedSources])})))`
1738
+
? filled
1739
+
? sql`(${embeddingSearch.connectorId} IS NULL OR NOT (${embeddingSearch.connectorId} = ANY(${textArrayLiteral([...excludedSources])})))`
1740
+
: sql`NOT EXISTS (SELECT 1 FROM ${document} WHERE ${document.id} = ${embeddingSearch.documentId} AND ${document.connectorId} = ANY(${textArrayLiteral([...excludedSources])}))`
1731
1741
: undefined
1732
1742
constneeded=offset+limit
1733
1743
if(
@@ -1776,12 +1786,6 @@ async function selectVectorResults(params: SearchParams): Promise<SearchResult[]
0 commit comments