iachat/spec/enterprise/services/captain
Pranav 7f56cd92f8
chore: Update the prompts to include language of the account for FAQs (#12280)
There were customer reported issues with FAQs which were generated in a
different langauge than what they were expecting. The reason behind this
was that the language of the account was not considered in the prompt
provided. If the language of the content was say Spanish, and the
account locale was english. The output was not predicable. The output
depends on the model and the execution time.

This PR would update the prompt to behave consistently with the account
locale. Even though the content provided is in a different language, it
would generate FAQs in the account locale.

Changes:
- Updated the prompt to include a detailed expectation of the FAQs
quality along with the language
- Added specs for the services where the prompt generator is called.

Tested the prompt using Phoenix playground across GPT 5, GPT 4.1, GPT
4.0. The reasoning setting for GPT 5 needs to be low so that it doesn't
generate random questions like "What was this updated?"
2025-08-22 10:03:52 -07:00
..
assistant feat: scenario agents & runner (#11944) 2025-08-14 12:39:21 +05:30
copilot feat: add config for OpenAI endpoint (#12051) 2025-07-29 09:44:50 +05:30
llm chore: Update the prompts to include language of the account for FAQs (#12280) 2025-08-22 10:03:52 -07:00
tools feat: captain should be able to access private notes (#11768) 2025-06-24 19:00:20 -07:00
open_ai_message_builder_service_spec.rb feat: Add the support for images in Captain (#11850) 2025-07-11 23:28:46 +07:00
tool_registry_service_spec.rb feat: Update UI for Copilot (#11561) 2025-06-02 22:02:03 -05:00