Add table quantization option for pgvector#427
Add table quantization option for pgvector#427alwayslove2013 merged 1 commit intozilliztech:mainfrom
Conversation
68c0f59 to
da2155b
Compare
|
Rebased on latest main. Below are the configurations verified with runs from cli.
|
|
Formatting checks are failing for files not modified by this PR. Would you like me to fix them in this PR? If they are fixed in a separate PR, I will rebase on it. |
|
/assign @XuanYang-cn |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: akashsha1, alwayslove2013, lucagiac81 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@lucagiac81 I will check it.
|
This PR adds a table quantization option for pgvector.
Quantizing data as it is loaded enables storage savings if the original float vectors do not need to be preserved for other purposes. For example, halfvec quantization could be used in both the table and index, reducing the size of the table and eliminating the need for conversions.
table_quantization_type supports the same quantization options as quantization type: none, halfvec, bit.
Most combinations of the two options are supported, with some exceptions.