mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-08 11:58:53 +00:00
transfer python bindings code
This commit is contained in:
BIN
gpt4all-bindings/python/docs/assets/favicon.ico
Normal file
BIN
gpt4all-bindings/python/docs/assets/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
gpt4all-bindings/python/docs/assets/nomic.png
Normal file
BIN
gpt4all-bindings/python/docs/assets/nomic.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
5
gpt4all-bindings/python/docs/css/custom.css
Normal file
5
gpt4all-bindings/python/docs/css/custom.css
Normal file
@@ -0,0 +1,5 @@
|
||||
/* Remove the `In` and `Out` block in rendered Jupyter notebooks */
|
||||
.md-container .jp-Cell-outputWrapper .jp-OutputPrompt.jp-OutputArea-prompt,
|
||||
.md-container .jp-Cell-inputWrapper .jp-InputPrompt.jp-InputArea-prompt {
|
||||
display: none !important;
|
||||
}
|
6
gpt4all-bindings/python/docs/gpt4all_api.md
Normal file
6
gpt4all-bindings/python/docs/gpt4all_api.md
Normal file
@@ -0,0 +1,6 @@
|
||||
# GPT4All API
|
||||
The `GPT4All` provides a universal API to call all GPT4All models and
|
||||
introduces additional helpful functionality such as downloading models.
|
||||
|
||||
::: gpt4all.gpt4all.GPT4All
|
||||
|
22
gpt4all-bindings/python/docs/index.md
Normal file
22
gpt4all-bindings/python/docs/index.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# GPT4All
|
||||
|
||||
In this package, we introduce Python bindings built around GPT4All's C/C++ ecosystem.
|
||||
|
||||
## Quickstart
|
||||
|
||||
```bash
|
||||
pip install gpt4all
|
||||
```
|
||||
|
||||
In Python, run the following commands to retrieve a GPT4All model and generate a response
|
||||
to a prompt.
|
||||
|
||||
**Download Note*:*
|
||||
By default, models are stored in `~/.cache/gpt4all/` (you can change this with `model_path`). If the file already exists, model download will be skipped.
|
||||
|
||||
```python
|
||||
import gpt4all
|
||||
gptj = gpt4all.GPT4All("ggml-gpt4all-j-v1.3-groovy")
|
||||
messages = [{"role": "user", "content": "Name 3 colors"}]
|
||||
gptj.chat_completion(messages)
|
||||
```
|
Reference in New Issue
Block a user