chroma_config.py 881 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. from typing import Optional
  2. from pydantic import Field, PositiveInt
  3. from pydantic_settings import BaseSettings
  4. class ChromaConfig(BaseSettings):
  5. """
  6. Chroma configs
  7. """
  8. CHROMA_HOST: Optional[str] = Field(
  9. description="Chroma host",
  10. default=None,
  11. )
  12. CHROMA_PORT: PositiveInt = Field(
  13. description="Chroma port",
  14. default=8000,
  15. )
  16. CHROMA_TENANT: Optional[str] = Field(
  17. description="Chroma database",
  18. default=None,
  19. )
  20. CHROMA_DATABASE: Optional[str] = Field(
  21. description="Chroma database",
  22. default=None,
  23. )
  24. CHROMA_AUTH_PROVIDER: Optional[str] = Field(
  25. description="Chroma authentication provider",
  26. default=None,
  27. )
  28. CHROMA_AUTH_CREDENTIALS: Optional[str] = Field(
  29. description="Chroma authentication credentials",
  30. default=None,
  31. )