mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-30 04:15:45 +08:00
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.
This commit is contained in:
@@ -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.
|
||||
When starting, LangBot will read all environment variables and apply the corresponding configuration to `config.yaml` and write to the `data/config.yaml` file.
|
||||
|
||||
@@ -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: ''
|
||||
```
|
||||
|
||||
## 環境変数による設定
|
||||
|
||||
@@ -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 文件中。
|
||||
在启动时,LangBot 会读取所有环境变量,将对应的配置应用到 config.yaml 中并写入到 data/config.yaml 文件中。
|
||||
|
||||
Reference in New Issue
Block a user