Retrieval Augmented Generation (RAG) - Exploring LLM Capabilities Error


I have been getting similar errors every time I try to test the code samples.

The ValidationError is caused by temperature = 3 in the third parameter tuple (3, 0.05).

The underlying API client validates request arguments with Pydantic before dispatching the call. Most LLM providers (like Together AI and OpenAI) cap temperature between 0.0 and 2.0. Passing 3 fails schema validation locally.

Set the temperature to 2.0 or below:

params = ((0.3, 0.8), (1.5, 0.5), (2.0, 0.05))

If that cell was part of the original notebook starter code before the API package enforced strict validation, you can also refresh the lab via Lab Help → Get Latest Version (save any personal notes first).