Initial commit: breakpilot-compliance - Compliance SDK Platform
Services: Admin-Compliance, Backend-Compliance, AI-Compliance-SDK, Consent-SDK, Developer-Portal, PCA-Platform, DSMS Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
34
breakpilot-compliance-sdk/services/rag-service/config.py
Normal file
34
breakpilot-compliance-sdk/services/rag-service/config.py
Normal file
@@ -0,0 +1,34 @@
|
||||
"""
|
||||
Configuration for RAG Service
|
||||
"""
|
||||
|
||||
from pydantic_settings import BaseSettings
|
||||
from typing import Optional
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
"""Application settings loaded from environment variables."""
|
||||
|
||||
# Service
|
||||
environment: str = "development"
|
||||
port: int = 8082
|
||||
|
||||
# Qdrant
|
||||
qdrant_url: str = "http://localhost:6333"
|
||||
qdrant_collection: str = "legal_documents"
|
||||
|
||||
# Ollama
|
||||
ollama_url: str = "http://localhost:11434"
|
||||
embedding_model: str = "bge-m3"
|
||||
llm_model: str = "qwen2.5:32b"
|
||||
|
||||
# Document Processing
|
||||
chunk_size: int = 512
|
||||
chunk_overlap: int = 50
|
||||
|
||||
# Legal Corpus
|
||||
corpus_path: str = "./legal-corpus"
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
env_file_encoding = "utf-8"
|
||||
Reference in New Issue
Block a user