logoalt Hacker News

Rethinking search as code generation

66 pointsby 1zaelyesterday at 4:35 PM20 commentsview on HN

Comments

10000truthsyesterday at 7:31 PM

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.

show 1 reply
anthonypasqyesterday at 4:45 PM

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.

show 2 replies
nitwit005yesterday at 8:59 PM

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.

vicentereigyesterday at 7:39 PM

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

AgentMasterRaceyesterday at 7:01 PM

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

esafakyesterday at 7:27 PM

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

metalliqazyesterday at 7:26 PM

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

dopatramanyesterday at 7:54 PM

Perplexity still exists?

show 1 reply
1zaelyesterday at 4:35 PM

[flagged]

show 1 reply
Ozzie-Dyesterday at 7:28 PM

[dead]