From d004ea06d5a0db1415377edd8b350bc4d7926d5e Mon Sep 17 00:00:00 2001 From: Joseph Adediji Date: Wed, 28 Aug 2024 22:21:26 +0100 Subject: [PATCH] Adjust the LLM temperature to reduce hallucinations --- src/gpt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpt.py b/src/gpt.py index 5794cca..371c0c2 100644 --- a/src/gpt.py +++ b/src/gpt.py @@ -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):