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

Vertex AI embedding client fix #561

Merged
merged 8 commits into from
Oct 11, 2023
Merged

Vertex AI embedding client fix #561

merged 8 commits into from
Oct 11, 2023

Conversation

maheshrajamani
Copy link
Contributor

@maheshrajamani maheshrajamani commented Oct 10, 2023

What this PR does:
Fixed the response data parsing for vertex AI.
Not added any test case because it needs API keys.
Tested manually.

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

@maheshrajamani maheshrajamani self-assigned this Oct 10, 2023
@maheshrajamani maheshrajamani requested a review from a team as a code owner October 10, 2023 13:37
this.metadata = metadata;
}

private static class Prediction {
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably better to keep package protected (no modifier) if and when this needs to be serialized; Jackson can access private classes too, but has to force access and there's (I think) minor performance penalty (not enough to be measurable probably tho).

@maheshrajamani maheshrajamani merged commit ab34252 into main Oct 11, 2023
3 checks passed
@maheshrajamani maheshrajamani deleted the embedding-client-fix branch October 11, 2023 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants