File size: 523 Bytes
1a3974f
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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"])