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.

weaviate_config.py 875B

12345678910111213141516171819202122232425262728
  1. from pydantic import Field, PositiveInt
  2. from pydantic_settings import BaseSettings
  3. class WeaviateConfig(BaseSettings):
  4. """
  5. Configuration settings for Weaviate vector database
  6. """
  7. WEAVIATE_ENDPOINT: str | None = Field(
  8. description="URL of the Weaviate server (e.g., 'http://localhost:8080' or 'https://weaviate.example.com')",
  9. default=None,
  10. )
  11. WEAVIATE_API_KEY: str | None = Field(
  12. description="API key for authenticating with the Weaviate server",
  13. default=None,
  14. )
  15. WEAVIATE_GRPC_ENABLED: bool = Field(
  16. description="Whether to enable gRPC for Weaviate connection (True for gRPC, False for HTTP)",
  17. default=True,
  18. )
  19. WEAVIATE_BATCH_SIZE: PositiveInt = Field(
  20. description="Number of objects to be processed in a single batch operation (default is 100)",
  21. default=100,
  22. )