Suggestions

Products & Resources

Back to all resources

Summary

The enterprise model of how people think about searching has changed and developers are asking far more from existing engines. They're creating production-capable systems that can generate suggestions for users based on context, trigger workflows, and influence production environments with little control over the potential effects of the generated suggestions. Language models can suggest a next step based on context, but they have no logic for determining which tools a user is authorized to invoke, whether a proposed action warrants human review, or how to represent access scope when selecting an execution template. None of this gets solved at the model layer alone. Three layers carry the work: the LLM classifies intent, the orchestration layer makes the routing call and enforces policy, and the retrieval layer handles constraint and candidate generation by narrowing the option set under those policies then ranking what survives. Treat the whole thing as a generation problem and you end up with one of two bad architectures: rigid ones that contribute little, or loose ones that invite risk. Neither is acceptable. It’s critical to differentiate the decision surface from the execution layer. The decision surface is where intent is classified, tools satisfying the intent are found, and alternatives based on those tools are evaluated. Algolia enables fast and accurate retrieval and evaluation of possible action options and their corresponding tool contracts. The execution layer is the point where a deterministic contract is selected and executed via either a direct API call or Model Context Protocol Server. All additional reasoning should occur prior to the execution layer.

Three architectural requirements are identified here.

  • A capability directory required to enable rapid governance of the Model Context Protocol to provide a standard method of communication between the system and external applications, tools, and data stores.
  • The need for the OWASP Top 10 for Agentic AI Applications to mitigate the risks of potential vectors of risk (i.e., prompt injection, misuse of tools), prior to the execution occurring during the retrieval layer vs. after the execution occurred.
  • The governance and human-in-the-loop expectations outlined in the NIST AI Risk Management Framework must reflect the functionality of the retrieval telemetry and the policy-based ranking of the possible alternatives, and there cannot exist a separate compliance mandate that would require different teams working on the same shared infrastructure to develop each separately.

A retrieval layer's poor management becomes apparent when it fails under increasing loads; routing latency increases and the retrieval layer is no longer on the critical path. Users abandon using the copilot and instead create their own unmanaged workarounds. Any system that users are circumventing is unmanaged. A lower "intent friction" is simply the time it takes for a user to express his or her intent to a system and receive an actionable response back from the system. Lowering the time it takes to provide such an actionable response will not be a performance metric. Rather, it will represent the difference in the environment in which governance can occur vs. documentation of the same governance. As outlined in this paper, each of these design decisions (creating separate planes; utilizing the approved actions index as a capability mask as per Zero Trust principals; and creating the Safe Relevance Feedback Loop) are being made to provide an environment where there is zero intent friction at all times under enterprise conditions.

Algolia is one of the world’s largest hosted search engines with over 1.75 trillion search queries annually across more than 17,000 customers in 150 different countries. To achieve this level of scale without introducing latency into searches, it continually rebalances its data structures to keep the index balanced and retrieval fast. This paper describes how Algolia’s retrieval and ranking layer powers an enterprise intent router. The platform supplies the indexed tool catalog, ranks candidates under policy constraints, and stays fast enough that the orchestration layer above can turn natural language into safe, auditable action without leaving the critical path.

Unlock this asset

Enable anyone to build great Search & Discovery