Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve VectorField schema default args and tests #68

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

tylerhutcherson
Copy link
Collaborator

By default, the VectorField's in Redis do NOT need to have the block size or initial cap args set. This change allows for those params to be set, and only included in the field args if so. Otherwise, they are ignored. Also include a small refactor on the schema classes for vectors as well as new schema unit tests.

@tylerhutcherson tylerhutcherson added bug Something isn't working enhancement New feature or request labels Oct 18, 2023
@codecov-commenter
Copy link

codecov-commenter commented Oct 18, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (4aab8b7) 87.12% compared to head (8875bd6) 87.75%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #68      +/-   ##
==========================================
+ Coverage   87.12%   87.75%   +0.62%     
==========================================
  Files          16       16              
  Lines         870      882      +12     
==========================================
+ Hits          758      774      +16     
+ Misses        112      108       -4     
Files Coverage Δ
redisvl/vectorize/text/openai.py 76.56% <ø> (ø)
redisvl/vectorize/text/vertexai.py 79.54% <ø> (ø)
redisvl/schema.py 95.78% <94.44%> (+5.42%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@Spartee Spartee left a comment

Choose a reason for hiding this comment

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

Tested locally, worked well.

@Spartee Spartee merged commit 5b9b0c7 into main Oct 20, 2023
@Spartee Spartee deleted the vector-field-classes branch October 20, 2023 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants