mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-09 22:30:58 +08:00
Improved HnswUpdateConnection parameters [skip ci]
This commit is contained in:
@@ -1078,12 +1078,12 @@ AddConnections(char *base, HnswElement element, List *neighbors, int lc)
|
||||
* Update connections
|
||||
*/
|
||||
void
|
||||
HnswUpdateConnection(char *base, HnswElement newElement, HnswCandidate * hc, HnswNeighborArray * neighbors, int lm, int *updateIdx, Relation index, FmgrInfo *procinfo, Oid collation)
|
||||
HnswUpdateConnection(char *base, HnswNeighborArray * neighbors, HnswElement newElement, float distance, int lm, int *updateIdx, Relation index, FmgrInfo *procinfo, Oid collation)
|
||||
{
|
||||
HnswCandidate newHc;
|
||||
|
||||
HnswPtrStore(base, newHc.element, newElement);
|
||||
newHc.distance = hc->distance;
|
||||
newHc.distance = distance;
|
||||
|
||||
if (neighbors->length < lm)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user