We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efdda3f commit 87e5fa5Copy full SHA for 87e5fa5
src/ragas/llms/base.py
@@ -88,7 +88,7 @@ async def generate(
88
"""Generate text using the given event loop."""
89
90
if temperature is None:
91
- temperature = 1e-8
+ temperature = self.get_temperature(n)
92
93
if is_async:
94
agenerate_text_with_retry = add_async_retry(
@@ -280,7 +280,7 @@ async def agenerate_text(
280
callbacks: Callbacks = None,
281
) -> LLMResult:
282
283
284
285
kwargs = self.check_args(n, temperature, stop, callbacks)
286
li_response = await self.llm.acomplete(prompt.to_string(), **kwargs)
0 commit comments