tencent_vector_configs.py 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. from typing import Optional
  2. from pydantic import BaseModel, Field, PositiveInt
  3. class TencentVectorDBConfigs(BaseModel):
  4. """
  5. Tencent Vector configs
  6. """
  7. TENCENT_VECTOR_DB_URL: Optional[str] = Field(
  8. description='Tencent Vector URL',
  9. default=None,
  10. )
  11. TENCENT_VECTOR_DB_API_KEY: Optional[str] = Field(
  12. description='Tencent Vector api key',
  13. default=None,
  14. )
  15. TENCENT_VECTOR_DB_TIMEOUT: PositiveInt = Field(
  16. description='Tencent Vector timeout',
  17. default=30,
  18. )
  19. TENCENT_VECTOR_DB_USERNAME: Optional[str] = Field(
  20. description='Tencent Vector password',
  21. default=None,
  22. )
  23. TENCENT_VECTOR_DB_PASSWORD: Optional[str] = Field(
  24. description='Tencent Vector password',
  25. default=None,
  26. )
  27. TENCENT_VECTOR_DB_SHARD: PositiveInt = Field(
  28. description='Tencent Vector sharding number',
  29. default=1,
  30. )
  31. TENCENT_VECTOR_DB_REPLICAS: PositiveInt = Field(
  32. description='Tencent Vector replicas',
  33. default=2,
  34. )