We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48d5e56 commit c5b586eCopy full SHA for c5b586e
src/ragas/llms/base.py
@@ -122,11 +122,11 @@ def generate(
122
self,
123
prompts: list[ChatPromptTemplate],
124
n: int = 1,
125
- temperature: float = 0,
+ temperature: float = 1e-8,
126
callbacks: t.Optional[Callbacks] = None,
127
) -> LLMResult:
128
# set temperature to 0.2 for multiple completions
129
- temperature = 0.2 if n > 1 else 0
+ temperature = 0.2 if n > 1 else 1e-8
130
if isBedrock(self.llm) and ("model_kwargs" in self.llm.__dict__):
131
self.llm.model_kwargs = {"temperature": temperature}
132
else:
0 commit comments