gen_ai.llm.context unless it is set again via
set_llm_context().
This is equivalent to set_llm_context(llm, None).
Parameters
The language model instance or binding.
Raises
TypeError – If aRunnableBinding is provided but its bound
object is not a BaseLanguageModel.
Returns
None Example: default from langchain_openai import ChatOpenAI from fiddler_langgraph import set_llm_context, clear_llm_context llm = ChatOpenAI(model=“gpt-4”) set_llm_context(llm, “RAG retrieved documents…”) # … RAG LLM call … clear_llm_context(llm) # … subsequent non-RAG LLM calls have no context …