Find answers from the community

Updated 3 months ago

Default Language

Hi Guys,

I try to change the default prompts in order to change the language basically. But there is a lot of hidden dependencies. Someone have a basic code that i can easily reuse ? I want to change the refine prompts and use it in this function
This is what I want to define

DEFAULT_REFINE_PROMPT_SEL = SelectorPromptTemplate(
default_template=DEFAULT_REFINE_PROMPT,
conditionals=[(True, CHAT_REFINE_PROMPT)],
)

.as_query_engine(similarity_top_k=similarity_nb)
E
M
5 comments
Any reason to change the refine prompt instead of set a custom instruction on system_prompt or on the user query?
Thx emmanuel
Hi Emanuel, coming back to you, I just tried to do your first solution as a personal functions that I import, so I overwritted funtions in the library. I still have some enlighs, do you know if there is some security prompt that add layer of english ?
Add a reply
Sign up and join the conversation on Discord