BotFace [GPT4All][Python-Godot] Source Code
A downloadable project
BotFace
A Python GPT4ALL with Godot Front-end example [poc]
Goal: Get started with using GPT4ALL as a backend, for Godot Apps. This project uses the default setup for queries but could be edited to include a custom-knowledge database and designed to only generate and or retrieve specific static data [text, images, video] for example.
How to use:
1. Download the files
2. Download the model
[A] Set allow_download to True, the first time your run the Python app. [ llm = GPT4All(model=_model, callback_manager=callback_manager, verbose=True, allow_download=True)
or
[B] Use the gpt4all.io model explorer to download the [ggml-model-gpt4all-falcon-q4_0.bin ] model. Place the downloaded bin file in the Gpt4All Cache. Usually found at: C:\Users\admin\.cache\gpt4all
[Dependencies]
3. Install Python[ Enable PIP and Development Dependencies]
4. Install the Python Dependencies
- Install gpt4all [pip install gpt4all]
- Langchain [pip install langchain]
- Websockets [pip install websockets][client]
- PySimpleGUI [pip install PySimpleGUI]
- Flask [pip install Flask]
[GODOT]
5. Import and Open the Godot Project [Godot[python-http-socket]] or Run the BOTFAC3.exe
6. Run both the Python file and the Godot projects at the same time.
***There is no error/exception handling so trying to run any processes without both apps/projects running will cause an app crash.
7. Start the Flask Server.
Links-Refs:
https://github.com/wombyz/gpt4all_langchain_chatbots
https://pypi.org/project/langchain/
https://www.npmjs.com/package/langchain
https://pypi.org/project/websockets/
https://pypi.org/project/Flask/
Status | Prototype |
Category | Other |
Author | Tools and Projects |
Tags | Godot, gpt4all, python, sourcecode |
Download
Click download now to get access to the following files:
Development log
- BotFace [GPT4All][Python-Godot] Source CodeSep 17, 2023
Leave a comment
Log in with itch.io to leave a comment.