i am working on a RAG LLM project where i want to write a python program so i can chat…
- User
i am working on a RAG LLM project where i want to write a python program so i can chat with my document i have a question can i use a bert based model for persian language for embedding and use another model for decoding the response in english i want to be my LLM to understand the persian document and answer my questions in english is that possible?
- Assistant
Yes, it is possible to use a BERT-based model for embedding Persian language and another model for decoding the response in English. BERT models can be fine-tuned for specific languages, including Persian, to generate embeddings that capture the contextual meaning of the text.
For your project, you can use a pre-trained BERT model for Persian language to encode your Persian document and generate embeddings. These embeddings can then be used as input to another model, such as a sequence-to-sequence model or a transformer-based model, that is trained to generate responses in English. This second model can be trained on English data to ensure it understands and generates responses in English.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.