2024-06-20 16:24:10 +08:00
|
|
|
from typing import Optional
|
|
|
|
|
|
|
|
from pydantic import BaseModel, Field, PositiveInt
|
|
|
|
|
|
|
|
|
2024-06-22 18:26:38 +08:00
|
|
|
class PGVectorConfig(BaseModel):
|
2024-06-20 16:24:10 +08:00
|
|
|
"""
|
|
|
|
PGVector configs
|
|
|
|
"""
|
|
|
|
|
|
|
|
PGVECTOR_HOST: Optional[str] = Field(
|
|
|
|
description='PGVector host',
|
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
PGVECTOR_PORT: Optional[PositiveInt] = Field(
|
|
|
|
description='PGVector port',
|
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
PGVECTOR_USER: Optional[str] = Field(
|
|
|
|
description='PGVector user',
|
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
PGVECTOR_PASSWORD: Optional[str] = Field(
|
|
|
|
description='PGVector password',
|
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
PGVECTOR_DATABASE: Optional[str] = Field(
|
|
|
|
description='PGVector database',
|
|
|
|
default=None,
|
|
|
|
)
|