---
title: "Search Lorebook"
method: POST
path: "/lorebooks/{lorebook_id}/search"
tags: ["lorebooks"]
---

# Search Lorebook

`POST /lorebooks/{lorebook_id}/search`

## Request

- Base URL: `https://studio-api.meganova.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://studio-api.meganova.ai/lorebooks/{lorebook_id}/search`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Semantic search across lorebook entries using vector similarity.

## Path parameters

- `lorebook_id` string, uuid, required

## Request body

- SemanticSearchRequest
  - `query` string, required
  - `top_k` integer
  - `min_score` number

## Response `200`

Successful Response

- SearchResultItem[]
  - `entry_id` string, required
  - `lorebook_id` string, required
  - `title` string, required
  - `content` string, required
  - `score` number, required
  - `priority` integer, required
  - `keys` unknown[], required
    - unknown

## Other responses

- `422`: Validation Error

---

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