Vector Search Q1
Vector Search benchmark · all Vector Search queries
Representative SQL
Rendered in the benchmark’s native SQL with default parameters (no dialect translation available).
SELECT v.id, ARRAY_COSINE_SIMILARITY(v.embedding, q.query_vector) AS similarityFROM vectors AS vCROSS JOIN ( SELECT query_vector FROM vector_queries WHERE query_id = 1) AS qORDER BY similarity DESCLIMIT 10Representative DataFrame
No DataFrame implementation is registered for this query.
Get the exact query for your run
The blocks above are representative. To get the precise statement a specific platform runs at a specific scale, substitute your own values:
from benchbox import VectorSearch
bench = VectorSearch(scale_factor=0.01) # your scale factorqueries = bench.get_queries(dialect="datafusion") # your platform's dialect; drop dialect= for native SQLprint(queries['Q1'])Source
Query text: benchbox/core/vector_search/queries.py