Vectors

Search your live tables by meaning and keyword.

Declare vector and full-text indexes on any type in your schema. Writes commit without waiting on model APIs, and every scan checks the caller’s access policies.

Read the search docs

Filtered scoring

Private records never crowd out readable search results.

External vector stores fetch global nearest neighbors first and strip unauthorized hits afterward, which can leave a top-10 query empty. Napalm evaluates access policies during candidate scoring and drops revoked records on the same commit.

POST /search
curl https://notes.napalmdata.com/search \  -H "Authorization: Bearer $SESSION" \  -H "Content-Type: application/json" \  -d {    "type": "Note",    "query": "launch timeline and milestones",    "limit": 5  }
Access policies

Index scale

Grow past 100 million embeddings without exhausting RAM.

Vector storage scales separately from your database memory, so indexes grow past 100 million embeddings with no schema or query changes.

100M+vectors per index without a schema change

Vector and hybrid search

Hybrid ranking

Blend exact terms and semantic meaning in one query.

Pair fts::index with ext::ai::index on the same type so ext::ai::hybrid_search matches exact SKUs, identifiers and error codes alongside semantic similarity in a single ranked list.

Vector and hybrid search
dbschema/queries/searchNotes.edgeql
with hits := (  select ext::ai::hybrid_search(Note, <str>$query, language := 'eng')  order by .score desc  limit 5)select hits.object { id, title, body }

Zero-downtime reindexing

Swap embedding models without taking search offline.

Update embedding_model in your schema and run napalm schema push. Napalm builds the new index in the background while the active index keeps answering queries, and switches over once ready.

Terminal
napalm schema push notesnapalm models notes
Models and embeddings

Model keys

Run on managed models or bring your own API key.

Start immediately with Napalm’s managed embedding and Ask models under a monthly spend cap, or attach your own OpenAI, Mistral or Anthropic key with zero token markup.

Terminal
napalm models notes --add openai --secret-stdin < openai.keynapalm models notes
Models and embeddings