Welcome to Neo AI !
This guide will help you set up Neo AI on both the client and server sides.
- A Linux-based operating system (Ubuntu, Debian, Fedora, WSL, etc.).
- Python 3.x installed.
Start by cloning the Neo AI repository to your local machine:
git clone https://github.com/Vasco0x4/Neo-AI.git
cd Neo-AI
Execute the installation script to set up the environment:
sudo ./install.sh
This script will:
- Create a Python virtual environment.
- Install the necessary Python packages.
- Set up the Neo AI configuration files.
- Add an alias to your
.bashrc
for easy access.
To apply the changes made by the installation script, restart your terminal or run:
source ~/.bashrc
If Neo AI doesn't work immediately after installation, it may be necessary to add the alias manually. Run the following command inside the Neo AI directory (where main.py
is located):
echo "alias neo='source $(pwd)/venv/bin/activate && python3 $(pwd)/main.py'" >> ~/.bashrc
Before proceeding with the server installation, ensure that your system meets the following hardware and software requirements:
Linux or Windows
- Memory: 16GB+ of RAM is recommended.
- VRAM: 6GB+ of VRAM is recommended.
MacOS
- M1/M2/M3 with macOS 13.6 or newer.
For more information, please refer to the LM Studio minimum hardware.
-
Download & Install LM Studio:
For Linux, macOS, or Windows, go to the LM Studio website and download the latest version compatible with your operating system.
-
Configure LM Studio:
- First, install the desired model in LM Studio (e.g., LLaMA 3.1B is recommended). pre-prompt is designed for LLaMA 3 models.
- You need to configure the listening Port if not set by default.
-
Set the Pre-Prompt:
Copy and paste the Neo Pre-Prompt, which can be found in the PrePromt.md file.
-
Set the Context Length:
It is recommended to set the context length between 4000 and 8000 tokens for best results.
Once LM Studio is installed and running, you can test if the server is working properly using the curl
command. Replace 192.168.0.151
with your actual server IP address.
curl -X GET http://192.168.0.151:6959/v1/models -H "Content-Type: application/json"
If the server is working correctly, you should receive a response.
You need to configure the config.yaml
file on the client side to ensure Neo AI can communicate with the LM Studio server.
To start Neo AI on the client machine, simply type:
neo
This will launch Neo AI if everything is configured correctly.
- Connection Issues: Verify that the client can reach the server IP and port. Check firewall settings or network configurations if necessary.
- Dependencies Not Installed: If dependencies weren’t installed correctly, try deleting the
.venv
folder and rerun the installation script. - Voice Commands Not Working: Run
/docs/testes/test_vocal_device.py
to find the correct microphone index if you're using voice commands.
If you encounter any issues, have questions, or want to provide feedback, feel free to reach out! I'm always happy to help and improve Neo AI
Discord: [Vasco0x4]
Email: [[email protected]]
Enjoy using Neo AI !