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.

tidb_vector_config.py 1006B

123456789101112131415161718192021222324252627282930313233
  1. from pydantic import Field, PositiveInt
  2. from pydantic_settings import BaseSettings
  3. class TiDBVectorConfig(BaseSettings):
  4. """
  5. Configuration settings for TiDB Vector database
  6. """
  7. TIDB_VECTOR_HOST: str | None = Field(
  8. description="Hostname or IP address of the TiDB Vector server (e.g., 'localhost' or 'tidb.example.com')",
  9. default=None,
  10. )
  11. TIDB_VECTOR_PORT: PositiveInt | None = Field(
  12. description="Port number on which the TiDB Vector server is listening (default is 4000)",
  13. default=4000,
  14. )
  15. TIDB_VECTOR_USER: str | None = Field(
  16. description="Username for authenticating with the TiDB Vector database",
  17. default=None,
  18. )
  19. TIDB_VECTOR_PASSWORD: str | None = Field(
  20. description="Password for authenticating with the TiDB Vector database",
  21. default=None,
  22. )
  23. TIDB_VECTOR_DATABASE: str | None = Field(
  24. description="Name of the TiDB Vector database to connect to",
  25. default=None,
  26. )