-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
Bug description
I try to use vertex embedding and did test big document. I did set the auto-truncate to true.
This correspond to this options:
Line 67 in be0f9fb
| private @JsonProperty("autoTruncate") Boolean autoTruncate; |
But I got an exception from TokenCountBatchingStrategy (
Line 147 in be0f9fb
| if (tokenCount > this.maxInputTokenCount) { |
What to do in this situation ?
Environment
Spring AI 1.0.0-M4 / jdk21
Steps to reproduce
Use vertex embedding with the "auto truncate" option, and test with a large payload.
Expected behavior
Success or at least some way in the documentation to make it works.
Minimal Complete Reproducible example
var document = new Document("go ".repeat(50000));
vectorStore.add(List.of(document));