From cb0b2783af06fdd4986f828a2742e2a418296820 Mon Sep 17 00:00:00 2001 From: huanghuoguoguo <1051233107@qq.com> Date: Sat, 20 Dec 2025 22:59:33 +0800 Subject: [PATCH] add seekdb settings (#75) * Add seekdb configuration options Added configuration options for seekdb in settings. * Enhance seekdb config documentation in settings.md Updated seekdb configuration with detailed comments in Chinese. * Refactor seekdb settings in deployment documentation Reformatted seekdb configuration for better clarity. * Add seekdb configuration options to settings.md Added configuration options for seekdb in settings. * Add SeekDB settings to deployment documentation Added SeekDB configuration options for embedded and server modes. --- docs/en/deploy/settings.md | 16 +++++++++++++++- docs/ja/deploy/settings.md | 14 ++++++++++++++ docs/zh/deploy/settings.md | 16 +++++++++++++++- 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/docs/en/deploy/settings.md b/docs/en/deploy/settings.md index 6a0e67956..f797ca685 100644 --- a/docs/en/deploy/settings.md +++ b/docs/en/deploy/settings.md @@ -112,6 +112,7 @@ vdb: # - qdrant (external vector database, please configure below) # - milvus (scalable vector database, please configure below) # - pgvector (PostgreSQL extension, please configure below) + # - seekdb (Built-in embedded-model database, please configure below) use: chroma # Qdrant configuration qdrant: @@ -134,6 +135,19 @@ vdb: database: 'langbot' user: 'postgres' password: 'postgres' + seekdb: + # 'embedded' or 'server' + mode: embedded + # Embedded mode options: + path: './data/seekdb' + database: 'langbot' + # Server mode options (used when mode='server'): + host: 'localhost' + port: 2881 + user: 'root' + password: '' + # Optional, for OceanBase server + tenant: '' ``` ## Set configuration via environment variables @@ -149,4 +163,4 @@ The configuration in `config.yaml` can be set via environment variables. The env ... -When starting, LangBot will read all environment variables and apply the corresponding configuration to `config.yaml` and write to the `data/config.yaml` file. \ No newline at end of file +When starting, LangBot will read all environment variables and apply the corresponding configuration to `config.yaml` and write to the `data/config.yaml` file. diff --git a/docs/ja/deploy/settings.md b/docs/ja/deploy/settings.md index 359a9a40f..dbe23ee07 100644 --- a/docs/ja/deploy/settings.md +++ b/docs/ja/deploy/settings.md @@ -112,6 +112,7 @@ vdb: # - qdrant (外部ベクトルデータベース、以下で設定してください) # - milvus (スケーラブルベクトルデータベース、以下で設定してください) # - pgvector (PostgreSQL拡張、以下で設定してください) + # - seekdb (組み込み埋め込みモデルを提供するデータベース、以下で設定してください) use: chroma # Qdrant設定 qdrant: @@ -134,6 +135,19 @@ vdb: database: 'langbot' user: 'postgres' password: 'postgres' + seekdb: + # 動作モード('embedded' または 'server') + mode: embedded + # 組み込みモード設定: + path: './data/seekdb' + database: 'langbot' + # サーバーモード設定(mode='server'の場合に有効): + host: 'localhost' + port: 2881 + user: 'root' + password: '' + # OceanBaseマルチテナントシナリオ用、オプション + tenant: '' ``` ## 環境変数による設定 diff --git a/docs/zh/deploy/settings.md b/docs/zh/deploy/settings.md index 39e31bb8f..c9ac2d856 100644 --- a/docs/zh/deploy/settings.md +++ b/docs/zh/deploy/settings.md @@ -110,6 +110,7 @@ vdb: # - qdrant(外部向量数据库,请在下方配置) # - milvus(可扩展的向量数据库,请在下方配置) # - pgvector(PostgreSQL 扩展,请在下方配置) + # - seekdb(提供内置嵌入模型的数据库,请在下方配置) use: chroma # Qdrant 配置 qdrant: @@ -126,6 +127,19 @@ vdb: database: 'langbot' user: 'postgres' password: 'postgres' + seekdb: + # 嵌入式模式('embedded' 或 'server') + mode: embedded + # 嵌入式模式配置: + path: './data/seekdb' + database: 'langbot' + # 服务器模式配置(当 mode='server' 时生效): + host: 'localhost' + port: 2881 + user: 'root' + password: '' + # 可选,用于 OceanBase 多租户场景 + tenant: '' ``` ## 通过环境变量设置 @@ -141,4 +155,4 @@ config.yaml 中的配置可以通过环境变量进行设置。环境变量名 ... -在启动时,LangBot 会读取所有环境变量,将对应的配置应用到 config.yaml 中并写入到 data/config.yaml 文件中。 \ No newline at end of file +在启动时,LangBot 会读取所有环境变量,将对应的配置应用到 config.yaml 中并写入到 data/config.yaml 文件中。