feat: vector integrationTest;feat: ob quantization (#6366)

* feat(vectordb): add OceanBase HNSW quantization (HNSW_SQ/HNSW_BQ) (#6348)

Support OceanBase vector index quantization via VECTOR_VQ_LEVEL:
- 32 (default): hnsw + inner_product
- 8: hnsw_sq + inner_product (2-3x memory savings)
- 1: hnsw_bq + cosine (~15x memory savings)

HNSW_BQ requires cosine distance per OceanBase docs.
Tested on OceanBase 4.3.5.5 (BP5).

Closes #6202

* feat: add test inclusion for vectorDB tests in vitest configuration (#6358)

* feat: add test inclusion for vectorDB tests in vitest configuration

* refactor: update vectorDB README and setup for environment configuration

- Enhanced README to clarify the use of factory pattern for vectorDB integration tests.
- Updated instructions for setting up environment variables from a local file.
- Removed obsolete PG integration test file and adjusted test execution instructions.
- Improved structure explanation for shared test data and factory functions.

* perf: integrationTest

* feat: vector integration

---------

Co-authored-by: ZHANG Yixin <hi.yixinz@gmail.com>
Co-authored-by: Jingchao <alswlx@gmail.com>
This commit is contained in:
Archer
2026-02-02 18:48:25 +08:00
committed by GitHub
parent 358109f556
commit 64f70a41c1
38 changed files with 758 additions and 163 deletions

View File

@@ -76,7 +76,7 @@ const vector = {
ob: {
db: '',
config: `\
OCEANBASE_URL: mysql://root%40tenantname:tenantpassword@ob:2881/test
OCEANBASE_URL: mysql://root%40tenantname:tenantpassword@ob:2881/mysql
`,
extra: `\
configs:
@@ -89,7 +89,7 @@ configs:
seekdb: {
db: '',
config: `\
SEEKDB_URL: mysql://root%40tenantname:tenantpassword@seekdb:3306/fastgpt
SEEKDB_URL: mysql://root:seekdbpassword@seekdb:2881/mysql
`,
extra: ``
},