myscale_config.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. from pydantic import BaseModel, Field, PositiveInt
  2. class MyScaleConfig(BaseModel):
  3. """
  4. Configuration settings for MyScale vector database
  5. """
  6. MYSCALE_HOST: str = Field(
  7. description="Hostname or IP address of the MyScale server (e.g., 'localhost' or 'myscale.example.com')",
  8. default="localhost",
  9. )
  10. MYSCALE_PORT: PositiveInt = Field(
  11. description="Port number on which the MyScale server is listening (default is 8123)",
  12. default=8123,
  13. )
  14. MYSCALE_USER: str = Field(
  15. description="Username for authenticating with MyScale (default is 'default')",
  16. default="default",
  17. )
  18. MYSCALE_PASSWORD: str = Field(
  19. description="Password for authenticating with MyScale (default is an empty string)",
  20. default="",
  21. )
  22. MYSCALE_DATABASE: str = Field(
  23. description="Name of the MyScale database to connect to (default is 'default')",
  24. default="default",
  25. )
  26. MYSCALE_FTS_PARAMS: str = Field(
  27. description="Additional parameters for MyScale Full Text Search index)",
  28. default="",
  29. )