AI Search
AI Search lets you search selected records in your tenant using natural-language queries. A Search Profile chooses one source Object Type, selects eligible records, and defines how their fields become searchable text. Contextual renders that text, splits it into chunks, and creates embeddings for retrieval.
A named Search Index is a query preset on a profile. It selects semantic or hybrid search, candidate count, grouping, static filters, and optional reranking. Hybrid search combines semantic matches with keyword matches.
A search returns evidence from indexed text or the corresponding source records. Your AI client or solution uses those results to answer a question. Keep source references so readers can inspect the evidence.
Contextual manages indexing and retrieval over your Native Object data, so your application can use search without maintaining a separate synchronization pipeline or integrating directly with embedding, vector search, and reranking providers.
Get Started
AI Search Quickstart for Coding Agents: prepare example records, configure a profile, and use a coding agent with the Contextual CLI to search and explain the evidence.
AI Search CLI Reference: install the CLI, sign in, manage profiles, inspect indexing progress, and query records or matching text.
Query and Use Results: call the Native Object API directly from your application.
Check the returned evidence against known source records and evaluate the results before using them in your solution.
AI Search and Agentic Search
AI Search returns a finite number of ranked matches for the query you submit. Your application can call its Native Object API endpoints directly to display relevant records or passages. The endpoint does not rewrite your query or generate an answer from the results.
Agentic search is a workflow in which a language model chooses tools to call, refines queries using earlier results, and combines evidence into an answer. AI Search can be one of those tools. The application supplies conversation context and implements the tools that the model can call.
Find troubleshooting notes for a pump that is running but barely moving water.
Call AI Search directly and show the matching notes. This does not require an answer generation step.
Count work orders whose status field is Open.
Use a Query Object node in a Flow, or the Native Object API endpoint POST /$query/:typeId, and request the total matching record count. Counting AI Search matches does not give that total.
Investigate a pump problem using its record, troubleshooting notes, and follow-up questions.
Use an agentic workflow to look up record details, retrieve relevant text, and refine later searches using what it finds.
A semantic match indicates relevance to the indexed text. It does not establish that a record satisfies an exact field condition. For example, a template label such as “Status” makes that word searchable regardless of the record's status value. Include meaningful values and context in your templates, and use structured record queries for exact field conditions and counts.
To build an agentic workflow in Contextual, use AI Gateway and the AI Generate node's tool calling in a Flow. Define tools whose logic calls AI Search and structured record queries as needed, then returns results to the model so it can make further tool calls or generate an answer.
For an application to use this workflow, expose the Flow as an HTTP API using an HTTP to Flow agent, with HTTP In to receive requests and HTTP Response to return answers. Your application calls the Flow's endpoint with the question and conversation history. The Flow passes that input to AI Generate and returns the generated answer.
Learn and Configure
Search Concepts and Configuration: templates, chunking, embeddings, projections, indexes, filters, and reranking.
Create and Manage Search Profiles: select records, configure a profile, inspect previews, save, and check readiness.
Query and Improve
Query and Use Results: query contracts, evidence, and source records.
Analyze and Improve Search Quality: compare results with expected matches and choose what to change.
Keep Search Up to Date: freshness, indexing progress, repair, rebuild, and failures.
Last updated
Was this helpful?