You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vastbase_vector_config.py 1.2KB

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