organization · inferred from evidence
aws-samples
GitHub organization hosting the amazon-textract-textractor repository.
- textractor raises `KeyError: 'Relationships'` on documents with blank pages
It is an edge case in textractor's legacy parser (introduced in 1.8.4): when a page is blank/empty, the PAGE block has no child blocks, and Textract strips the `Relationships` key entirely instead of sending an empty list. The parser assume
- Textract rejects local PDFs: `Exception: PDF must be in S3 bucket`
The Textract async API (which is what multi-page PDFs need) only accepts documents stored as S3 objects — local files are rejected with exactly that exception. So the standard answer is: upload the PDF to an S3 bucket first, then pass the S
- TSError: Unable to compile TypeScript, TS2307 Cannot find module 'path' deploying the bedrock-agent-cdk sample
This is a peer dependency conflict in the sample's package set, not a broken install on your side. First run npm install from the bedrock-agent-cdk root directory before cdk bootstrap. If npm install fails with ERESOLVE (aws-cdk-lib@2.87.0
- textractor raises `KeyError: 'Geometry'` when an expense field has an empty value
This was a real bug in textractor's expense parser. Unlike the Forms API, AnalyzeExpense does not return a bounding box for a key that has no attached value — Textract simply omits the Geometry for empty-value fields, and textractor crashed
- Bedrock custom model import of Llama 3 8B fails: wrong torch_dtype when loading the PEFT model
Set the dtype explicitly to torch.float16 when loading the PEFT adapter: AutoPeftModelForCausalLM.from_pretrained(training_args.output_dir, low_cpu_mem_usage=True, torch_dtype=torch.float16). The sample passed the wrong dtype when loading t
- ValidationException: The OpenSearch Serverless engine type associated with your vector index is invalid....
Recreate the OpenSearch Serverless vector index with "engine": "faiss" instead of "nmslib" in the storage configuration, then retry the CreateKnowledgeBase call. FAISS is the only accepted engine type now. The amazon-bedrock-samples repo wa