Adjust the LLM temperature to reduce hallucinations

This commit is contained in:
Joseph Adediji 2024-08-28 22:21:26 +01:00
parent 628fd55201
commit d004ea06d5

View File

@ -115,7 +115,7 @@ class LoggerChatModel:
class GPTAnswerer:
def __init__(self, openai_api_key):
self.llm_cheap = LoggerChatModel(
ChatOpenAI(model_name="gpt-4o-mini", openai_api_key=openai_api_key, temperature=0.8)
ChatOpenAI(model_name="gpt-4o-mini", openai_api_key=openai_api_key, temperature=0.4)
)
@property
def job_description(self):