Knowledge base agent answer in the wrong language,...
# 🤝help
n
When I ask a question, it answers only in english and not the right language of the user (here in french). It's not normal because I have activated translator agent

https://cdn.discordapp.com/attachments/1134161352894709810/1134161353066688582/Capture_decran_2023-07-27_183051.jpg

r
@numerous-notebook-18135 please show your translator agent config ? maybe screenshot your logs (bottom panel)
n

https://cdn.discordapp.com/attachments/1134161352894709810/1134168274536509552/Capture_decran_2023-07-27_185937.jpg

https://cdn.discordapp.com/attachments/1134161352894709810/1134168274926583918/Capture_decran_2023-07-27_185909.jpg

r
@numerous-notebook-18135 is your bot meant to always reply in french? (ie. is it a french audience bot only?) if yes, you can use the "Set language" Agent Card in your flow to set the language to
fr
n
no, I need to have a multilangual bot
r
ok ok
did you start the conversation in english by any chance?
n
yes just the first message
r
ok yeah so it will stick to the very first laguage with the current settings – you can check the "detect language at every turn" or you could also set the langiuage to
null
manually to re-trigger the detection mid-flow
n
i tried to start with "bonjour" in french, it responds again in english when I ask a question
r
yeah the problem is that we onyl detect the lang on messages greater than 6 words
n
so what should I do?
to have a bot that answers in the user's language
r
depends on the experience you want on the very first messages of the conversation? do you want to start by prompting the language or do you want to make a guess based on the user's initial message (which could be unclear if the message is "hello")
n
maybe just ask the user language
and then set the language for the rest of the conversation
r
ok yeah in that case you can start the conversation with a workflow to set the language.

https://cdn.discordapp.com/attachments/1134161352894709810/1134172072348749965/image.png

https://cdn.discordapp.com/attachments/1134161352894709810/1134172126337843331/image.png

n
thanks, but this works until I ask a question and the knowledge base bot responds :

https://cdn.discordapp.com/attachments/1134161352894709810/1134177169053057224/Capture_decran_2023-07-27_193440.jpg

r
can you show me your KnowledgeAgent config?
n

https://cdn.discordapp.com/attachments/1134161352894709810/1134178198469484686/Capture_decran_2023-07-27_193901.jpg

do I need to call a variable?
I would need the knowledge agent to responds in the user's language
r
Would you mind sharing your bot with me so I can have a look? normally the Translator agent should translate all outputs including Knowledge Agent
n
and if possible, I would like to have the personality agent responds in the user language because I've tried and it only responded in the language I used for the instructions
r
ohhhh
n
yeah, how can I share it?
r
wait what if you disable the personality agent
does it answer in french ?
n
no, I just tried previsouly to enable the personality agent and when I put english instructions it responded in english, when It was french it responded in french
r
ok
you can export the bot then send it to me in DM

https://cdn.discordapp.com/attachments/1134161352894709810/1134180374231138366/image.png

n
thanks a lot btw
r
thanks
i deleted the file just so other don't have it
n
ok thanks
r
thanks I got to reproduce the issue and i confirm this seems like a bug, it works in other languages but not french

https://cdn.discordapp.com/attachments/1134161352894709810/1134181930435354707/image.png

let me escalade this quickly to the team so you have a fix shortly
n
ok tanks
thanks*
tell me when it's fixed
Hi, do you know when it will be fixed?
s
hey, I saw this comment, In hebrew I have the same problem.
n
And you still have ?
hi, do you know when it will be fixed ? it's for one of my clients
r
yes should be there by monday – the fix is almost done
n
ok thanks a lot
c
Hello everyone, I have the same issue. I've tried configuring it in various ways, using a variable, disabling certain agents, but nothing seems to work. The chat repetitively switches to speaking in English even though everything is set up for it to speak in French. Sometimes it's okay, but very often it switches to an English translation. Have others encountered this same issue?
r
We have a permanent fix for this coming today or tomorrow! we found the source of the issue. Apparently, GPT-3.5 turbo is really struggling with language detection and somehow can't seem to not translate content that is already in the right language. GPT-4 does well but is way too slow. So we came up with a custom language detection model to help GPT-3.5 here
c
Wonderfull and thanks for the answer...(but still not working at this time 😉 )
a
Hi sly, any updates in this topic? thanks!
r
@astonishing-hairdresser-12221 yes, the fix should hit production tomorrow 🙂
6 Views