Please do a quick search on GitHub issues first, the feature you are about to request might have already been requested.

Expected Behavior

To support multiple language, normally we need to provide RAG document for multiple languages for search. It is too cost and a possible solution is that we can just provide one RAG document, and before the search the document, we can convert the customer input into the target language

Current Behavior

Use customer input to query the vectore store directly, if the customer input different language with the document, we can't get the content

Context

Comment From: ThomasVitale

This use case is now supported by the TranslationQueryTransformer component of the new (experimental) Modular RAG features. More info in the documentation: https://docs.spring.io/spring-ai/reference/api/retrieval-augmented-generation.html#_translationquerytransformer

You can find a full example here: https://github.com/ThomasVitale/llm-apps-java-spring-ai/blob/main/rag/rag-sequential/rag-advanced/src/main/java/com/thomasvitale/ai/spring/RagControllerTranslation.java