# 把上节课的 RAG 也变成一个工具！
def rag_search(query: str) -> str:
    contexts = retriever.hybrid_search(query, top_k=2)
    return "\n".join(contexts)