weaviate_configs.py 644 B

1234567891011121314151617181920212223242526272829
  1. from typing import Optional
  2. from pydantic import BaseModel, Field, PositiveInt
  3. class WeaviateConfigs(BaseModel):
  4. """
  5. Weaviate configs
  6. """
  7. WEAVIATE_ENDPOINT: Optional[str] = Field(
  8. description='Weaviate endpoint URL',
  9. default=None,
  10. )
  11. WEAVIATE_API_KEY: Optional[str] = Field(
  12. description='Weaviate API key',
  13. default=None,
  14. )
  15. WEAVIATE_GRPC_ENABLED: bool = Field(
  16. description='whether to enable gRPC for Weaviate connection',
  17. default=True,
  18. )
  19. WEAVIATE_BATCH_SIZE: PositiveInt = Field(
  20. description='Weaviate batch size',
  21. default=100,
  22. )