Datamind23's picture
Deploy app
1a3974f
Raw History Blame Contribute Delete
523 Bytes
from agentic_rag.agent_flow import flow, MyState
import warnings
# Suppress specific deprecation/warnings
warnings.filterwarnings("ignore", category=UserWarning, message="Convert_system_message_to_human will be deprecated")
warnings.filterwarnings("ignore", category=FutureWarning, message="`encoder_attention_mask` is deprecated")
# Example usage: run the RAG workflow for a sample query
state = MyState()
state["query"] = "What is Blackhole"
response = flow.invoke(state)
print("Final Answer:", response["response"])