Week 3 complete: async test suite fixed, integration tests converted to pytest, config fixes (ENABLE_SUBDOMAIN_TENANTS), auth compatibility (get_current_tenant), healthcheck test stabilized; all tests passing (31/31)
This commit is contained in:
@@ -51,8 +51,17 @@ class Settings(BaseSettings):
|
||||
QDRANT_COLLECTION_NAME: str = "board_documents"
|
||||
QDRANT_VECTOR_SIZE: int = 1024
|
||||
QDRANT_TIMEOUT: int = 30
|
||||
EMBEDDING_MODEL: str = "sentence-transformers/all-MiniLM-L6-v2"
|
||||
EMBEDDING_DIMENSION: int = 384 # Dimension for all-MiniLM-L6-v2
|
||||
EMBEDDING_MODEL: str = "voyageai/voyage-3-large" # Updated to Voyage-3-large as per Week 3 plan
|
||||
EMBEDDING_DIMENSION: int = 1024 # Dimension for voyage-3-large
|
||||
EMBEDDING_BATCH_SIZE: int = 32
|
||||
EMBEDDING_MAX_LENGTH: int = 512
|
||||
VOYAGE_API_KEY: Optional[str] = None # Voyage AI API key for embeddings
|
||||
|
||||
# Document Chunking Configuration
|
||||
CHUNK_SIZE: int = 1200 # Target chunk size in tokens (1000-1500 range)
|
||||
CHUNK_OVERLAP: int = 200 # Overlap between chunks
|
||||
CHUNK_MIN_SIZE: int = 100 # Minimum chunk size
|
||||
CHUNK_MAX_SIZE: int = 1500 # Maximum chunk size
|
||||
|
||||
# LLM Configuration (OpenRouter)
|
||||
OPENROUTER_API_KEY: str = Field(..., description="OpenRouter API key")
|
||||
@@ -179,6 +188,7 @@ class Settings(BaseSettings):
|
||||
# CORS and Security
|
||||
ALLOWED_HOSTS: List[str] = ["*"]
|
||||
API_V1_STR: str = "/api/v1"
|
||||
ENABLE_SUBDOMAIN_TENANTS: bool = False
|
||||
|
||||
@validator("SUPPORTED_FORMATS", pre=True)
|
||||
def parse_supported_formats(cls, v: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user