Skip to content

Commit d9c4e10

Browse files
author
Vladlen Popolitov
committed
hnsw_relaxed updated to merge into pgvector master
1 parent a188d8f commit d9c4e10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hnswutils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ HnswSearchLayerRelaxedNext(char *base, Datum q, Relation index,
14681468
HnswCandidate *ec;
14691469

14701470
if (index == NULL)
1471-
eDistance = GetElementDistance(base, e->element.ptr , q, procinfo, collation) ; /// GetCandidateDistance(base, e, q, procinfo, collation);
1471+
eDistance = GetElementDistance(base, e->element.ptr , q, procinfo, collation) ;
14721472
else
14731473
HnswLoadElement(eElement, &eDistance, &q, index, procinfo, collation, false, NULL);
14741474

@@ -1584,7 +1584,7 @@ HnswSearchLayerRelaxed(IndexScanDesc scan, List *ep, int ef)
15841584
HnswCandidate *ec;
15851585

15861586
if (index == NULL)
1587-
eDistance = GetElementDistance(base, e->element.ptr , q, procinfo, collation); /// GetCandidateDistance(base, e, q, procinfo, collation);
1587+
eDistance = GetElementDistance(base, e->element.ptr , q, procinfo, collation);
15881588
else
15891589
HnswLoadElement(eElement, &eDistance, &q, index, procinfo, collation, false, NULL);
15901590

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy