State
Default State: RAGState
RAGStateclass RAGState(TypedDict):
user_query: str
queries: list[str]
retrieval_params: dict[str, Any]
chunks: list
history: str
context: str
response: str
references: str | list[str]
event_emitter: EventEmitterDefining a Custom State
1
2
Using a Pydantic BaseModel as a State
1
2
Last updated
Was this helpful?