-
Notifications
You must be signed in to change notification settings - Fork 16
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
Micro batching for embedding clients #1122
Conversation
Set the custom embedding provider with batch size 1. This should cover the testing of micro batching |
...a/io/stargate/sgv2/jsonapi/service/embedding/configuration/EmbeddingProviderConfigStore.java
Outdated
Show resolved
Hide resolved
.../java/io/stargate/sgv2/jsonapi/service/embedding/configuration/EmbeddingProvidersConfig.java
Outdated
Show resolved
Hide resolved
.../java/io/stargate/sgv2/jsonapi/service/embedding/configuration/EmbeddingProvidersConfig.java
Outdated
Show resolved
Hide resolved
src/main/java/io/stargate/sgv2/jsonapi/service/embedding/gateway/EmbeddingGatewayClient.java
Outdated
Show resolved
Hide resolved
...main/java/io/stargate/sgv2/jsonapi/service/embedding/operation/MeteredEmbeddingProvider.java
Outdated
Show resolved
Hide resolved
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.
Functionally makes sense, looks good. I would prefer naming changes (more importantly actual Record type over Pair
; less important "maxBatchSize" over "batchSize"), but let you decide if it's worth it.
What this PR does:
Micro batching for embedding clients
Which issue(s) this PR fixes:
Fixes #1078
Checklist