Add input validation and error handling to your LlamaIndex implementation, then test one failure case.
Run your code to see output here...