feat: 판례 GPT 판단과 연동 가이드 최신화
This commit is contained in:
1 parent
8427cf423b
commit
ee2f85a2d9
20 files changed
+2150
-20
No files matched your search
@@ -61,8 +61,12 @@ class Settings(BaseSettings):
|
||||
openai_api_key: str = ""
|
||||
openai_extraction_model: str = "gpt-4o-mini"
|
||||
openai_embedding_model: str = "text-embedding-3-small"
|
||||
openai_judge_model: str = "gpt-4o-mini"
|
||||
use_llm_extractor: bool = False
|
||||
use_embedding_similarity: bool = False
|
||||
use_llm_legal_judge: bool = False
|
||||
llm_judge_timeout_seconds: float = 20.0
|
||||
llm_judge_max_evidence_chars: int = 4000
|
||||
|
||||
# 삼중 유사도 가중치 (실측 기반)
|
||||
weight_text_sim: float = 0.30
|
||||
@@ -107,6 +111,10 @@ class Settings(BaseSettings):
|
||||
def has_openai(self) -> bool:
|
||||
return bool(self.openai_api_key.strip())
|
||||
|
||||
@property
|
||||
def has_llm_legal_judge(self) -> bool:
|
||||
return self.use_llm_legal_judge and self.has_openai
|
||||
|
||||
|
||||
@lru_cache
|
||||
def get_settings() -> Settings:
|
||||
|
||||
Reference in new issue
Block a user