demo2 / src /state /rag_state.py
Dinesh310's picture
Upload 29 files
8d56dc3 verified
raw
history blame
297 Bytes
"""RAG state definition for LangGraph"""
from typing import List
from pydantic import BaseModel
from langchain.schema import Document
class RAGState(BaseModel):
"""State object for RAG workflow"""
question: str
retrieved_docs: List[Document] = []
answer: str = ""