📊 Full opportunity report: Search as Code: Perplexity Is Right About the Future — Just Not First to It on ThorstenMeyerAI.com — validation score, market gap, and execution plan.
TL;DR
Perplexity has unveiled Search as Code (SaC), a new method allowing AI systems to build tailored search pipelines via code. Early tests show significant improvements, but independent validation is pending.
Perplexity has introduced Search as Code (SaC), a new architecture that allows AI agents to assemble custom search pipelines dynamically using code. This development aims to address limitations in traditional search methods, especially for multi-step, high-volume retrieval tasks, and is significant because it could reshape how AI systems access and process information.
The core idea of SaC is to replace the conventional search API, which treats search as a fixed endpoint, with a modular, programmable stack built from atomic primitives like retrieval, filtering, and ranking. These components are exposed as parts of a Python SDK, enabling the model to generate and execute code to orchestrate search operations tailored to each task.
Perplexity demonstrated SaC’s potential through a case study involving the identification and characterization of over 200 high-severity vulnerabilities (CVEs). The system achieved 100% accuracy while reducing token usage by 85% compared to traditional methods. The approach involves a three-stage process: broad fan-out over vendor advisories, targeted refinements via language models, and schema-bound verification to ensure precision.
In benchmark tests, SaC outperformed existing systems on four of five tests, tying OpenAI on the fifth, and showed up to 20-point improvements over non-SaC baselines. Cost-performance analyses indicated that even lower-reasoning configurations outperformed most competitors at reduced costs.
Search as Code
Perplexity says agents shouldn’t call a search engine — they should program one, composing atomic primitives into a bespoke pipeline in a sandbox. The thesis is right. It’s also the search-shaped version of an idea the field has been converging on since 2024.
Monolithic search
Python SDK for search pipelines
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Programmable primitives
Directionally right, genuinely engineered — the rebuilt-from-atoms search stack is the part rivals can’t cheaply copy. But it’s a strong execution of an industry-wide idea, validated mostly on benchmarks Perplexity ran itself. The moat is the infrastructure and the tuning loops, not the architecture.

Bendable Flexible Magnetic Pickup Tool, 24'' Four Claw Grabber Tool, Accurate Pick Up In Narrow Space for Engine Bay/Home Sink/Drain/Earring/Keys/Metal Objects (Magnetic orientation)
【Narrow Space Pickups Saviour】: SARDVISA grabber tool has an orientable tube body and four steel claws can be…
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Implications for AI Search and Retrieval Strategies
This development matters because it suggests a shift toward more flexible, programmable search architectures that can adapt dynamically to complex, multi-step tasks. If widely adopted, SaC could improve the accuracy and efficiency of AI agents in fields like cybersecurity, research, and enterprise data management, where precise retrieval is critical. It also signals a broader move toward integrating code execution into AI workflows, leveraging the strengths of trained code models to overcome the rigidity of traditional search APIs.

Custom Search – Discover more:: A Complete Guide to Google Programmable Search Engines
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Evolution of Search Architectures in AI
Traditional search systems, including those optimized for AI, have relied on fixed pipelines that accept a query and return a static set of results. This approach sufficed when AI models performed single, straightforward retrievals. However, as AI agents take on more complex, multi-step tasks, the limitations of monolithic search endpoints become apparent. The concept of treating search as programmable code has been explored in academic research and industry projects since at least 2024, with recent efforts emphasizing turning tools into APIs that can be composed dynamically. Perplexity’s innovation lies in re-architecting its entire search stack into atomic primitives, enabling the model to generate tailored retrieval pipelines—an approach that aligns with broader trends in AI tool integration and code-based reasoning.
“SaC represents a significant step toward more adaptable and precise search architectures for AI agents.”
— Thorsten Meyer, AI researcher
search as code development kit
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Validation and Replication of SaC Results
While initial tests show promising results, independent validation of SaC’s performance, especially on the proprietary benchmarks like WANDR, remains pending. The benchmarks where SaC outperformed competitors were either self-developed or not yet publicly available for replication. Additionally, comparisons involving different models (GPT-5.5 versus Opus 4.7) introduce uncertainties about the true contribution of the architecture versus model differences. The broader applicability and robustness of SaC across diverse tasks are still unconfirmed.
Next Steps for Adoption and Validation
Further independent testing and peer review are expected as Perplexity prepares to publish more detailed benchmark results and possibly open-source components of SaC. Industry adoption will depend on validation of performance claims and integration into existing AI workflows. Additionally, research into extending the approach to other domains and verifying its scalability will shape the trajectory of Search as Code in AI systems.
Key Questions
What is Search as Code (SaC)?
SaC is a new architecture proposed by Perplexity that allows AI systems to assemble and execute custom search pipelines dynamically using code, rather than relying on fixed search APIs.
How does SaC improve over traditional search methods?
SaC enables more flexible, precise retrieval by allowing models to generate and execute tailored search pipelines, potentially reducing errors and increasing efficiency in complex tasks.
Are the performance claims of SaC independently verified?
No, the results are based on Perplexity’s internal benchmarks and case studies. Independent validation is still pending and necessary for broader acceptance.
Will SaC be available for other companies or open source?
It is not yet clear if Perplexity will open-source SaC components or offer it as a product. Future plans may depend on validation and industry interest.
What are the potential risks or limitations of SaC?
Potential challenges include the complexity of integrating code-based retrieval pipelines, ensuring security and correctness, and verifying performance across diverse tasks and models.
Source: ThorstenMeyerAI.com