pgvectors_configs.py 734 B

12345678910111213141516171819202122232425262728293031323334
  1. from typing import Optional
  2. from pydantic import BaseModel, Field, PositiveInt
  3. class PGVectoRSConfigs(BaseModel):
  4. """
  5. PGVectoRS configs
  6. """
  7. PGVECTO_RS_HOST: Optional[str] = Field(
  8. description='PGVectoRS host',
  9. default=None,
  10. )
  11. PGVECTO_RS_PORT: Optional[PositiveInt] = Field(
  12. description='PGVectoRS port',
  13. default=None,
  14. )
  15. PGVECTO_RS_USER: Optional[str] = Field(
  16. description='PGVectoRS user',
  17. default=None,
  18. )
  19. PGVECTO_RS_PASSWORD: Optional[str] = Field(
  20. description='PGVectoRS password',
  21. default=None,
  22. )
  23. PGVECTO_RS_DATABASE: Optional[str] = Field(
  24. description='PGVectoRS database',
  25. default=None,
  26. )