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

# Search Lorebook

`POST /lorebooks/{lorebook_id}/search`

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.net/meganova/apis/fastapi.md) · [All operations](https://skmtc.net/meganova/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/meganova/fastapi/revisions/2b2bab8b9017/schema)
