-
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
[ENH] JS Client Refactor (Full Stack) #2542
[ENH] JS Client Refactor (Full Stack) #2542
Conversation
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
3f9397e
to
979e416
Compare
979e416
to
0542954
Compare
0542954
to
4e37962
Compare
4e37962
to
ee7b51a
Compare
ee7b51a
to
55db9c0
Compare
55db9c0
to
19fb51f
Compare
@@ -38,18 +38,26 @@ For more info - please visit the [official Google python docs](https://ai.google | |||
{% /tab %} | |||
{% tab label="Javascript" %} | |||
|
|||
This embedding function relies on the `@google/generative-ai` npm package, which you can install with `yarn add @google/generative-ai`. | |||
This embedding function relies on the `@google/generative-ai` npm package, which you can install with e.g. `npm install @google/generative-ai`. |
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.
This embedding function relies on the `@google/generative-ai` npm package, which you can install with e.g. `npm install @google/generative-ai`. | |
This embedding function relies on the `@google/generative-ai` npm package, which you can install with `npm install @google/generative-ai`. |
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 we should leave e.g. here just to make it clear that this is an example of one way they can install the dependency rather than the way that we're specifically advocating.
async countCollections(): Promise<number> { | ||
await this.init(); | ||
|
||
return (await this.api.countCollections( |
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.
curious why this isn't already typed as a number?
looks pretty good to me after the merge conflicts are addressed |
Adding some refs from the discord chats. |
19fb51f
to
011eb8b
Compare
@@ -20,6 +20,32 @@ We will aim to provide: | |||
|
|||
## Migration Log | |||
|
|||
### v0.6.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.
@codetheweb @atroyn what version of the JS API client will this go out in? I originally put this in here as a placeholder.
I'm thinking maybe this should say something like:
"Javascript Client Refactor (v2.0.0) - July 2024"
Since this is a backward incompatible change and the latest version is 1.9.1. WDYT?
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.
that sounds good to me
@atroyn @codetheweb, ping on this. I think the last open question is how we want to title the migration section and then we can merge this, I believe. |
after the version number is updated in the docs (above comment) this looks good to me! |
Done! |
## Description of changes Upon further discussion - we decided we preferred the object-oriented JS API given our design constraints. This PR reverts the api to the previous design while keeping the other improvements introduced in #2542 ## Test plan Existing JS client test coverage ## Documentation Changes *Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the [docs repository](https://github.com/chroma-core/docs)?* Yes
## Description of changes Upon further discussion - we decided we preferred the object-oriented JS API given our design constraints. This PR reverts the api to the previous design while keeping the other improvements introduced in #2542 ## Test plan Existing JS client test coverage ## Documentation Changes *Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the [docs repository](https://github.com/chroma-core/docs)?* Yes
Upon further discussion - we decided we preferred the object-oriented JS API given our design constraints. This PR reverts the api to the previous design while keeping the other improvements introduced in #2542 Existing JS client test coverage *Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the [docs repository](https://github.com/chroma-core/docs)?* Yes
This PR is the full set of changes for the JS Refactoring work. See #2384 for the full context for this effort.