-- Force the ANN index SET enable_seqscan=off; SET enable_bitmapscan=off; SET enable_sort=off; SET hnsw.iterative_scan=relaxed_order; SET hnsw.ef_search={{ ef_search_10pct }}; SELECT _id, title FROM cohere_wiki WHERE to_tsvector('english', text) @@ websearch_to_tsquery('english', current_setting('cohere.titles_10pct')) ORDER BY emb <=> current_setting('cohere.qvec')::vector(1024) LIMIT 10;