mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-18 01:02:21 +08:00
feat: add openGauss DataVec as vector database backend (#6666)
* 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>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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);
|
||||
});
|
||||
Reference in New Issue
Block a user