Nirmos
Knowledge

Search Knowledge Base

Search current indexed chunks with semantic (default), exact tokenized phrase, or hybrid dense/BM25 RRF retrieval. minScore applies only to semantic mode. Ranked cursors expire after 10 minutes and cover a bounded result window; exact cursors scroll all matches. Exact scores are null; RRF scores are not similarity percentages.

POST
/v1/knowledge-bases/{id}/search

Search current indexed chunks with semantic (default), exact tokenized phrase, or hybrid dense/BM25 RRF retrieval. minScore applies only to semantic mode. Ranked cursors expire after 10 minutes and cover a bounded result window; exact cursors scroll all matches. Exact scores are null; RRF scores are not similarity percentages.

Authorization

better-auth.session_token<token>

Production cookie uses __Secure- prefix.

In: cookie

Path Parameters

id*string
Length1 <= length <= 128

Request Body

application/json

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/knowledge-bases/string/search" \  -H "Content-Type: application/json" \  -d '{    "query": "string"  }'
{  "data": {    "mode": "semantic",    "scoreType": "cosine",    "items": [      {        "source": {}      }    ],    "nextCursor": "string"  },  "requestId": "string"}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}