Having trouble training a responseSelector for faq bot

I have an faq bot that uses response selectors. I am having trouble with the training. I dont understand the error. This is on local

Building tensorflow train graph...
Traceback (most recent call last):
File "/Users/thephiri/.virtualenvs/rasa-chatbot/bin/rasa", line 8, in <module>
sys.exit(main())
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/__main__.py", line 91, in main
cmdline_arguments.func(cmdline_arguments)
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/cli/train.py", line 76, in train
additional_arguments=extract_additional_arguments(args),
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/train.py", line 50, in train
additional_arguments=additional_arguments,
File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/train.py", line 101, in train_async
    additional_arguments,
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/train.py", line 188, in _train_async_internal
    additional_arguments=additional_arguments,
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/train.py", line 245, in _do_training
    persist_nlu_training_data=persist_nlu_training_data,
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/train.py", line 482, in _train_nlu_with_validated_data
    persist_nlu_training_data=persist_nlu_training_data,
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/nlu/train.py", line 90, in train
    interpreter = trainer.train(training_data, **kwargs)
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/nlu/model.py", line 191, in train
    updates = component.train(working_data, self.config, **context)
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/nlu/classifiers/diet_classifier.py", line 723, in train
    self.component_config[BATCH_STRATEGY],
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/utils/tensorflow/models.py", line 131, in fit
    ) = self._get_tf_train_functions(eager, model_data, batch_strategy)
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/utils/tensorflow/models.py", line 348, in _get_tf_train_functions
    train_dataset_function, self.train_on_batch, eager, "train"
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/utils/tensorflow/models.py", line 330, in _get_tf_call_model_function
    tf_call_model_function(next(iter(init_dataset)))
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/tensorflow_core/python/eager/def_function.py", line 568, in __call__
    result = self._call(*args, **kwds)
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/tensorflow_core/python/eager/def_function.py", line 615, in _call
    self._initialize(args, kwds, add_initializers_to=initializers)
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/tensorflow_core/python/eager/def_function.py", line 497, in _initialize
    *args, **kwds))
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/tensorflow_core/python/eager/function.py", line 2389, in _get_concrete_function_internal_garbage_collected
    graph_function, _, _ = self._maybe_define_function(args, kwargs)
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/tensorflow_core/python/eager/function.py", line 2703, in _maybe_define_function
    graph_function = self._create_graph_function(args, kwargs)
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/tensorflow_core/python/eager/function.py", line 2593, in _create_graph_function
capture_by_value=self._capture_by_value),
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/tensorflow_core/python/framework/func_graph.py", line 978, in func_graph_from_py_func
func_outputs = python_func(*func_args, **func_kwargs)
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/tensorflow_core/python/eager/def_function.py", line 439, in wrapped_fn
return weak_wrapped_fn().__wrapped__(*args, **kwds)
File "/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/tensorflow_core/python/framework/func_graph.py", line 968, in wrapper
raise e.ag_error_metadata.to_exception(e)
ValueError: in converted code:
/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/utils/tensorflow/models.py:197 train_on_batch  *
    prediction_loss = self.batch_loss(batch_in)
/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/nlu/selectors/response_selector.py:514 batch_loss  *
    loss, acc = self._calculate_label_loss(cls_text, cls_label, label_ids)
/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/nlu/classifiers/diet_classifier.py:1429 _calculate_label_loss  *
    all_label_ids, all_labels_embed = self._create_all_labels()
/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/nlu/selectors/response_selector.py:451 _create_all_labels  *
    label_transformed, _, _, _ = self._create_sequence(
/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/nlu/classifiers/diet_classifier.py:1355 _create_sequence  *
    inputs = self._tf_layers[f"ffnn.{name}"](inputs, self._training)
/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/base_layer.py:778 __call__
    outputs = call_fn(cast_inputs, *args, **kwargs)
/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/rasa/utils/tensorflow/layers.py:260 call  *
    x = layer(x, training=training)
/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/base_layer.py:737 __call__
    self.name)
/Users/thephiri/.virtualenvs/rasa-chatbot/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/input_spec.py:213 assert_input_compatibility
    ' but received input with shape ' + str(shape))

ValueError: Input 0 of layer hidden_layer_label_0 is incompatible with the layer: expected axis -1 of input shape to have value 2048 but received input with shape [70, 1, 70]

There is probably an error in your training data. Can you run validate.

Thanks, there was an error in the responses file. Fixed and its working now :slightly_smiling_face: