---
title: "Semantic Search"
method: POST
path: "/vector/search"
tags: ["Vectorization"]
---

# Semantic Search

`POST /vector/search`

## Endpoint to Perform Semantic Search
This endpoint performs a semantic search using the specified query.

***
## Request Body

| Field               | Type   | Description                      |
|---------------------|--------|----------------------------------|
| query               | str    | The semantic search query.       |
| index_id            | str    | The ID of the index to search.   |

***

## Example Request Body

    ```json
        
        {
            "query": "what is AWS?",
            "index_id": "b1c2b4c5-6d7e-8f9g-0h1i-2j3k4l5m6n7"
        }

        ```
***
## Response Body

[
    {
        "text": "<text>",
    }
]

## Request body

- SemanticSearchRequest
  - `query` string, required
  - `index_id` string, required

## Response `200`

Successful Response

- object[]

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/aws-samples/apis/generative-ai-foundational-platform-api.md) · [All operations](https://skmtc.dev/aws-samples/apis/generative-ai-foundational-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aws-samples/generative-ai-foundational-platform-api/revisions/8831d08902e9/schema)
