---
title: "Semantic search in knowledge base"
method: POST
path: "/knowledge/search"
tags: ["Knowledge"]
---

# Semantic search in knowledge base

`POST /knowledge/search`

## Request body

- ModelsKnowledgeSearchRequest
  - `answer_types` string[]
  - `code_langs` string[]
  - `doc_types` string[]
  - `flow_id` integer
  - `guide_types` string[]
  - `limit` integer
  - `manual` boolean
  - `query` string, required

## Response `200`

OK

- object
  - `data` object
    - `items` ModelsKnowledgeDocWithScore[]
      - `document` ModelsKnowledgeDocEntry
        - `answer_type` string
        - `code_lang` string
        - `content` string
        - `description` string
        - `doc_type` string
        - `flow_id` integer
        - `guide_type` string
        - `id` string
        - `manual` boolean
        - `part_size` integer
        - `question` string
        - `subtask_id` integer
        - `task_id` integer
        - `total_size` integer
        - `user_id` integer
      - `score` number
    - `total` integer
  - `status` string

## Other responses

- `400` — invalid request
- `403` — not permitted
- `500` — internal error
- `503` — embedding provider not configured

## Changes

> 21 revisions in range; 1 could not be searched.

- **2026-05-04** `eac03ab3c1e0` — 1 info
  - endpoint added
- **2026-03-26** `fe95938acc20` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/vxcontrol/apis/pentagi-swagger-api/changes/knowledge/search/post.md)

---

[API](https://skmtc.dev/vxcontrol/apis/pentagi-swagger-api.md) · [All operations](https://skmtc.dev/vxcontrol/apis/pentagi-swagger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vxcontrol/pentagi-swagger-api/revisions/7c1cbf7abaa1/schema)
