mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-11 07:06:57 +08:00
Fixed max dimensions for halfvec for IVFFlat [skip ci]
This commit is contained in:
@@ -320,7 +320,12 @@ InsertTuples(Relation index, IvfflatBuildState * buildstate, ForkNumber forkNum)
|
|||||||
static int
|
static int
|
||||||
GetMaxDimensions(IvfflatType type)
|
GetMaxDimensions(IvfflatType type)
|
||||||
{
|
{
|
||||||
return IVFFLAT_MAX_DIM;
|
int maxDimensions = IVFFLAT_MAX_DIM;
|
||||||
|
|
||||||
|
if (type == IVFFLAT_TYPE_HALFVEC)
|
||||||
|
maxDimensions *= 2;
|
||||||
|
|
||||||
|
return maxDimensions;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user