A sample project that uses GPT4ALL Java bindings.
This project depends on the latest released version the bindings package.
Update Main.java to set baseModelPath to location of your model files.
You may pass llama, mpt, replit as and argument but make you have the corresponding model file downloaded.