mikeopentug
09/30/2025, 6:12 PMmikeopentug
09/30/2025, 6:12 PMgreg (BAML)
09/30/2025, 6:25 PMgreg (BAML)
09/30/2025, 7:09 PMadditional_model_request_fields { citations { enabled true } }? I've found that changing the default document name from "document.pdf" to "document" does fix the issue you were seeing, but only if I remove additional_model_request_fields.
When I run with additional_model_request_fields, I get a validation error from Bedrock: "The model returned the following errors: citations: Extra inputs are not permitted".mikeopentug
09/30/2025, 7:18 PMgreg (BAML)
09/30/2025, 8:02 PM{citations: { enabled: "true" } } switches the model from Converse (text-only) mode, to Claude PDF Chat Mode (which visually analyzes the PDF). Your PDFs likely won't get extracted as nicely if we can't pass this in. I'm reading about additional_model_request_fields now to see if it should let us pass citations in the way you were using it.greg (BAML)
09/30/2025, 8:15 PMcitations object does need to be used at the level of the document message (not the top-level inference request).
It may be safe to hardcode this too, for the time being at least. We haven't settled on a syntax for allowing modification of Pdf values within BAML the language.mikeopentug
09/30/2025, 11:59 PMgreg (BAML)
10/01/2025, 2:29 AMgreg (BAML)
10/01/2025, 5:51 AM