-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[ENH]: add in-memory frontend impl #3902
base: main
Are you sure you want to change the base?
Conversation
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
.map(|(_, v)| v.clone()) | ||
.collect::<Vec<_>>(); | ||
|
||
struct RecordWithDistance(f32, ProjectionRecord); |
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.
nit: maybe use this
chroma/rust/types/src/execution/operator.rs
Line 457 in a89837f
pub struct KnnProjectionRecord { |
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.
KnnProjectionRecord doesn't implement Ord
a979491
to
ae729a3
Compare
This stack of pull requests is managed by Graphite. Learn more about stacking. |
781c521
to
1d59d07
Compare
tenants: HashSet<String>, | ||
databases: Vec<Database>, |
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.
nit: HashMap<String, Vec<Database>>
that maps tenant to databases might be cleaner
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.
🤷 we usually filter by some combination of the tenant and database names
given that we expect < 1k databases during testing I think this is fine for now
I can optimize later if a flamegraph says it's slow
db72c7c
to
23f31bd
Compare
23f31bd
to
7b62478
Compare
7b62478
to
c0a6303
Compare
Description of changes
Adds an in-memory frontend implementation to be used for testing. Makes the
Frontend
type an enum to do enum dispatch over.Test plan
How are these changes tested?
pytest
for python,yarn test
for js,cargo test
for rustAdded a test for the new frontend impl.
Documentation Changes
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?
n/a