Rethinking search as code generation
research.perplexity.ai
Rethinking search as code generation
1–10 of 22 posts
Re: Rethinking search as code generation
#2Re: Rethinking search as code generation
#3Maybe this is just different from web search, but it seems like the model needs sequential tool calls to know where to look next, and coding agents have already put in a lot of work to encourage parallel tool calling.
Re: Rethinking search as code generation
#4I found this approach very interesting and was wondering if it could be applied to grep-based search for coding agents to increase speed and reduce LLM turns, but the part im not quite understanding is how the model will know enough about the codebase to construct a complicated multi-stage search pipeline based just on the prompt. Maybe this is just different from web search, but it seems like the model needs sequent…
Re: Rethinking search as code generation
#5Re: Rethinking search as code generation
#6I found this approach very interesting and was wondering if it could be applied to grep-based search for coding agents to increase speed and reduce LLM turns, but the part im not quite understanding is how the model will know enough about the codebase to construct a complicated multi-stage search pipeline based just on the prompt. Maybe this is just different from web search, but it seems like the model needs sequent…
This approach usually works great but I can see many use cases where a smarter search strategy may make sense especially to optimize context.
Re: Rethinking search as code generation
#7I found this approach very interesting and was wondering if it could be applied to grep-based search for coding agents to increase speed and reduce LLM turns, but the part im not quite understanding is how the model will know enough about the codebase to construct a complicated multi-stage search pipeline based just on the prompt. Maybe this is just different from web search, but it seems like the model needs sequent…
Yeah I think this maps onto grep-based code search well. Right now agents grep, read the results, grep again, and every hit lands in context. This architecture turns that into one program: fan out the greps, filter and dedupe in the sandbox, hand back only what matters. The "won't know the codebase" worry flips around too. The first program shouldn't be "find the bug," it should be "build me a map" (grep the file tre…