Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

vastbase_vector_config.py 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. from typing import Optional
  2. from pydantic import Field, PositiveInt
  3. from pydantic_settings import BaseSettings
  4. class VastbaseVectorConfig(BaseSettings):
  5. """
  6. Configuration settings for Vector (Vastbase with vector extension)
  7. """
  8. VASTBASE_HOST: Optional[str] = Field(
  9. description="Hostname or IP address of the Vastbase server with Vector extension (e.g., 'localhost')",
  10. default=None,
  11. )
  12. VASTBASE_PORT: PositiveInt = Field(
  13. description="Port number on which the Vastbase server is listening (default is 5432)",
  14. default=5432,
  15. )
  16. VASTBASE_USER: Optional[str] = Field(
  17. description="Username for authenticating with the Vastbase database",
  18. default=None,
  19. )
  20. VASTBASE_PASSWORD: Optional[str] = Field(
  21. description="Password for authenticating with the Vastbase database",
  22. default=None,
  23. )
  24. VASTBASE_DATABASE: Optional[str] = Field(
  25. description="Name of the Vastbase database to connect to",
  26. default=None,
  27. )
  28. VASTBASE_MIN_CONNECTION: PositiveInt = Field(
  29. description="Min connection of the Vastbase database",
  30. default=1,
  31. )
  32. VASTBASE_MAX_CONNECTION: PositiveInt = Field(
  33. description="Max connection of the Vastbase database",
  34. default=5,
  35. )