mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-04 11:40:57 +08:00
Increased max dimensions for vector from 1024 to 16000 and increased max dimensions for index from 1024 to 2000
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include "portability/instr_time.h"
|
||||
#endif
|
||||
|
||||
#define IVFFLAT_MAX_DIM VECTOR_MAX_DIM
|
||||
#define IVFFLAT_MAX_DIM 2000
|
||||
|
||||
/* Support functions */
|
||||
#define IVFFLAT_DISTANCE_PROC 1
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
#define VECTOR_MAX_DIM 1024
|
||||
#define VECTOR_MAX_DIM 16000
|
||||
|
||||
#define VECTOR_SIZE(_dim) (offsetof(Vector, x) + sizeof(float)*(_dim))
|
||||
#define DatumGetVector(x) ((Vector *) PG_DETOAST_DATUM(x))
|
||||
|
||||
Reference in New Issue
Block a user