Set additional context information for LLM interactions. The LLM context allows you to provide additional background information or available options that can be tracked alongside model invocations. This context will be added to telemetry spans as ‘gen_ai.llm.context’ and can be used for debugging or analysis in Fiddler’s platform. The context persists until explicitly changed by calling this function again with a new value. Works automatically in both synchronous and asynchronous contexts.Documentation Index
Fetch the complete documentation index at: https://handbook.fiddler.ai/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | Model | ✗ | None | The Model instance to attach context to |
context | str | ✗ | None | Context string providing additional information about available options, constraints, or background for the LLM interaction |