We are currently developing a multilingual agent that utilizes French, Japanese, and English knowledge sources.
The requirement is that when a user asks a question in Japanese, the agent should use only the Japanese knowledge sources and provide responses exclusively in Japanese.
However, the agent is currently generating answers in English instead of Japanese.
Here is the snapshot I have attached for French question, but the agent is generating answers in English rather than English,
As far as I know, there isn’t a built-in way to make an agent dynamically switch between different knowledge sources based on the language of the input.
However, one possible workaround could be to use a multi-agent setup—where each agent is configured for a specific language and linked to the appropriate knowledge sources. A main agent could then route queries to the correct language-specific agent based on language detection.
I haven’t tested this approach myself, but it give you the possibility to use different knowledge sources based on the language of the question.
Regards
Arild
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.