mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-04 20:28:12 +08:00
30 lines
644 B
Python
30 lines
644 B
Python
from typing import Optional
|
|
|
|
from pydantic import BaseModel, Field, PositiveInt
|
|
|
|
|
|
class WeaviateConfigs(BaseModel):
|
|
"""
|
|
Weaviate configs
|
|
"""
|
|
|
|
WEAVIATE_ENDPOINT: Optional[str] = Field(
|
|
description='Weaviate endpoint URL',
|
|
default=None,
|
|
)
|
|
|
|
WEAVIATE_API_KEY: Optional[str] = Field(
|
|
description='Weaviate API key',
|
|
default=None,
|
|
)
|
|
|
|
WEAVIATE_GRPC_ENABLED: bool = Field(
|
|
description='whether to enable gRPC for Weaviate connection',
|
|
default=True,
|
|
)
|
|
|
|
WEAVIATE_BATCH_SIZE: PositiveInt = Field(
|
|
description='Weaviate batch size',
|
|
default=100,
|
|
)
|