How it works
RECAP has two main flows that assume English as a default. To use RECAP in multilingual or non-english cases, these must be handled.- The vector portion of the hybrid-search/reranking. This selects relevant documents to pass to the Large Language Model as context
- The prompts for the Large Language Model to instruct it on how to answer user queries.
Note: The RECAP LLM prompts are still in English, just with added instructions if the user configures multilingual settings (see below). If all of your documents and queries are in some other language, it will be better to simply translate all of RECAP’s prompts directly to that target language. You can do so here- backend/RECAP/prompts.
Configuration
Unless you are translating the LLM prompts yourself, the configuration for multilingual can be done entirely via environment variables. For Docker Compose, simply make an.env
file in RECAP/deployment/docker_compose
and
populate it with the desired values before deploying.
Update the values below to suit your particular needs, this example shows using RECAP with both French and English.
The settings below have descriptions to help you configure values according to your use case.
.env
file should be placed.