Rethinking search as code generation

research.perplexity.ai

65 points by 1zael 7 hours ago


10000truths - 4 hours ago

Sounds like the goal here is to augment search with a sort of query language. One that's more structured than a mere list of keywords?

Ribbing aside, the "rethinking" here sounds a lot like an AI-specific spin on the "bring the code to the data, instead of data to the code" paradigm. I imagine that the same multitenancy caveats of allowing arbitrary user-defined queries against a relational database (execution limits, access controls, etc.) will apply here as well.

anthonypasq - 7 hours ago

I 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 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.

nitwit005 - 3 hours ago

It feels like there will be some hard to deal with customer support issues related to limits. The generated Python code is unlikely to always run queries in an optimal way.

Normally you'd tell your customer they need to fix their code if they're doing something inefficient, but here, they didn't write the code and are presumably not expected to understand it.

vicentereig - 4 hours ago

It’s funny how many agentic things decompose into a DSPy RLM with specialized tools, although the tools here do the heavy lifting.

AgentMasterRace - 5 hours ago

How does this compare to something like cocoindex-code? That indexes your code for semantic searches.

esafak - 4 hours ago

Is there a need for this over simply providing a rich enough search API?

metalliqaz - 4 hours ago

What kind of tool does one use to create flowchart graphics like these?

dopatraman - 4 hours ago

Perplexity still exists?

1zael - 7 hours ago

[flagged]

Ozzie-D - 4 hours ago

[dead]