# Semantic Search

Semantic Search enhances the way Agents interact with Tables by allowing **contextual** and **meaning-based** queries.\
When this option is enabled on a column, the system uses vector embeddings to interpret user input.

#### Example:

If a user asks:

> “Show all users who asked about campaigns”

An Agent can retrieve rows from a “Questions” column even if none explicitly mention “campaigns”, as long as the semantic meaning aligns (e.g., “marketing flows”, “mass messages”).

***

### 🧩 When to Enable Semantic Search

✅ **Recommended for:**

* Descriptive or natural language fields (`string`)
  * Examples: *Question*, *Feedback*, *Message*, *Description*

❌ **Avoid enabling for:**

* Short categorical or structured fields
  * Examples: *ID*, *Status*, *Type*, *Boolean flags*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zaia.app/tables/semantic-search.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
