mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-06-04 03:04:11 +08:00

Signed-off-by: -LAN- <laipz8200@outlook.com> Co-authored-by: huanshare <liuhuan101@longfor.com> Co-authored-by: -LAN- <laipz8200@outlook.com>
39 lines
1.1 KiB
Python
39 lines
1.1 KiB
Python
from pydantic import Field, PositiveInt
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class MyScaleConfig(BaseSettings):
|
|
"""
|
|
Configuration settings for MyScale vector database
|
|
"""
|
|
|
|
MYSCALE_HOST: str = Field(
|
|
description="Hostname or IP address of the MyScale server (e.g., 'localhost' or 'myscale.example.com')",
|
|
default="localhost",
|
|
)
|
|
|
|
MYSCALE_PORT: PositiveInt = Field(
|
|
description="Port number on which the MyScale server is listening (default is 8123)",
|
|
default=8123,
|
|
)
|
|
|
|
MYSCALE_USER: str = Field(
|
|
description="Username for authenticating with MyScale (default is 'default')",
|
|
default="default",
|
|
)
|
|
|
|
MYSCALE_PASSWORD: str = Field(
|
|
description="Password for authenticating with MyScale (default is an empty string)",
|
|
default="",
|
|
)
|
|
|
|
MYSCALE_DATABASE: str = Field(
|
|
description="Name of the MyScale database to connect to (default is 'default')",
|
|
default="default",
|
|
)
|
|
|
|
MYSCALE_FTS_PARAMS: str = Field(
|
|
description="Additional parameters for MyScale Full Text Search index)",
|
|
default="",
|
|
)
|