Perf_client (or perf_analyser) unable to run on real input data

I am refering this doc

I are trying to do latency and throughput evaluation using perf_client with the same Triton’s “end-to-end” ensemble (see config.pbtxt) that It is working fine with random self generated input data.

perf_client -m end_to_end --shape=paragraph:1 --shape=query:1 --concurrency-range 1:1 -f test.csv

But with our dataset as input (directory path):

perf_client -m end_to_end --input-data input --shape paragraph:1,715 --shape query:1 (PFA paragraph, query)

I am getting errors:
error: failed to create concurrency manager: provided data for input paragraph has 715 byte elements, expect 715

Also tried using json file as input but failed.
perf_client -m end_to_end --input-data input.json (PFA input.json)

error: failed to create concurrency manager: Input data file is malformed.

### config.pbtxt
name: “end_to_end”
platform: “ensemble”
max_batch_size: 64

input {
name: “query”
data_type: TYPE_STRING
dims: -1
}

input {
name: “paragraph”
data_type: TYPE_STRING
dims: -1
}

output {
name: “answer”
data_type: TYPE_STRING
dims: -1
}

ensemble_scheduling {
step [
{
model_name: “preprocess”
model_version: 1
input_map {
key: “query”
value: “query”
}
input_map {
key: “paragraph”
value: “paragraph”
}
output_map {
key: “input_ids”
value: “input_ids”
}
output_map {
key: “attention_mask”
value: “attention_mask”
}
},
{
model_name: “roberta-trt32”
model_version: 1
input_map {
key: “input_ids”
value: “input_ids”
}
input_map {
key: “attention_mask”
value: “attention_mask”
}
output_map {
key: “start_logits”
value: “start_logits”
}
output_map {
key: “end_logits”
value: “end_logits”
}
},
{
model_name: “postprocess”
model_version: 1
input_map {
key: “start_logits”
value: “start_logits”
}
input_map {
key: “end_logits”
value: “end_logits”
}
input_map {
key: “input_ids”
value: “input_ids”
}
output_map {
key: “answer”
value: “answer”
}
}
]
}

directory

input
|- query
|-paragraph

###query
which is the largest personal computer company
###paragraph
William Henry Gates III (born October 28, 1955) is an American business magnate, software developer, investor, author, and philanthropist. He is a co-founder of Microsoft, along with his late childhood friend Paul Allen. During his career at Microsoft, Gates held the positions of chairman, chief executive officer (CEO), president and chief software architect, while also being the largest individual shareholder until May 2014. He was a major entrepreneur of the microcomputer revolution of the 1970s and 1980s.
Gates was born and raised in Seattle, Washington. In 1975, he and Allen founded Microsoft in Albuquerque, New Mexico. It became the world’s largest personal computer software company.[

###input.json
{
“data”:
[
{
“query”: “which is the largest personal computer company”,
“paragraph”: “William Henry Gates III (born October 28, 1955) is an American business magnate, software developer, investor, author, and philanthropist. He is a co-founder of Microsoft, along with his late childhood friend Paul Allen.[2][3] During his career at Microsoft, Gates held the positions of chairman, chief executive officer (CEO), president and chief software architect, while also being the largest individual shareholder until May 2014.[4] He was a major entrepreneur of the microcomputer revolution of the 1970s and 1980s.Gates was born and raised in Seattle, Washington. In 1975, he and Allen founded Microsoft in Albuquerque, New Mexico. It became the world’s largest personal computer software company.”
}
]
}