---
title: "Search your knowledge base"
method: GET
path: "/rag/search"
tags: ["Knowledge"]
---

# Search your knowledge base

`GET /rag/search`

## Request

- Base URL: `https://foresea.ink` (the document declares no server; this is the origin it was published from)
- URL: `https://foresea.ink/rag/search`
- Auth: none declared

## Query parameters

- `q` string, required
- `namespace` string
- `top_k` integer

## Response `200`

Successful Response

- RagSearchResult[]
  - `text` string
  - `title` string
  - `url` string
  - `source` string
  - `score` number

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/foresea/apis/foresea-intelligence-api.md) · [All operations](https://skmtc.dev/foresea/apis/foresea-intelligence-api/llms.txt) · [OpenAPI document](https://skmtc.dev/foresea/apis/foresea-intelligence-api/revisions/b03e49f4385d?raw)
