From aced5e661514bfe9322ad2e744387857440f3ca5 Mon Sep 17 00:00:00 2001 From: Andriy Mulyar Date: Sat, 1 Jul 2023 18:52:39 -0400 Subject: [PATCH] Update README.md to python bindings Signed-off-by: Andriy Mulyar --- gpt4all-bindings/python/README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/gpt4all-bindings/python/README.md b/gpt4all-bindings/python/README.md index c13765d7..bb345b96 100644 --- a/gpt4all-bindings/python/README.md +++ b/gpt4all-bindings/python/README.md @@ -41,13 +41,10 @@ pip3 install -e . Test it out! In a Python script or console: ```python - from gpt4all import GPT4All - -gptj = GPT4All("ggml-gpt4all-j-v1.3-groovy") -messages = [{"role": "user", "content": "Name 3 colors"}] -gptj.chat_completion(messages) - +model = GPT4All("orca-mini-3b.ggmlv3.q4_0.bin") +output = model.generate("The capital of France is ", max_tokens=3) +print(output) ``` ## Troubleshooting a Local Build