---
title: "Search"
method: POST
path: "/knowledge/search"
tags: ["RAG"]
---

# Search

`POST /knowledge/search`

## Request

- Base URL: `https://api.emile.wine` (the document declares no server; this is the origin it was published from)
- URL: `https://api.emile.wine/knowledge/search`
- Auth: HTTP bearer

Embed the query, then cosine-search knowledge_chunks. Returns {"results": [...]}.

## Headers

- `X-API-Key` string, nullable

## Request body

- SearchQuery: Input for /knowledge/search.
  - `query` string, required
  - `language` 'fr' | 'en'
  - `pillars` string[], nullable
  - `top_k` integer

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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