mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-17 21:25:46 +02:00
note on window
This commit is contained in:
@@ -27,7 +27,10 @@ Runtime context is for immutable data like user metadata, tools, db connections,
|
||||
!!! note "'Context' is an overloaded term"
|
||||
|
||||
Runtime context refers to local context: data and dependencies your code needs to run.
|
||||
It does not refer to the LLM context, which is the data passed into the LLM's prompt.
|
||||
|
||||
It does not refer to:
|
||||
* The LLM context, which is the data passed into the LLM's prompt.
|
||||
* The "context window", which is the maximum number of tokens that can be passed to the LLM.
|
||||
|
||||
You likely want to use the local context to optimize the llm's context window. For example, you
|
||||
could use a user_id to fetch a user's name and information from a database to populate the context window with relevant memories.
|
||||
|
||||
Reference in New Issue
Block a user