Hi Mohamed Darwish!
Welcome to Microsoft Q&A Forum, thank you for posting your query here.
It seems you are facing difficulties prompting the model to get exact answer.
I have tried below prompt along with you sample inputs to get desired output.
"""""
from User:
Please help me translate few two-line Germany statements in a manner such a way that all words within open bracket shall stay along translated word.
for e.g
(Ich) have heute viel Arbeit. Wir gehen am (Wochenende) ins Kino.
(I) have today much work. We go on the (weekend) to the cinema.
Assistant:
Sure, I'd be happy to help. Could you please provide the German statements you'd like me to translate?
From User
Deutschland ist bekannt für seine [reichhaltige] Geschichte und sein [vielfältiges] kulturelles Erbe.
Die [malerischen] Landschaften und [innovative] Städte machen Deutschland zu einem beliebten Reiseziel.
Assistant:
Germany is known for its [rich] history and its [diverse] cultural heritage.
The [picturesque] landscapes and [innovative] cities make Germany a popular travel destination.
In SDK
You can input a file now to split into statements and get the desired translation with above chat_prompt
chat_prompt = [
{
"role": "system",
"content": "You are an AI assistant that helps people find information."
},
{
"role": "user",
"content": "Please help me translate few two line Germany statements in a manner such a way that all words within openbracket shall stay along translated word. for e.g (Ich) have heute viel Arbeit. Wir gehen am (Wochenende) ins Kino.\n(I) have today much work. We go on the (weekend) to the cinema."
}
]
""""
Feel free to rephrase above prompt with sample inputs.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful.
Thank you.