question

MarkvanWaardenburg-1513 avatar image
0 Votes"
MarkvanWaardenburg-1513 asked Prasad-MSFT commented

Custom question answering in Language Studio: line breaks from answer removed

Hi,

I have setup a bot / cognitive services using Language Studio and Custom Question Answering.

The bot in Teams works fine but in my answers somewhere the line breaks are removed.

For example the output from the bot in Teams is:

PDPL https://securiti.ai/saudi-arabia-personal-data-protection-law See also https://globaldataalliance.org/wp-content/uploads/2022/03/03292022gdasadatapro.pdf


In Language Studio while testing, the output is shown correctly:

PDPL

https://securiti.ai/saudi-arabia-personal-data-protection-law

See also

https://globaldataalliance.org/wp-content/uploads/2022/03/03292022gdasadatapro.pdf



Who can help?

office-teams-app-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @MarkvanWaardenburg-151

I have tagged Teams bot dev team for this.

At the meantime, I have done some research, could you please try if "\n\n\n\n‌‌ \n\n\n\n" help? Reference: https://github.com/Microsoft/AdaptiveCards/issues/1738#issuecomment-954100582

Regards,
Yutong

0 Votes 0 ·

1 Answer

MarkvanWaardenburg-1513 avatar image
0 Votes"
MarkvanWaardenburg-1513 answered Prasad-MSFT commented

Hi Yutong,

I found that <br/> worked also. But thanks anyway.

(it's quite nasty that the line breaks are removed because I am importing quite a large document to "custom question answering" and need to make manual corrections now to each entry.... (161 pairs)

Kind regards
Mark

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

If your issue is resolved, please click "Accept Answer" and upvote it. So that it will be helpful for others who face similar issue

0 Votes 0 ·