Skip to main content
POST
/
search
curl -X POST "http://localhost:8080/search" \
  -H "Content-Type: application/json" \
  -d '{
    "query": [0.01, -0.02, "... 1024 floats ..."],
    "top_k": 5
  }'
{
  "results": [
    {
      "id": "item-1",
      "score": 0.894123,
      "label": "Close Match"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.moorcheh.ai/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Search the local store using a numeric query vector. Plain text queries are rejected.
query
array
required
JSON array of exactly 1024 floats.
top_k
number
default:"10"
Maximum results to return. Capped at 100.
threshold
number
default:"0"
Used when kiosk_mode is true (0–1).
kiosk_mode
boolean
default:"false"
When true, threshold is required.
curl -X POST "http://localhost:8080/search" \
  -H "Content-Type: application/json" \
  -d '{
    "query": [0.01, -0.02, "... 1024 floats ..."],
    "top_k": 5
  }'
{
  "results": [
    {
      "id": "item-1",
      "score": 0.894123,
      "label": "Close Match"
    }
  ]
}

Result fields

FieldDescription
idMatched item id
scoreSimilarity score (0–1), rounded to 6 decimals
labelHuman-readable relevance label