From 7e08edc63a403ea6868cfcf477c76588e671e0c4 Mon Sep 17 00:00:00 2001 From: alabulei1 Date: Thu, 18 Apr 2024 14:48:05 +0800 Subject: [PATCH] Update customized-node-setting.md --- docs/node-guide/customized-node-setting.md | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/node-guide/customized-node-setting.md b/docs/node-guide/customized-node-setting.md index e950af9..131e058 100644 --- a/docs/node-guide/customized-node-setting.md +++ b/docs/node-guide/customized-node-setting.md @@ -4,30 +4,30 @@ sidebar_position: 3 # Customized your node -From the Quick Start guide, we learned how to run a GaiaNet node and get the reward. This article will show you how to run a customzied node based on your needs. +From the Quick Start guide, we learned how to run a GaiaNet node and get the reward. This article will show you how to run a customized node based on your needs. ### Customized your node from the Gaianet Node Generator tool -To make running a node easly, the Node Generator tool from the Gaianet website is designed to generate special installation command lines including all the customized settings based on your choices. +To make running a node easy, the Node Generator tool from the Gaianet website is designed to generate special installation command lines including all the customized settings based on your choices. -> To use the Node Generator, you will need to log in the GaiaNet website with your Metamask first. +> To use the Node Generator, you must log in to the GaiaNet website with your Metamask first. -First, you will need to a chat model as the foudation of your node. The default chat model is the Llama-2-7b model. GaiaNet supports all the open source models basically. You can choose one model that you like. +First, you will need a chat model as the foundation of your node. The default chat model is the Llama-2-7b model. GaiaNet supports all the open-source models. You can choose one model that you like. -Next, input your specail system prompts. If you have no idea about it, don't worry, we have set up default prompts for you. +Next, input your special system prompts. If you have no idea about it, don't worry, we have set up default prompts for you. Then, you will choose whether you want to build a RAG agent or not. If you choose yes, then you will need to choose the embedding model and the dataset. The default embedding model will be all-MiniLM-L6-v2 and the default dataset is a Paris guide. -> If you don’t want to create RAG agents, you can click Skip to skip this step. +> If you don’t want to create RAG agents, click Skip to skip this step. Then, choose a domain to join. The default domain is gaianet.xyz. Learn more about domain and subdomain. -Finnally, click on confirm, the GaiaNet installer will generate all the steps to run a customized node. +Finally, click on confirm, the GaiaNet installer will generate all the steps to run a customized node. ### Run the command lines generated from the Gaianet Node Generator tool -First of all, run the following command line on your terminal to install the required softwares. If you have done this before, you can skip this step. +First of all, run the following command line on your terminal to install the required software. If you have done this before, you can skip this step. ``` bash <(curl -sSfL 'https://raw.githubusercontent.com/GaiaNet-AI/gaianet-node/main/install.sh') @@ -36,19 +36,19 @@ Then, run the following command line to init your customized node. ``` cd gaianet -gaianet init https://huhiohuhi-config.json +./gaianet init https://huhiohuhi-config.json ``` After the installation is successful, run the following command line to init your node. ``` -gaianet run +./gaianet run ``` If you want to stop the node, simply use `gaianet stop`. ``` -gaianet stop +./gaianet stop ``` @@ -56,13 +56,13 @@ gaianet stop If you just want to adjust some settings, you can use `gaianet config` command line to update the local `config.json` to new settings. -`gaianet config chat_ctx_size 4096` is to adjust the context length of the chat model. +`./gaianet config chat_ctx_size 4096` is to adjust the context length of the chat model. -`gaianet config embedding url-to-embedding-gguf-file` is to adjust the embedding model +`./gaianet config embedding url-to-embedding-gguf-file` is to adjust the embedding model -`gaianet config system_prompt “you are a helpful assistant"` is to adjust the system prompt. +`./gaianet config system_prompt “you are a helpful assistant"` is to adjust the system prompt. -`gaianet config rag_prompt “you are a helpful assistant"` is to adjust the rag prompt. +`./gaianet config rag_prompt “you are a helpful assistant"` is to adjust the rag prompt.