Skip to content

2.25.2.0-b93

@spolitov spolitov tagged this 04 Mar 11:37
Summary:
Support specifying index creation options  m, m0, ef_construction for ybhnsw.
Standard Postgres pgvector hsnw supports the following options:
index creation options: m, ef_construction
query options: ef_search
Reference: https://github.com/pgvector/pgvector?tab=readme-ov-file#index-options
For ybhsnw, this diff:
adds plumbing for index creation options: m, ef_construction to be passed down
adds a new index creation option m0 (used by usearch) and adds plumbing for it

It does not yet handle query option ef_search.

**Upgrade/Rollback safety:** Safe, since modified field is used only by the code that was not yet released.
Jira: DB-15153

Test Plan: PgVectorIndexTest.Options/*

Reviewers: tnayak, arybochkin, jason

Reviewed By: tnayak

Subscribers: mihnea, smishra, jason, slingam, aleksandr.ponomarenko, ybase, yql

Tags: #jenkins-ready

Differential Revision: https://phorge.dev.yugabyte.com/D41785
Assets 2
Loading