dspy icon indicating copy to clipboard operation
dspy copied to clipboard

Feature request: localization

Open ChrisW-priv opened this issue 3 months ago • 9 comments

Hi!

It is me again :-) . As am trying out some basics of the DSPy some more I realised one thing: the currently is no option to set diff. lang than English. The thing is, I want to make sure the LM will respond in Polish for example. All my documents are in polish (not in the notebook example I attach but in actual aplication I build yes) and I would prefer to set the system instruction in Polish too. But currently there is no way of achieving that in DSPy as the templates are still using some english.

I am tiny bit worried that the LM will get "confused" as to what language to generate in but was not able to generate example of that just yet.

TLDR: In current version I use there seems to only exist the english template for sys prompt. But if user inputs the prompt in diff lang, then there is a mix of languages in the prompt which is confusing.

Is localization ever on a roadmap? Do I have to give up on polish system prompt and just code it full english and "hope" the LM responds in the same language as the prompt field?

Personaly I think short term I will have to stick to the later aproach but wanted to consult you first. some localization tests.txt

ChrisW-priv avatar Nov 15 '24 12:11 ChrisW-priv