Skip to content
Aurabase Logo
aurabase

Semantic Vector Search

GET/v1/ai/{project_id}/search

Performs high-performance semantic similarity queries across vector namespaces with tunable thresholds and top-k limits.

Query Parameters#

ParameterTypeRequiredDescription
querystringyesSearch phrase or natural language query.
namespacestringyesTarget partition namespace to query against.
top_knumbernoMaximum documents returned (default 5, max 100).
thresholdnumbernoMinimum cosine similarity threshold from 0.0 to 1.0 (default 0.7).

Dynamic HNSW Tuning#

Info

The search endpoint dynamically sets PostgreSQL's hnsw.ef_search variable based on requested top_k ((top_k * 4).max(64)), guaranteeing high recall even when filtering post-index candidates.

Last updated · @aurabase/aurabase-js@0.7.5 · aura@0.3.4↗ Report a problem