mirror of
https://github.com/labring/FastGPT.git
synced 2026-02-27 01:02:22 +08:00
* 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>
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import { resolve } from 'path';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve('projects/app/src'),
|
|
'@fastgpt': resolve('packages'),
|
|
'@test': resolve('test')
|
|
}
|
|
},
|
|
test: {
|
|
coverage: {
|
|
enabled: true,
|
|
reporter: ['html', 'json-summary', 'json'],
|
|
reportOnFailure: true,
|
|
include: ['projects/**/*.ts', 'packages/**/*.ts'],
|
|
cleanOnRerun: false
|
|
},
|
|
outputFile: 'test-results.json',
|
|
setupFiles: 'test/setup.ts',
|
|
globalSetup: 'test/globalSetup.ts',
|
|
// File-level execution: serial (one file at a time to avoid MongoDB conflicts)
|
|
fileParallelism: false,
|
|
// Test-level execution within a file: parallel (up to 5 concurrent tests)
|
|
maxConcurrency: 10,
|
|
pool: 'threads',
|
|
include: [
|
|
'test/test.ts',
|
|
'test/cases/**/*.test.ts',
|
|
'projects/app/test/**/*.test.ts',
|
|
'projects/sandbox/test/**/*.test.ts',
|
|
'projects/marketplace/test/**/*.test.ts'
|
|
],
|
|
exclude: ['test/vectorDB/**'],
|
|
testTimeout: 20000,
|
|
hookTimeout: 30000,
|
|
reporters: ['github-actions', 'default']
|
|
}
|
|
});
|