maximerenou / php-hugging-chat

🚧 Deprecated 🚧 HuggingChat PHP client (OpenAssistant's LLaMA)
MIT License
18 stars 2 forks source link

Improvement request #4

Closed oitsuki closed 1 year ago

oitsuki commented 1 year ago

Hello, It's not an issue but an improvment if it's possible.

I tried your approach and I would know if can delete some words when some element from the answer: example: Question : Can you translate in French : Give me a SEO Title in less 50 characters about : : Iphone Answer : Sure, here is a possible translation: "Top iPhone XS Max features for gaming" (43 characters) Let me know if you would like any further assistance. Good approach : Top iPhone XS Max features for gaming

Else I suppose the model does have the capacities to translate in french

Thank you

maximerenou commented 1 year ago

Hello,

You should try the other way around: asking the model to write the answer exactly the way you want it (in other words, prompt engineering)

This package is only a generic adapter for HuggingChat’s models. But I hope it helps!