Vector Search
Find semantically similar documents using approximate nearest neighbor (ANN) and exact kNN search.
Overview
turbopuffer supports both approximate nearest neighbor (ANN) search for speed at scale, and exact kNN search for recall-critical workloads. Both operate over dense float vector embeddings stored in your namespace.
ANN search
ANN search uses an index to find the nearest neighbors quickly, trading a small amount of recall for significant speed gains at scale.
Exact kNN search
kNN performs an exhaustive search — guaranteed recall, slower on large datasets.
Distance metrics
Auto-embedding
turbopuffer can generate embeddings automatically from a text attribute using a hosted model:
Then query using an Embed expression instead of a raw vector: