Spaces:
Sleeping
Sleeping
Download main.py from Datamind23/AI_Research_Assis: direct link, hf CLI and curl.
- Browser
- Download file 523 Bytes
-
https://huggingface.co/spaces/Datamind23/AI_Research_Assis/resolve/main/main.py
- Command line
-
hf download hf://spaces/Datamind23/AI_Research_Assis/main.py
-
curl -L -o main.py https://huggingface.co/spaces/Datamind23/AI_Research_Assis/resolve/main/main.py
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"]) | |