Hey @MadcowD,
Could this be simplified? Thoughts?
I'd like to solve it if it's on the backlog.
This logic confuses me all the time. I think could be refactored.
@web_app.get("/search")
async def search(query: str, video_id: str) -> list[dict]:
results = deep_search(query, n_results=5).parsed.model_dump()
return results["results"]
Cheers,
Taha