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

Fix #1066: Implement VoyageAI embedding client #1068

Merged
merged 8 commits into from
May 8, 2024

Conversation

tatu-at-datastax
Copy link
Contributor

What this PR does:

Adds Embedding client for VoyageAI

Which issue(s) this PR fixes:
Fixes #1066

Checklist

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


@ApplicationScoped
public class EmbeddingProviderFactory {

private static Logger logger = org.slf4j.LoggerFactory.getLogger(EmbeddingProviderFactory.class);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was not being used, removed.

int maxRetries,
int retryDelayInMillis,
int timeoutInMillis,
Optional<String> requestTypeQuery,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needed to map 2 recently added request-properties to pass to embedding providers.

@tatu-at-datastax tatu-at-datastax marked this pull request as ready for review May 7, 2024 23:31
@tatu-at-datastax tatu-at-datastax requested a review from a team as a code owner May 7, 2024 23:31
@tatu-at-datastax tatu-at-datastax changed the title (WIP) Fix #1066: Implement VoyageAI embedding client Fix #1066: Implement VoyageAI embedding client May 7, 2024
@tatu-at-datastax tatu-at-datastax merged commit 81a9665 into main May 8, 2024
3 checks passed
@tatu-at-datastax tatu-at-datastax deleted the tatu/1066-embedding-voyage-ai branch May 8, 2024 17:03
Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Add VoyageAI embedding provider
3 participants