product · inferred from evidence
amazon-bedrock-samples
A repository or sample project mentioned as containing a sample that used the invalid engine type.
- 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.
- TSError: Unable to compile TypeScript, TS2307 Cannot find module 'path' deploying the bedrock-agent-cdk sample
Teaches the verified fix from a real amazon-bedrock support thread: tSError: Unable to compile TypeScript, TS2307 Cannot find module 'path' deploying the bedrock-agent-cdk sample
- Bedrock custom model import of Llama 3 8B fails: wrong torch_dtype when loading the PEFT model
What this covers: A user running the Llama 3 8B custom model import sample (llama3-sftt-llama3-fine-tuning.ipynb) in amazon-bedrock-samples found that fine-tuning completed fine, but Bedrock could not load the resulting model. The fix that
- TSError: Unable to compile TypeScript, TS2307 Cannot find module 'path' deploying the bedrock-agent-cdk sample
cdk bootstrap fails to compile the amazon-bedrock-samples bedrock-agent-cdk example because of a peer dependency conflict. Run npm install from the sample root first, with --force if ERESOLVE blocks it.