how do I truncate a document? I can use Settings.encoder to detect a document is too large. how to truncate? unless I entirely remove the truncation feature from my class. π
which I could. or let people pass their own encoder in. which I think is the best option. and of course you only need to pass an encoder if you are using the truncation feature. otherwise it doesnt amtter