mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-08 01:08:43 +08:00
d23c72690e
* feat: add openGauss DataVec as vector database backend Add openGauss with DataVec extension as a new vector storage option alongside PGVector and Milvus. Includes vector DB controller, Docker Compose deployment configs (CN/Global), deploy generation scripts, and test templates. * test: add opengauss vectorDB integration entry * test: adjust vector env template for opengauss run * fix: ts --------- Co-authored-by: archer <545436317@qq.com>
16 lines
560 B
TypeScript
16 lines
560 B
TypeScript
import { describe, vi } from 'vitest';
|
|
import { createVectorDBTestSuite } from '../testSuites';
|
|
|
|
// Unmock vector controllers for integration tests
|
|
vi.unmock('@fastgpt/service/common/vectorDB/opengauss');
|
|
vi.unmock('@fastgpt/service/common/vectorDB/constants');
|
|
|
|
import { OpenGaussVectorCtrl } from '@fastgpt/service/common/vectorDB/opengauss';
|
|
|
|
const isEnabled = Boolean(process.env.OPENGAUSS_URL);
|
|
|
|
describe.skipIf(!isEnabled)('OpenGauss Vector Integration', () => {
|
|
const vectorCtrl = new OpenGaussVectorCtrl();
|
|
createVectorDBTestSuite(vectorCtrl);
|
|
});
|