🔍

Semantic Search

Verified

@elastic/semantic-search

Semantic/vector search using embeddings

Usage

RUN SKILL semantic_search()

With parameters:

RUN SKILL semantic_search WITH query = 'value'

Parameters

NameTypeDefaultDescription
querySTRINGNatural language query

Returns

ARRAY— An array of matching documents

Example

-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
  -H "Content-Type: application/json" \
  -d '{"query": "RUN SKILL semantic_search()"}'

-- Response
{
  "result": [...],
  "_meta": {
    "execution_id": "abc123",
    "duration_ms": 45
  }
}