pgvector / pgvector-python

pgvector support for Python
MIT License
951 stars 63 forks source link

How to set query options (e.g. # of ivfflat.probe) when querying a table with IVFFlat or HNSW index? #46

Closed lesser-panda closed 11 months ago

lesser-panda commented 11 months ago

As mentioned in the instructions of pgvector (https://github.com/pgvector/pgvector#query-options), there are several query options that can be set at the time of querying, if the table contains an IVFFlat or HNSW index. How can we set these options when using this library?

ankane commented 11 months ago

Hi @lesser-panda, check out #36.