Repository: confident-ai/deepeval
Issue: Error in Faithfulness metric: KeyError: 'claims' in `a_generate_claims`
Root cause: External Dependency Breakage

I have an evaluation system built using deepeval. It always evaluates on 4 metrics - Answer relevancy, Faithfulness, Contextual recall, Contextual precision. Sometimes the evaluation fails with the following error log. I've seen this happen 5-6 times now and it always occurs with Faithfulness metric.

```
> File "/app/backend/evaluations/service.py", line 84, in task_generate_outputs
    results = evaluate(
              └ <function evaluate at 0x74b1a9b9af70>

  File "/usr/local/lib/python3.9/site-packages/deepeval/evaluate.py", line 338, in evaluate
    test_results = loop.run_until_complete(
                   │    └ <function BaseEventLoop.run_until_complete at 0x74b1b087c430>
                   └ <_UnixSelectorEventLoop running=False closed=False debug=False>
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
    return future.result()
           │      └ <method 'result' of '_asyncio.Task' objects>
           └ <Task finished name='Task-1' coro=<a_execute_test_cases() done, defined at /usr/local/lib/python3.9/site-packages/deepeval/ev...
  File "/usr/local/lib/python3.9/site-packages/deepeval/evaluate.py", line 208, in a_execute_test_cases
    await measure_metrics_with_indicator(
          └ <function measure_metrics_with_indicator at 0x74b1a9f9b280>
  File "/usr/local/lib/python3.9/site-packages/deepeval/metrics/indicator.py", line 151, in measure_metrics_with_indicator
    await asyncio.gather(*tasks)
          │       │       └ [<coroutine object ContextualPrecisionMetric.a_measure at 0x74b1a4429840>, <coroutine object FaithfulnessMetric.a_measure at ...
          │       └ <function gather at 0x74b1b0870700>
          └ <module 'asyncio' from '/usr/local/lib/python3.9/asyncio/__init__.py'>
  File "/usr/local/lib/python3.9/site-packages/deepeval/metrics/faithfulness/faithfulness.py", line 75, in a_measure
    self.truths, self.claims = await asyncio.gather(
    │    │       │    │              │       └ <function gather at 0x74b1b0870700>
    │    │       │    │              └ <module 'asyncio' from '/usr/local/lib/python3.9/asyncio/__init__.py'>
    │    │       │    └ ['Real Estate Tax is a tax imposed on the ownership of real property.', 'Real property includes land and buildings.', 'Real E...
    │    │       └ <deepeval.metrics.faithfulness.faithfulness.FaithfulnessMetric object at 0x74b1a6bc3910>
    │    └ ['Chapter 60A of Massachusetts General Laws imposes an excise on the privilege of registering a motor vehicle or a trailer in...
    └ <deepeval.metrics.faithfulness.faithfulness.FaithfulnessMetric object at 0x74b1a6bc3910>
  File "/usr/local/lib/python3.9/site-packages/deepeval/metrics/faithfulness/faithfulness.py", line 164, in _a_generate_claims
    return data["claims"]
           └ {}

KeyError: 'claims'
```

**Expected behavior**
`data` should not be an empty object

**Desktop:**
 - OS: Ubuntu with Docker
 - Version 0.21.12

Hey @adayush can you please upgrade deepeval to its latest version and try again?

Sure, will do that and get back to you 👍 

@penguine-ip I don't see this issue occuring anymore, have some decent amount of evaluations. Will open another issue if I face it again.

Thanks!