weaviate-python-client icon indicating copy to clipboard operation
weaviate-python-client copied to clipboard

Add Hfresh index type

Open robbespo00 opened this issue 6 months ago • 1 comments

It allows to create HFresh index. Currently users can set the following parameters:

  • max_posting_size_kb: is the max allowed size for a posting list. By default is computed dynamically.
  • replicas: is the number of posting lists in which a vector will be added. By default is 4
  • rng_factor: is a factor used to add a vector to a posting list if it's too close to a selected posting list then it will be skipped. By default is 10
  • search_probe: is the number of posting lists to search. By default is 64
  • distance_metric: is the distance metric used to compute distances. By default is cosine If a parameter is not set then the default one will be used.

robbespo00 avatar Oct 16 '25 16:10 robbespo00

Codecov Report

:x: Patch coverage is 73.68421% with 10 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 86.36%. Comparing base (fd58638) to head (d4baec8). :warning: Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
weaviate/collections/classes/config_methods.py 20.00% 4 Missing :warning:
...eaviate/collections/classes/config_vector_index.py 82.35% 3 Missing :warning:
weaviate/collections/classes/config.py 84.61% 2 Missing :warning:
weaviate/collections/classes/config_vectors.py 66.66% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1848      +/-   ##
==========================================
- Coverage   86.45%   86.36%   -0.09%     
==========================================
  Files         274      274              
  Lines       19966    20015      +49     
==========================================
+ Hits        17261    17286      +25     
- Misses       2705     2729      +24     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov-commenter avatar Oct 16 '25 17:10 codecov-commenter