-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add start, stop, and temporal_policy to FeatureVector and FeatureVectorArray #549
Add start, stop, and temporal_policy to FeatureVector and FeatureVectorArray #549
Conversation
py::arg("ctx"), | ||
py::arg("uri"), | ||
py::arg("first_col") = 0, | ||
py::arg("first_col") = 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
last_col
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, done.
}, | ||
py::keep_alive<1, 2>(), // FeatureVectorArray should keep ctx alive. | ||
py::arg("ctx"), | ||
py::arg("uri"), | ||
py::arg("ids_uri") = "", | ||
py::arg("num_vectors") = 0, | ||
py::arg("first_col") = 0, | ||
py::arg("first_col") = 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
last_col
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, done.
ctx, | ||
parts_array_uri, | ||
ids_array_uri, | ||
0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For better readability, it would be nice to follow the pattern bellow for such arguments
data = vspy.FeatureVectorArray(
ctx,
parts_array_uri,
ids_array_uri,
/* first_col */ 0,
/* last_col */ 0,
to_temporal_policy(index_timestamp),
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, thanks, done (though note it's a little different than this b/c a Python comment).
…arch into jparismorgan/feature-vector-and-array-start-stop
What
Add
start
,stop
, andtemporal_policy
toFeatureVector
andFeatureVectorArray
. This will let us callingest_parts()
on batches of vectors from Python for the new IVF_PQ out-of-core work.Testing