iachat/enterprise/app/services/captain/llm
Tanmay Deep Sharma 5c5abc24e3
fix: Use account locale when generating PDF FAQs (#12491)
## Linear Link:

https://linear.app/chatwoot/issue/CW-5636/pdf-faqs-captain-generates-faqs-in-the-english-only

## Description
PDF Faqs should be generated in the same language as set in account  


## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

This has been tested via UI, by setting account language to arabic and
upload the pdf for faq generation (pdf content in Hindi)
<img width="1045" height="1085" alt="image"
src="https://github.com/user-attachments/assets/10385181-578e-4933-afc4-4609a6abcec8"
/>


## Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
2025-09-23 16:47:15 +05:30
..
assistant_chat_service.rb feat: Add the support for images in Captain (#11850) 2025-07-11 23:28:46 +07:00
contact_attributes_service.rb feat: Add support for account abuse detection (#11001) 2025-02-28 15:28:19 -08:00
contact_notes_service.rb feat: Add support for multi-language support for Captain (#11068) 2025-03-19 18:25:33 -07:00
conversation_faq_service.rb feat: Add support for multi-language support for Captain (#11068) 2025-03-19 18:25:33 -07:00
embedding_service.rb feat: add config for embedding model (#12120) 2025-08-25 11:33:00 +05:30
faq_generator_service.rb chore: Update the prompts to include language of the account for FAQs (#12280) 2025-08-22 10:03:52 -07:00
paginated_faq_generator_service.rb fix: Use account locale when generating PDF FAQs (#12491) 2025-09-23 16:47:15 +05:30
pdf_processing_service.rb feat: Add BE changes for captain pdf support for faq generation (#12113) 2025-08-27 20:31:22 +05:30
system_prompts_service.rb fix: Use account locale when generating PDF FAQs (#12491) 2025-09-23 16:47:15 +05:30