Preview feature notice: Analytical Search is a Snowflake Open Preview Feature. Preview features are provided primarily for evaluation and testing purposes and should not be used in production systems or with production data. Review the Snowflake Preview Terms of Service and speak with your Snowflake account representative if you have any questions or concerns.

Businesses need answers to many different kinds of questions and not every question should be answered the same way: a frontline employee may need a company policy explained, a sales leader wants to understand why deals are stalling, a marketing team needs to identify recurring customer concerns, and an operations manager might need to detect patterns across thousands of service cases.

Cortex Agents can be configured with multiple tools and capabilities. Analytical Search is an orchestration capability available to Cortex Agents. It’s designed for questions that require the AI agent to retrieve relevant information from a large collection of information, interpret unstructured text at scale and aggregate results that can be presented in an understandable response.

Analytical Search extends Cortex Search by orchestrating multi-index queries and AI SQL analysis across the result set to generate lists, counts, aggregates, and trends.

When not to use Analytical Search

It’s important to reiterate that Analytical Search isn’t necessary for all questions. Simpler tools are often faster, cheaper, and easier to govern.

Use Cortex Search for direct evidence retrieval. When the answer is available in an authoritative document, Cortex Search retrieves the relevant passages directly:

  • Explain the case escalation process.
  • What is the approved process for escalating a customer authentication failure?
  • What are the current rules for sales discount approvals?

Use structured analytics when reliable fields already exist. If every support case is consistently categorized with trusted values, a SQL query or Cortex Analyst can answer directly:

  • How many authentication escalations occurred last quarter?
  • Which region had the highest number of billing escalations?
  • Which product generated the most escalations this month?

If the necessary structured categories already exist and are trusted, a SQL query or semantic-model-driven analysis is often simpler, faster, cheaper, and easier than performing semantic analysis over text.

When to use Analytical Search

Some questions can’t be easily answered by retrieving a document or querying a structured field. In those situations, it’s necessary to use an explicit analytical process because the answer depends on evidence distributed across many documents, and it requires interpretation before it can be counted:

  • Which escalation theme is increasing fastest?
  • Which sales objections appear most frequently in call transcripts from stalled opportunities?
  • Which contract terms most often trigger legal review?

These questions share a common characteristic: the business signal exists primarily in unstructured content. There may not be a reliable ESCALATION_REASON field, but an internal note may explain precisely why the engineering team became involved. There might not be a column indicating a contract’s renewal terms. Instead, the relevant details exist as text in a document. Analytical Search is a good choice when the answer requires retrieval, classification, and aggregation across many unstructured records.

That’s because Analytical Search is an orchestration workflow that leverages a Cortex agent for answering questions that need retrieval, AI-assisted text analysis and deterministic data operations such as aggregation. Analytical Search leverages Cortex Search to narrow a large knowledge base to a subset of documents. Then, AI functions and SQL are used to interpret, classify, extract, aggregate, and analyze the subset of documents.

How Analytical Search Works

Analytical Search is an orchestration workflow with a Cortex Agent that combines retrieval, AI-assisted text analysis, and deterministic data operations. Here’s how it processes a question like “Which escalation theme is increasing fastest?”

  1. Retrieve. Cortex Search narrows a large knowledge base to a relevant subset of documents, such as cases tagged as escalations or containing escalation-related language.
  2. Classify. AI functions interpret each retrieved document, assigning an escalation theme based on the content of notes, transcripts, and case descriptions.
  3. Extract. Relevant signals are pulled from unstructured text, such as dates, product names, or severity indicators that wouldn’t be available in structured fields.
  4. Aggregate. SQL counts, groups, and trends the classified results, producing a structured answer, such as “authentication-related escalations increased 40% quarter over quarter.”
  5. Synthesize. The agent assembles the results into a response that explains both the answer and the evidence behind it.

Each step uses the appropriate tool: Cortex Search for retrieval, AI functions for interpretation, and SQL for deterministic calculation. The agent orchestrates the sequence.

Cortex Agents tool options

Analytical Search is one of several tools available to a Cortex Agent. The agent can select the tool that matches the question, data source, and required outcome:

Analytical Search doesn’t replace any of these other capabilities. It provides something new — a specialized path for questions that require both semantic interpretation and structured aggregation.

Governance matters

Analytical Search amplifies the scope of data access. A standard Cortex Search query retrieves a handful of relevant passages. Analytical Search can perform AI-assisted analysis across a broad set of retrieved documents, including classification, extraction, aggregation, and trend analysis over the search results set.

If the underlying Cortex Search service has access to sensitive data, Analytical Search may process that data if it falls within the configured Search service and analysis result set regardless of whether the user’s question appears sensitive. A broad service remains broad even when the question is narrow.

Thus, you’ll need to design the Analytical Search with the same care as any governed analytical product.

  • Scope the Search Service. The Cortex Search service backing the agent should contain only approved data. A sensitive or overly broad service increases risk proportionally when Analytical Search examines documents at scale.
  • Apply access controls. Analytical Search doesn’t bypass Snowflake’s access controls. The agent, search service, models, and supporting tools should have access only to approved data and actions.
  • Review tool permissions. Ensure the agent’s tools are limited to read-only operations where the use case requires only analysis, not modification.

Before it can be used, Analytical Search must be be enabled on an existing Cortex Agent. Once enabled, it’s available wherever that agent runs.

Cost and performance considerations

Analytical Search can consume more credits than a simple Cortex Search query because it processes each retrieved document individually with AI functions. The cost can increase with the size of the result set and the AI functions used. The cost of using Analytical Search generally scales with the number of documents retrieved and the complexity of the classification and extraction steps. For questions where structured analytics or direct search can provide the answer, those simpler paths are more cost-effective.

Summary

Use Cortex Search when the task is to find the authoritative document that answers a question. Use structured analytics when reliable fields already contain the answer. Use Analytical Search when the answer requires the agent to determine patterns across a large knowledge base of unstructured content.

Analytical Search is a Cortex Agents orchestration capability for questions that require retrieval, AI-assisted text analysis, and deterministic data operations such as filtering, extraction, aggregation, ranking, and trend analysis. It uses Cortex Search to narrow a large knowledge base to relevant candidate documents. AI functions and SQL are then used to interpret, classify, extract, aggregate, and analyze the result set.

Because Analytical Search can examine a larger result set and invoke AI functions, it should be enabled deliberately, governed carefully, and evaluated for cost, performance, and analytical quality.


Leave a Reply

Your email address will not be published. Required fields are marked *