mirror of
https://github.com/labring/FastGPT.git
synced 2026-02-27 01:02:22 +08:00
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:
@@ -121,6 +121,7 @@ description: FastGPT 文档目录
|
||||
- [/docs/upgrading/4-14/4145](/docs/upgrading/4-14/4145)
|
||||
- [/docs/upgrading/4-14/41451](/docs/upgrading/4-14/41451)
|
||||
- [/docs/upgrading/4-14/4146](/docs/upgrading/4-14/4146)
|
||||
- [/docs/upgrading/4-14/4147](/docs/upgrading/4-14/4147)
|
||||
- [/docs/upgrading/4-8/40](/docs/upgrading/4-8/40)
|
||||
- [/docs/upgrading/4-8/41](/docs/upgrading/4-8/41)
|
||||
- [/docs/upgrading/4-8/42](/docs/upgrading/4-8/42)
|
||||
|
||||
20
document/content/docs/upgrading/4-14/4147.mdx
Normal file
20
document/content/docs/upgrading/4-14/4147.mdx
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
title: 'V4.14.7(进行中)'
|
||||
description: 'FastGPT V4.14.7 更新说明'
|
||||
---
|
||||
|
||||
|
||||
## 🚀 新增内容
|
||||
|
||||
|
||||
## ⚙️ 优化
|
||||
|
||||
|
||||
## 🐛 修复
|
||||
|
||||
|
||||
## 插件
|
||||
|
||||
## 代码质量
|
||||
|
||||
1. 增加向量数据库集成测试。
|
||||
@@ -124,7 +124,7 @@
|
||||
"document/content/docs/upgrading/4-14/4144.mdx": "2025-12-16T14:56:04+08:00",
|
||||
"document/content/docs/upgrading/4-14/4145.mdx": "2026-01-18T23:59:15+08:00",
|
||||
"document/content/docs/upgrading/4-14/41451.mdx": "2026-01-20T11:53:27+08:00",
|
||||
"document/content/docs/upgrading/4-14/4146.mdx": "2026-01-30T18:47:43+08:00",
|
||||
"document/content/docs/upgrading/4-14/4146.mdx": "2026-01-30T22:34:42+08:00",
|
||||
"document/content/docs/upgrading/4-8/40.mdx": "2025-08-02T19:38:37+08:00",
|
||||
"document/content/docs/upgrading/4-8/41.mdx": "2025-08-02T19:38:37+08:00",
|
||||
"document/content/docs/upgrading/4-8/42.mdx": "2025-08-02T19:38:37+08:00",
|
||||
|
||||
@@ -26,7 +26,7 @@ x-share-db-config: &x-share-db-config
|
||||
|
||||
# 向量库相关配置
|
||||
x-vec-config: &x-vec-config
|
||||
OCEANBASE_URL: mysql://root%40tenantname:tenantpassword@ob:2881/test
|
||||
OCEANBASE_URL: mysql://root%40tenantname:tenantpassword@ob:2881/mysql
|
||||
|
||||
|
||||
version: '3.3'
|
||||
@@ -52,8 +52,8 @@ services:
|
||||
- OB_SERVER_IP=127.0.0.1
|
||||
# 更多环境变量配置见oceanbase官方文档: https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000002013494
|
||||
volumes:
|
||||
- ../ob/data:/root/ob
|
||||
- ../ob/config:/root/.obd/cluster
|
||||
- ./ob/data:/root/ob
|
||||
- ./ob/config:/root/.obd/cluster
|
||||
configs:
|
||||
- source: init_sql
|
||||
target: /root/boot/init.d/init.sql
|
||||
|
||||
@@ -26,7 +26,7 @@ x-share-db-config: &x-share-db-config
|
||||
|
||||
# 向量库相关配置
|
||||
x-vec-config: &x-vec-config
|
||||
SEEKDB_URL: mysql://root%40tenantname:tenantpassword@seekdb:3306/fastgpt
|
||||
SEEKDB_URL: mysql://root:seekdbpassword@seekdb:2881/mysql
|
||||
|
||||
|
||||
version: '3.3'
|
||||
@@ -37,23 +37,20 @@ services:
|
||||
container_name: seekdb
|
||||
restart: always
|
||||
# ports: # 生产环境建议不要暴露
|
||||
# - 3306:3306
|
||||
# - 2881:2881
|
||||
# - 2886:2886
|
||||
networks:
|
||||
- fastgpt
|
||||
environment:
|
||||
# SeekDB 连接配置(兼容 MySQL 协议)
|
||||
- MYSQL_ROOT_PASSWORD=seekdbpassword
|
||||
# SeekDB 租户配置(与 OceanBase 兼容)
|
||||
- OB_TENANT_NAME=tenantname
|
||||
- OB_TENANT_PASSWORD=tenantpassword
|
||||
- ROOT_PASSWORD=seekdbpassword
|
||||
# MODE分为MINI和NORMAL, 后者会最大程度使用主机资源
|
||||
- MODE=MINI
|
||||
- OB_SERVER_IP=127.0.0.1
|
||||
volumes:
|
||||
- ../seekdb/data:/var/lib/mysql
|
||||
- ../seekdb/config:/etc/mysql/conf.d
|
||||
- ./seekdb/data:/var/lib/mysql
|
||||
- ./seekdb/config:/etc/mysql/conf.d
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
||||
test: ['CMD', 'mysqladmin', 'ping', '-h', '127.0.0.1', '-P2881', '-uroot', '-pseekdbpassword']
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 1000
|
||||
|
||||
@@ -26,7 +26,7 @@ x-share-db-config: &x-share-db-config
|
||||
|
||||
# 向量库相关配置
|
||||
x-vec-config: &x-vec-config
|
||||
OCEANBASE_URL: mysql://root%40tenantname:tenantpassword@ob:2881/test
|
||||
OCEANBASE_URL: mysql://root%40tenantname:tenantpassword@ob:2881/mysql
|
||||
|
||||
|
||||
version: '3.3'
|
||||
@@ -52,8 +52,8 @@ services:
|
||||
- OB_SERVER_IP=127.0.0.1
|
||||
# 更多环境变量配置见oceanbase官方文档: https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000002013494
|
||||
volumes:
|
||||
- ../ob/data:/root/ob
|
||||
- ../ob/config:/root/.obd/cluster
|
||||
- ./ob/data:/root/ob
|
||||
- ./ob/config:/root/.obd/cluster
|
||||
configs:
|
||||
- source: init_sql
|
||||
target: /root/boot/init.d/init.sql
|
||||
|
||||
@@ -26,7 +26,7 @@ x-share-db-config: &x-share-db-config
|
||||
|
||||
# 向量库相关配置
|
||||
x-vec-config: &x-vec-config
|
||||
SEEKDB_URL: mysql://root%40tenantname:tenantpassword@seekdb:3306/fastgpt
|
||||
SEEKDB_URL: mysql://root:seekdbpassword@seekdb:2881/mysql
|
||||
|
||||
|
||||
version: '3.3'
|
||||
@@ -37,23 +37,20 @@ services:
|
||||
container_name: seekdb
|
||||
restart: always
|
||||
# ports: # 生产环境建议不要暴露
|
||||
# - 3306:3306
|
||||
# - 2881:2881
|
||||
# - 2886:2886
|
||||
networks:
|
||||
- fastgpt
|
||||
environment:
|
||||
# SeekDB 连接配置(兼容 MySQL 协议)
|
||||
- MYSQL_ROOT_PASSWORD=seekdbpassword
|
||||
# SeekDB 租户配置(与 OceanBase 兼容)
|
||||
- OB_TENANT_NAME=tenantname
|
||||
- OB_TENANT_PASSWORD=tenantpassword
|
||||
- ROOT_PASSWORD=seekdbpassword
|
||||
# MODE分为MINI和NORMAL, 后者会最大程度使用主机资源
|
||||
- MODE=MINI
|
||||
- OB_SERVER_IP=127.0.0.1
|
||||
volumes:
|
||||
- ../seekdb/data:/var/lib/mysql
|
||||
- ../seekdb/config:/etc/mysql/conf.d
|
||||
- ./seekdb/data:/var/lib/mysql
|
||||
- ./seekdb/config:/etc/mysql/conf.d
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
||||
test: ['CMD', 'mysqladmin', 'ping', '-h', '127.0.0.1', '-P2881', '-uroot', '-pseekdbpassword']
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 1000
|
||||
|
||||
Reference in New Issue
Block a user