-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[CLN] ServerAPI to use Collection model #2300
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Please tag your PR title with one of: [ENH | BUG | DOC | TST | BLD | PERF | TYP | CLN | CHORE]. See https://docs.trychroma.com/contributing#contributing-code-and-ideas |
19573d7
to
8c8ac22
Compare
adc67c9
to
5926521
Compare
25a5fc6
to
53058dd
Compare
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.
I think the change in test_persist may be an accident? Otherwise just a clean up nit and looks great
b4a93c0
to
8a6cde4
Compare
3b5338e
to
b6d0b05
Compare
b6d0b05
to
b1895df
Compare
b1895df
to
62d584f
Compare
Description of changes
This PR refactors the
ServerAPI
classes so that their methods only return theCollection
model, not theCollection
object itself, i.e. the view on the data.This is a much cleaner separation of concerns than we had before, and should enable faster iteration in parts. For example, the ServerAPI no longer needs to know about EmbeddingFunction or DataLoader etc - these only exist for Clients.
We will probably re-add them when we start moving some of that functionality server-side for cloud, but for now this is a fine solution.
Most the LoC in this PR are changing tests to use the ClientAPI and fixture instead of the ServerAPI and fixture. This does put the client in the line, but I think this is fine.
Test plan
Tests pass in CI.
Documentation Changes
N/A