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 docsBackground embeddings
Embed new and updated rows in the background.
Declare fts::index for synchronous keyword updates in the write transaction and deferred index ext::ai::index for semantic vectors. Mutations commit without waiting on model APIs while Napalm embeds changed text in the background.
Vector and hybrid searchusing extension ai; type Note { required title: str; required body: str; required author: ext::auth::Identity; deferred index ext::ai::index( embedding_model := 'text-embedding-3-small' ) on (.title ++ '\n\n' ++ .body); index fts::index on ( fts::with_options(.title ++ ' ' ++ .body, language := fts::Language.eng) ); access policy author_can_read allow select using (.author ?= global caller);}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.
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 }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
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 searchwith 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.
napalm schema push notesnapalm models notesModel 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.
napalm models notes --add openai --secret-stdin < openai.keynapalm models notes