Skip to content

fix: keep redis default values for vector similarity parameters#559

Merged
alaeddine-13 merged 2 commits intomainfrom
fix-keep-redis-defaults
Sep 23, 2022
Merged

fix: keep redis default values for vector similarity parameters#559
alaeddine-13 merged 2 commits intomainfrom
fix-keep-redis-defaults

Conversation

@alaeddine-13
Copy link
Copy Markdown
Member

closes: #557
Avoid introducing new default values for vector similarity configuration in redis backend, rather use None and leave it up to the database to decide the default value.

Copy link
Copy Markdown
Member

@samsja samsja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

I really like this pattern we should always use it as well when passing kwargs to other function

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 23, 2022

Codecov Report

Merging #559 (8449d01) into main (6ee4500) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #559   +/-   ##
=======================================
  Coverage   86.39%   86.39%           
=======================================
  Files         134      134           
  Lines        6718     6718           
=======================================
  Hits         5804     5804           
  Misses        914      914           
Flag Coverage Δ
docarray 86.39% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
docarray/array/storage/redis/backend.py 96.58% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@bwanglzu
Copy link
Copy Markdown

fyi @AnneYang720

@alaeddine-13 alaeddine-13 merged commit 4590776 into main Sep 23, 2022
@alaeddine-13 alaeddine-13 deleted the fix-keep-redis-defaults branch September 23, 2022 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

in redis backend, try not to re-define redis config but use none by default and leave it to the backend

4 participants