Perplexity Unshackles AI Models with 'Search as Code' Architecture
Perplexity introduces 'Search as Code', allowing AI models to write their own search routines in Python, outperforming rivals while slashing token costs.

Perplexity has unveiled a groundbreaking 'Search as Code' architecture that revolutionizes how AI models interact with search pipelines. By empowering AI models to write their own search routines in Python, the company is bidding farewell to rigid, fixed APIs. This innovative approach enables AI agents to handle filtering and deduplication within a secure sandbox environment.
The results are impressive: Perplexity's 'Search as Code' outperforms competitors OpenAI and Anthropic on key benchmarks. Moreover, the new architecture achieves significant cost savings, cutting token costs by up to 85 percent. This development has the potential to reshape the AI landscape, offering more efficient and adaptable search solutions.
Perplexity's approach allows AI models to take control of their search processes, effectively becoming more autonomous. By writing their own search routines, AI models can tailor their searches to specific needs, enhancing the accuracy and relevance of results. This increased flexibility also paves the way for further innovation in AI-driven search applications.
The 'Search as Code' architecture marks a significant departure from traditional search APIs, which often constrain AI models with predefined interfaces. Perplexity's bold move is set to have far-reaching implications for the AI industry, as it challenges existing norms and sets a new standard for search pipeline design. As AI continues to evolve, Perplexity's 'Search as Code' is poised to play a pivotal role in shaping the future of AI-driven search.
By liberating AI models from rigid APIs, Perplexity is empowering the next generation of AI applications to achieve unprecedented levels of efficiency and effectiveness.
Source: The Decoder