CoolFace
Apppublic

rk22012000/Agentic_QA_System

sourceHugging Facemitupdated 7mo agoView on Hugging Face
0likes
Rag_tool.py11 linesDownload Raw Back to root
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