product · inferred from evidence
amazon-bedrock-samples
A repository or sample project mentioned as containing a sample that used the invalid engine type.
- 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
- 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