# Training error : KeyError: 'improved\_output'

**URL:** <https://community.crewai.com/t/training-error-keyerror-improved-output/3053>\
**Category:** CrewAI Community Support\
**Created:** [January 21, 2025, 11:06am UTC](https://community.crewai.com/t/training-error-keyerror-improved-output/3053 "2025-01-21T11:06:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![plume69](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/plume69/32/1198_2.png) [@plume69](https://community.crewai.com/u/plume69)\
**Post date:** [January 21, 2025, 11:06am UTC](https://community.crewai.com/t/training-error-keyerror-improved-output/3053/1 "2025-01-21T11:06:18Z")

</div>

I am using the latest version of CrewAI (0.98.0), and the issue was already present with version 0.95.0.

When I initiate the training, everything proceeds correctly, with my feedback being considered at each step until the final stage, where I consistently encounter the following error upon entering “looks good”.

I have tried both asynchronous and synchronous tasks, but I still encounter the same error.

Traceback (most recent call last):  
File “…\main.py”, line 56, in train  
…Crew().crew().train(  
File “…\Lib\site-packages\crewai\crew.py”, line 503, in train  
result = TaskEvaluator(agent).evaluate\_training\_data(  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “…\Lib\site-packages\crewai\utilities\evaluators\task\_evaluator.py”, line 101, in evaluate\_training\_data  
f"Improved Output:\n{data[‘improved\_output’]}\n\n"  
~~~~ ^^^^^^^^^^^^^^^^^^^  
KeyError: ‘improved\_output’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “”, line 198, in \_run\_module\_as\_main  
File “”, line 88, in \_run\_code  
File “…\main.py”, line 98, in   
train()  
File “…\main.py”, line 61, in train  
raise Exception(f"An error occurred while training the crew: {e}")  
Exception: An error occurred while training the crew: ‘improved\_output’
