rk22012000/Agentic_QA_System
0
1# rag_tool.py
2
3
4from vector_store import retrieve
5
6def rag_tool(query: str) -> str:
7 context = retrieve(query)
8 context_text = " ".join(context)
9 return f"Based on documents: {context_text}"
10
11 1# rag_tool.py
2
3
4from vector_store import retrieve
5
6def rag_tool(query: str) -> str:
7 context = retrieve(query)
8 context_text = " ".join(context)
9 return f"Based on documents: {context_text}"
10
11