felix-zaslavskiy / gpt4all-java-bindings-sample

A sample project that uses GPT4ALL Java bindings
MIT License
12 stars 3 forks source link

How to use a prompt template? #2

Open aunwesha opened 1 year ago

aunwesha commented 1 year ago

Hello,

Can you please include an example about how to include prompt templates in Java?

Regards,

Diptendu Dutta

felix-zaslavskiy commented 1 year ago

I updated the example... hope that helps https://github.com/felix-zaslavskiy/gpt4all-java-bindings-sample/blob/59e11aaa9b25ff15557beccae96de32dd6843c79/src/main/java/com/hexadevlabs/gpt4allsample/Main.java#L75