import sys
import asyncio
sys.path.append(r"d:\cnf\chatbot_canifa\backend")
from agent.tools.tool_module.search_engine import SearchEngine
from agent.tools.data_retrieval_tool import InferredSearch

async def main():
    se = SearchEngine(use_sqlite=True)
    inf = InferredSearch(tags=["occ:di_lam"], keywords=[])
    res = await se._dual_lane_search("", inf)
    print("Found:", len(res[0]) if res and isinstance(res, tuple) else res)

asyncio.run(main())
