---
title: "Search Knowledge Base"
method: POST
path: "/agent/rag-search"
tags: ["agent"]
---

# Search Knowledge Base

`POST /agent/rag-search`

## Request

- Base URL: `https://api.alpha-grid.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.alpha-grid.ai/agent/rag-search`
- Auth: HTTP bearer

Search the clinical knowledge base for relevant information via RAG

## Request body

- AgentsetSearchRequest
  - `query` string, required
  - `topK` integer
  - `rerank` boolean

## Response `200`

Successful Response

- AgentsetSearchResult[]
  - `id` string, required
  - `text` string, required
  - `score` number, required
  - `metadata` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/alpha-grid/apis/alphagrid-backend-dev.md) - [All operations](https://skmtc.dev/alpha-grid/apis/alphagrid-backend-dev/llms.txt) - [OpenAPI document](https://skmtc.dev/alpha-grid/apis/alphagrid-backend-dev/revisions/13bab0bdd466?raw)
